Re: AHOX Programmable Computer Collab-We're waiting for new ppl!
Posted: Sat Dec 11, 2010 7:43 pm
My Newest CPU with New LG1 GPU, 128 Sector RAM and 512 Flash
Flash is still in developement. It currently has to be set by a READ function and saved by a WRITE function. Better version hopefully in the future.
I will setup the system in a case with floppy support once flash works properly.
Boot rom is automaticly copied into ram starting at address 0
F2 reboots system
Programs are executed from memory. When the computer starts it executes memory address 0 Which contains ONE command. In this case, The first command from BOOT ROM. Boot rom MLOADS 20 sectors from flash starting at address0 and places them in memory starting at address 5. Then a goto 5 command is executed to boot the flash program that was copied. The copied program can contain instructions to copy more programs, and os, or even just print hello world.
CPU Commands:
LOAD reg memadd Loads data from Memory address into the specified register
STORE reg memadd Reverse of LOAD
CLOAD reg cont Same as LOAD except loads from the specified controller (Flash, LX1, etc)
CSTORE reg cont
CEVAL command Executes command. Most Useful with Controllers. EX: ["CEVAL","gpu.removeBox(\"disp1\", \"test\")"]
ADD reg1 reg2 reg3 Adds reg1 and reg2 and stores the result in reg3
GOTO line Transfer to program line specified
KEY key line1 line2 Goto line1 if key is pressed else goto line2
KEYWAIT key line1 Waits for key to be pressed before going to specified line
WAIT second Waits the specified seconds before continueing execution (Uses sim.time so may be longer or shorter depending on computer performance)
Please comment and Rate!