There are many different assembly languages, depending on the processor you want to talk to.
RISC-V is a simpler assembly language, made for educational and research purposes. RISC stands for "Reduced Instruction Set Compiler". Its goal is to use a smaller instruction set than most other assembly languages. RISC-V is 8-bit, meaning the registers hold 8 bits.
Check out https://medium.com/swlh/risc-v-assembly-for-beginners-387c6cd02c49 for a guide to writing RISC-V programs.
To run our RISC-V code, you can paste the file contents into a RISC-V interpreter, like https://www.cs.cornell.edu/courses/cs3410/2019sp/riscv/interpreter/.
RISC-V instructions pulled from this RISC-V card
RISC-V registers pulled from this RISC-V card
Here are some resources I ended up using while writing the program in this section.
- https://medium.com/swlh/risc-v-assembly-for-beginners-387c6cd02c49
- https://www.cs.cornell.edu/courses/cs3410/2019sp/riscv/interpreter/
- https://github.com/jameslzhu/riscv-card/blob/master/riscv-card.pdf
- https://github.com/riscv/riscv-isa-manual/releases/download/Ratified-IMAFDQC/riscv-spec-20191213.pdf