successfully using assembler to generate .hex rather than writing straight machine code

This commit is contained in:
2020-09-27 18:38:35 -06:00
parent 275f66bf24
commit 24171412bd
4 changed files with 1380 additions and 49 deletions

View File

@ -33,4 +33,32 @@ add x29, x0, x0
add x30, x0, x0
add x31, x0, x0
# nop required because cpu currently does not detect when something is needed from a later stage of the pipeline.
# 5 clocks allows one instruction to finish before the next starts
nop
nop
nop
nop
nop
addi x1, x0, 0x12
nop
nop
nop
nop
nop
addi x2, x0, 0x11
nop
nop
nop
nop
nop
add x3, x2, x1
loop:
nop
nop
nop
nop
nop
j loop
.data