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 10 comment "Declare a data variable" 11 .macro gdbasm_datavar name value 12 .data 13\name: 14 .word \value 15 .endm 16 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 26comment "arch.inc is responsible for defining the following macros:" 27comment "enter - subroutine prologue" 28comment "leave - subroutine epilogue" 29comment "call - call a named subroutine" 30comment "several_nops - execute several (typically 4) nops" 31comment "exit0 - exit (0)" 32 33comment "arch.inc may also override the default definitions of:" 34comment "datavar - define a data variable" 35comment "declare - declare the start of a subroutine" 36comment "end - end a subroutine" 37