A sillier version of my goofy cpu which runs microcode directly instead of instructions.
This leads to a higher performance but also has way larger programs.
The instructions can be found in the plan.txt
file from the original cpu.
The cpu executes microcode directly which is generated using a c# project that turns the list of instructions into the corresponding microcode:
This program can be found in the Goofy Microcode gen
folder.
There is also the compiler from binary asm to microcode, which can be found in Goofy Microcode comp
.
You can now write assembly and compile it for the cpu. The stuff can be found in the asm
folder.
You can compile an asm file (like examples/inc_hlt.asm
) using the compile.bat
file and then use the generated output and load that into the microcode rom.
NOTE: You need to include the common.asm
file for customasm to work properly!
NOTE: This currently windows only (kinda?) due to the silly compile setup with the batch file.