added makeint

This commit is contained in:
Sanjar Ahmadov
2021-05-02 09:40:03 -04:00
parent 4d97a84bce
commit bcf37be308
+11
View File
@@ -0,0 +1,11 @@
# Box integer
addi sp, sp, -8
sw ra, 4(sp)
sw a0, 0(sp)
la a0, $int$prototype
jal ra, alloc
lw t0, 0(sp)
sw t0, @.__int__(a0)
lw ra, 4(sp)
addi sp, sp, 8
jr ra