.psx
.create "./build/fillmem.bin", 0x80010000

; Entry Point of Code
.org 0x80010000

; Constant declaration
BASE_ADDR equ 0x0000

Main:
	li $t0, 0xA000     ; $t0 = 0xA000
	li $t1, 0xA100     ; $t1 = 0xA100
	li $t2, 0x11111111 ; $t2 = 0x11111111

Loop:
	sw   $t2, BASE_ADDR($t0) ; Store byte at 0x0000 + t0
	addi $t0, $t0, 4         ; ++ t0
	blt  $t0, $t1, Loop      ; while (t0 < t1) keep looping

.close
