OSDN Git Service

r284@cf-ppc-macosx: monabuilder | 2008-12-07 10:57:41 +0900
[pf3gnuchains/pf3gnuchains3x.git] / gdb / testsuite / gdb.asm / iq2000.inc
1         comment "subroutine prologue"
2         .macro gdbasm_enter
3         addiu %29, %29, 0xfffc
4         sw %31,0(%29)
5         .endm
6
7         comment "subroutine epilogue"
8         .macro gdbasm_leave
9         lw %31,0(%29)
10         addiu %29, %29, 4
11         jr %31
12         nop
13         .endm
14
15         .macro gdbasm_call subr
16         jal \subr
17         nop
18         .endm
19
20         .macro gdbasm_several_nops
21         nop
22         nop
23         nop
24         nop
25         .endm
26
27         comment "exit (0)"
28         .macro gdbasm_exit0
29         ori  %4, %0, 1  # SYS_exit
30         ori  %5, %0, 0  # normal exit code
31         ori  %6, %0, 0
32         ori  %7, %0, 0
33         syscall
34         .endm
35
36         comment "crt0 startup"
37         .macro gdbasm_startup
38         andi %0, %0, 0
39         addiu %29, %0, 0xffc
40         .endm
41