RISC-V CORE
This commit is contained in:
12
FINAL/program.hex
Normal file
12
FINAL/program.hex
Normal file
@@ -0,0 +1,12 @@
|
||||
00000093 // addi x1, x0, 0 - x1 = 0
|
||||
00100113 // addi x2, x0, 1 - x2 = 1
|
||||
00200193 // addi x3, x0, 2 - x3 = 2
|
||||
003081b3 // add x3, x1, x3 - x3 = 0 + 2 = 2
|
||||
00420233 // add x4, x4, x4 - x4 = x4 + x4 (should be 0)
|
||||
00228463 // beq x5, x2, 8 - branch if x5 == x2 (should not take)
|
||||
00400463 // beq x0, x4, 8 - branch if 0 == 0 (should take)
|
||||
00a00513 // addi x10, x0, 10 - x10 = 10 (should be skipped)
|
||||
fff00513 // addi x10, x0, -1 - x10 = -1 (should execute)
|
||||
00000013 // nop
|
||||
00000013 // nop
|
||||
00000013 // nop
|
Reference in New Issue
Block a user