SimpleProcessorCore/asm/mult.s

14 lines
130 B
ArmAsm
Raw Normal View History

2013-07-04 16:17:05 +02:00
lui $1, 5
lui $2, 6
lui $3, 0
lui $4, 1
add $5, $0, $2
loop:
add $3, $3, $1
sub $5, $5, $4
jpz end
jmp loop
end:
2014-12-03 21:57:49 +01:00
sto $3, 5000
2013-07-04 16:17:05 +02:00
hlt