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 | ||
5f2c56f7 RC |
6 | comment "On some platforms (like HPUX), only labels are allowed" |
7 | comment "to start at the first column. Beware of this when editing" | |
8 | comment "the assembly files for this test." | |
9 | ||
c906108c SS |
10 | .macro include arch file |
11 | .include "\arch\file" | |
12 | .endm | |
13 | ||
ca9efc90 MS |
14 | comment "Declare a data variable" |
15 | .macro gdbasm_datavar name value | |
16 | .data | |
17 | \name: | |
18 | .word \value | |
19 | .endm | |
20 | ||
8b1d7e37 DJ |
21 | comment "Declare a subroutine" |
22 | .macro gdbasm_declare name | |
23 | \name: | |
24 | .endm | |
25 | ||
26 | comment "End a subroutine" | |
27 | .macro gdbasm_end name | |
28 | .endm | |
29 | ||
5f2c56f7 RC |
30 | comment "arch.inc is responsible for defining the following macros:" |
31 | comment "enter - subroutine prologue" | |
32 | comment "leave - subroutine epilogue" | |
33 | comment "call - call a named subroutine" | |
34 | comment "several_nops - execute several (typically 4) nops" | |
35 | comment "exit0 - exit (0)" | |
36 | ||
37 | comment "arch.inc may also override the default definitions of:" | |
38 | comment "datavar - define a data variable" | |
39 | comment "declare - declare the start of a subroutine" | |
40 | comment "end - end a subroutine" |