RISC-V CORE

This commit is contained in:
2025-08-23 05:18:49 +03:00
parent a40879f631
commit 989c59ecda
13 changed files with 5245 additions and 477 deletions

64
chapter5/program0.1.hex Normal file
View File

@@ -0,0 +1,64 @@
00000093 // addi x1, x0, 0 | x1 = 0
00100113 // addi x2, x0, 1 | x2 = 1
002081B3 // add x3, x1, x2 | x3 = x1 + x2 = 1
00400293 // addi x5, x0, 4 | x5 = 4 (memory address)
0051A023 // sw x5, 0(x3) | Store x5 at address x3 (1)
0001A303 // lw x6, 0(x3) | Load from address x3 to x6
00600393 // addi x7, x0, 6 | x7 = 6
40738433 // sub x8, x7, x7 | x8 = x7 - x7 = 0
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop
00000013 // nop