This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Messages - Spyro543
Pages: 1 ... 14 15 [16] 17 18 ... 81
226
« on: April 05, 2013, 09:28:07 am »
I'm making an 8-bit computer. It won't be like your average computer; no screen or keyboard. Instead it has 8 switches and 3 buttons for input, and 16 LEDs for output. 8 LEDs show the current address you are looking at, and the next 8 show the data in the address. The computer has 256 bytes of RAM. Since the programs are stored in RAM, and the only way to store data is to edit RAM, the program can re-program itself  There are no registers, instead everything is done with direct RAM addresses. To edit RAM, you put in an address in the 8 switches then hit the ADDR button, which changes the currently open address to the one on the switches. You can press the STORE button to store the number on the switches into the currently open address. The RUN button starts the program from the currently viewed address. I'm not finished with this, I'm still writing the programming, but I do actually have everything breadboarded. It will all be run with a PIC18F46K20 processor. I know it's a bit overkill to use a powerful processor, but it's nice to have four 8-pin ports. So I have a question for you all: since the programs are stored in RAM, when you turn off the computer, everything in RAM is lost. The PIC processor I am using has an internal EEPROM. When the computer shuts off, should I auto- backup the RAM to the EEPROM, and then load the EEPROM contents into RAM when the computer is turned back on? Or not? Or maybe do it some other way? Here is the planned assembly language for the SP-10 computer; try writing neat programs! When I have the system finished, I will run your guys' programs and make videos of them! In this table, X and Y just represent arguments. The table is here (UPDATED TABLE!!) : http://withg.org/spyro543/sp10/index.htmYoutube Video:
227
« on: April 04, 2013, 09:34:37 am »
Lol yeah, I already fixed these problems. Thanks anyway
228
« on: April 04, 2013, 09:03:16 am »
Ooh so these are fun leetle things for programmers to challenge themselves with? I'll definitely look into this!
229
« on: April 04, 2013, 06:56:05 am »
Does anyone here program PIC18F's in C? If you do, then you should have the header file: "p18f46k20.h" Mine got all messed up, and I tried looking on Google, and the ones I find there are pretty full of errors too. So if anyone has this file, please upload it. Thanks!
230
« on: April 04, 2013, 06:51:38 am »
I've had some major troubles writing even math programs with the Nspire's basic. I was almost always able to make the program in question work on my Casio calc, or even my PIC18F46K20 processor. Maybe I just don't know enough about the Nspires...?
231
« on: April 04, 2013, 06:46:58 am »
So no Casio calcs then? :| Maybe I could still make one for the fun of it
232
« on: April 03, 2013, 09:12:07 am »
I've finished block breaking. Now the HUD at the top of the screen has a purpose!!! I'm also working on building, but I'm getting some nasty bugs.
233
« on: March 28, 2013, 09:27:59 pm »
Super hexagon, anyone?
yesyesyesyesyesyesyesyes!
234
« on: March 23, 2013, 11:01:19 am »
Yes there will be. I'm planning for the filled diamond shape to be coal and the empty diamond shape to be iron ore. Crafting and smelting will actually be pretty easy to implement (horray for matrices).
235
« on: March 22, 2013, 08:26:32 pm »
Anyone remember the little Minecraft clone I made a while ago (MCL)? Well, I'm making a 2D Minecraft clone in CASIO-BASIC. Here it is: In game controls: ARROW KEYS: Move and Jump EXIT: Return to Menu Main Menu controls: [1] Key: Make a new world [2] Key: Load world from Matrix C [3] Key: Exit MClite Some info about the save file: MClite saves into a 7 tall by 21 wide matrix, always Mat C. The data values for the blocks are as follows: Data value | Block | 0 | Empty (Air) | 1 | □ (Empty Square) | 2 | ■ (Filled Square) | 9 | I (Player) |
DOWNLOAD BELOW! File is MCL.G1M (attached to post)
236
« on: March 21, 2013, 07:32:39 pm »
With that 15-minute thing I was just trying to make a point about the variations between fx-basic and nspire-basic (as in, how the fx-basic lets you do tons of stuff easily and the nspire-basic not as much so (in some things)).
237
« on: March 21, 2013, 07:23:26 pm »
I haven't been following this thread, so sorry if a decision has already been made. I would personally choose a Prizm (or fx-9860GII). These calculators have amazing BASIC programmability. I wrote a random terrain generator in just 15 minutes. The nspire's BASIC programming doesn't have any Locate-like commands, and can't draw or take keypresses as input. Nspire Lua is an event-based programming language, which i think for most of us is an entirely new thing (especially for me). Plus, if you want to make "real" programs, you need to use Ndless (a hack, which I don't particularly like to do) to program in C. For the fx series of calculators, you can program in C natively with a free and easy to set up SDK. Since that C programming is supposed to be done on these calculators, there is a really nice and easy-to-use include file for programming for the fx series. These are all just my opinions, so do what you want.
238
« on: March 21, 2013, 06:43:09 pm »
First off, here's my code: In The code, you'll see me writing [] and (). These correspond to the filled square character and the empty square character. {7,21}->Dim Mat C Fill(0, Mat C) 1->X RanInt#(3,6)->Y 0->A 0->B 0->K While X<22 Y+RanInt#(-1,1)->Y If Y>7 Then 7->Y IfEnd If Y<2 Then 2->Y IfEnd Locate X,Y,"()" 1->Mat C[Y,X] For Y+1->I to 7 Step 1 Locate X,I,"[]" 2->Mat C[Y,X] Next X+1->X WhileEnd Locate 1,2,"I" 9->Mat C[2,1] 1->X 2->Y While K!=47 Locate 1,1,"()" Locate 2,1,A Locate 6,1,B Locate 5,1,"[]" If Mat C[Y+1,X]=0 Then Locate X,Y," " 0->Mat C[Y,X] Y+1->Y 9->Mat C[Y,X] Locate X,Y,"I" IfEnd Getkey->K If K=38 And X>1 And Mat C[Y,X+1]=0 Then 0->Mat C[Y,X+1] Locate X,Y," " X+1->X 9->Mat C[Y,X] Locate X,Y,"I" IfEnd If K=27 And X<27 And Mat C[Y,X-1]=0 Then 0->Mat C[Y,X-1] Locate X,Y," " X-1->X 9->Mat C[Y,X] Locate X,Y,"I" IfEnd WhileEnd
I hand-typed this code while looking at my calc screen so if you see any weird typing mistakes just ignore them  This is a world generation program that I will be using for my secret project (even though it's not so secret, because you now see my source code  ) I'm getting ARGUMENT ERROR at the line that says: If K=27 And X<27 And Mat C[Y,X-1]=0 What is going on here? Everything should be OK... Also, everything else works fine, the world generator and the player falling mechanism.
240
« on: March 20, 2013, 02:48:59 pm »
I think FA-124 has a screen receiving function, right? Also what's so good about my camera? It's just my iPad camera.
Pages: 1 ... 14 15 [16] 17 18 ... 81
|