Files
vhdl/lib/CPUs/MIPS/sim/asm/test6.s
T
jens cd2640e9c6 Initial revision
Committed on the Free edition of March Hare Software CVSNT Server.
Upgrade to CVS Suite for more features and support:
http://march-hare.com/cvsnt/


git-svn-id: http://moon:8086/svn/vhdl/trunk@986 cc03376c-175c-47c8-b038-4cd826a8556b
2013-07-24 18:13:16 +00:00

31 lines
428 B
ArmAsm

.text
.globl main
.globl __start
__start: j main
main: lui $8, 0
loop: sll $0, $0, 0
jal subr1
la $2, subr2
jalr $15, $2
sll $0, $0, 0
j loop
subr1: addi $8, 1
sll $0, $0, 0
jr $31
subr2: addi $8, 16
sll $0, $0, 0
jr $15
sll $0, $0, 0
sll $0, $0, 0
sll $0, $0, 0
sll $0, $0, 0
sll $0, $0, 0
sll $0, $0, 0
sll $0, $0, 0
sll $0, $0, 0
sll $0, $0, 0