fillmem.s

This commit is contained in:
2025-08-02 00:44:27 -04:00
parent 1117d99090
commit fc54c87300
7 changed files with 67 additions and 1 deletions
+17
View File
@@ -0,0 +1,17 @@
; Entry Point of Code
.org 0x80010000
; Constant declaration
BASE_ADDR equ 0x0000
Main:
li $t0, 0xA000 ; $t0 = 0xA000
li $t1, 0xA0FF ; $t1 = 0xA0FF
li $t2, 0x11 ; $t2 = 0x11
Loop:
sb $t2, BASE_ADDR($t0) ; $Store byte at 0x0000 + t0
addi $t0, $t0, 1 ; ++ t0
blt $t0, $t1, Loop ; while (t0 < t1) keep looping
.close