mirror of
git://projects.qi-hardware.com/iris.git
synced 2024-11-05 11:17:12 +02:00
30 lines
414 B
ArmAsm
30 lines
414 B
ArmAsm
.globl __start
|
|
|
|
__start:
|
|
bal 1f
|
|
.word _gp
|
|
1:
|
|
lw $gp, 0($ra)
|
|
la $v0, __my_receiver
|
|
sw $a0, ($v0)
|
|
la $v0, __top_memory
|
|
sw $a1, ($v0)
|
|
la $v0, __my_memory
|
|
sw $a2, ($v0)
|
|
la $v0, __my_admin
|
|
sw $a3, ($v0)
|
|
la $t9, main
|
|
la $ra, 1f
|
|
jr $t9
|
|
nop
|
|
|
|
1:
|
|
// Generate an address fault.
|
|
lw $a0, -4($zero)
|
|
|
|
.comm __my_receiver, 4
|
|
.comm __top_memory, 4
|
|
.comm __my_memory, 4
|
|
.comm __my_admin, 4
|
|
.comm __my_call, 4
|