attempts at warmup exercises.

This commit is contained in:
2025-08-02 13:08:30 -04:00
parent 5bb19672a7
commit e54e352a6e
6 changed files with 153 additions and 57 deletions
+32
View File
@@ -0,0 +1,32 @@
.psx
.create "exercise_1.bin", 0x80010000
; Entry Point of Code
.org 0x80010000
; Constant declaration
BASE_ADDR equ 0x0000
; Symbol Alias Table
; Instructions
load_imm equ li ; dst_reg, immeidate value
store_word equ sw ; src_reg, dst_address
; Registers
rtemp_0 equ $t0
rtemp_1 equ $t1
rtemp_2 equ $t2
main:
; TODO:
; 1. Load $t0 with the immediate decimal value of 1
; 2. Load $t1 with the immediate decimal value of 256
; 3. Load $t2 with the immediate decimal value of 17
; Attempt:
load_imm rtemp_0, 1
load_imm rtemp_1, 256
load_imm rtemp_2, 17
end:
.close