diff options
author | Flavian Kaufmann <flavian@flaviankaufmann.ch> | 2024-05-09 11:26:33 +0200 |
---|---|---|
committer | Flavian Kaufmann <flavian@flaviankaufmann.ch> | 2024-05-09 11:26:33 +0200 |
commit | 008059fbe4e960a10bb4c444013129e0aaa02818 (patch) | |
tree | 0e37db7e4ac82fc33c86e5f1dcaa0de59e983c73 /prog | |
parent | d810d1cd42a31268ccb33993f1f1f429900c5ff8 (diff) | |
download | riscv_cpu-008059fbe4e960a10bb4c444013129e0aaa02818.tar.gz riscv_cpu-008059fbe4e960a10bb4c444013129e0aaa02818.zip |
stopped initializing ram and register file to 0 at beginning
Diffstat (limited to 'prog')
-rw-r--r-- | prog/src/prog.s | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/prog/src/prog.s b/prog/src/prog.s index 8944306..4187c8a 100644 --- a/prog/src/prog.s +++ b/prog/src/prog.s @@ -47,9 +47,9 @@ _start: # sw t1, 0(t0) # lw t2, 0(t0) - addi t0, zero, -1 + addi t0, zero, 1 addi t1, zero, 2 - bltu t0, t1, branch_taken + bge t0, t1, branch_taken addi t2, zero, 1 |