Files
vhdl/lib/CPUs/MIPS/sim/asm/test2.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

40 lines
620 B
ArmAsm

.text
.globl main
.globl __start
__start: j main
main: lui $1, 0x1234
ori $1, $1, 0x5678
lui $3, 0x5555
ori $3, $3, 0xAAAA
lui $2, 0x1000
sw $1, 0($2)
sw $3, 4($2)
sw $2, 0($2)
sw $1, 4($2)
lw $1, 4($2)
lw $4, 0($2)
lui $5, 0x0001
lui $6, 0x0002
lui $7, 0x0003
lui $8, 0x0004
add $4, $4, $5
sll $0, $0, 0
sll $0, $0, 0
sll $0, $0, 0
sll $0, $0, 0
sll $0, $0, 0
j main
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
sll $0, $0, 0