Commit | Line | Data |
---|---|---|
c906108c SS |
1 | .macro comment text |
2 | .endm | |
3 | ||
4 | comment "Can't rely on assembler comment character so do this." | |
5 | ||
6 | .macro include arch file | |
7 | .include "\arch\file" | |
8 | .endm | |
9 | ||
ca9efc90 MS |
10 | comment "Declare a data variable" |
11 | .macro gdbasm_datavar name value | |
12 | .data | |
13 | \name: | |
14 | .word \value | |
15 | .endm | |
16 | ||
8b1d7e37 DJ |
17 | comment "Declare a subroutine" |
18 | .macro gdbasm_declare name | |
19 | \name: | |
20 | .endm | |
21 | ||
22 | comment "End a subroutine" | |
23 | .macro gdbasm_end name | |
24 | .endm | |
25 | ||
c906108c SS |
26 | comment "arch.inc is responsible for defining the following macros:" |
27 | comment "enter - subroutine prologue" | |
28 | comment "leave - subroutine epilogue" | |
29 | comment "call - call a named subroutine" | |
30 | comment "several_nops - execute several (typically 4) nops" | |
31 | comment "exit0 - exit (0)" | |
32 | ||
ca9efc90 MS |
33 | comment "arch.inc may also override the default definitions of:" |
34 | comment "datavar - define a data variable" | |
8b1d7e37 DJ |
35 | comment "declare - declare the start of a subroutine" |
36 | comment "end - end a subroutine" |