]>
Commit | Line | Data |
---|---|---|
2705e972 AS |
1 | comment "subroutine prologue" |
2 | .macro gdbasm_enter | |
3 | link %a6,#0 | |
4 | .endm | |
5 | ||
6 | comment "subroutine epilogue" | |
7 | .macro gdbasm_leave | |
8 | unlk %a6 | |
9 | rts | |
10 | .endm | |
11 | ||
12 | .macro gdbasm_call subr | |
13 | jbsr \subr | |
14 | .endm | |
15 | ||
16 | .macro gdbasm_several_nops | |
17 | nop | |
18 | nop | |
19 | nop | |
20 | nop | |
21 | .endm | |
22 | ||
23 | comment "exit (0)" | |
24 | .macro gdbasm_exit0 | |
25 | illegal | |
26 | .endm | |
27 | ||
28 | comment "crt0 startup" | |
29 | .macro gdbasm_startup | |
30 | lea 0,%a6 | |
31 | .endm | |
32 | ||
33 | comment "Declare a data variable" | |
584b6e9e | 34 | .purgem gdbasm_datavar |
2705e972 AS |
35 | .macro gdbasm_datavar name value |
36 | .data | |
37 | \name: | |
38 | .long \value | |
39 | .endm |