feat: Initial commit
This commit is contained in:
16
Laboratorio2/Esercizio1.asm
Normal file
16
Laboratorio2/Esercizio1.asm
Normal file
@@ -0,0 +1,16 @@
|
||||
.data
|
||||
n1: .byte 10
|
||||
n2: .byte 0x10
|
||||
n3: .byte '1'
|
||||
res: .space 1
|
||||
|
||||
.text
|
||||
.globl main
|
||||
.ent main
|
||||
main:
|
||||
lb $t1, n1
|
||||
lb $t2, n2
|
||||
lb $t3, n3
|
||||
sub $t4, $t1, $t2
|
||||
add $t4, $t4, $t3
|
||||
sb $t4, res
|
||||
Reference in New Issue
Block a user