A RISC CPU instruction set for academy experiment
See documentations in doc
directory.
You can use an assembler, written in Python 3, placed in as
directory, to compile a Riscade assembly program into binary code.
For example, run the following command to compile hello.s
into hello.rom
./as/as.py <hello.s >hello.rom
There is an emulator, written in C, placed in emu
directory.
For example, run hello.rom
gcc -o ./emu/emu ./emu/emu.c
./emu/emu hello.rom
There are some demo programs to play with, in demo
directory.
There are likely to be bugs, either in documentation, assembler, emulator, or in demo programs. Feel free to submit a GitHub issue so that I can fix it.
This document is licensed under MIT License