1 1.1 christos comment "subroutine prologue" 2 1.1 christos .macro gdbasm_enter 3 1.1 christos LINK 12; 4 1.1 christos .endm 5 1.1 christos 6 1.1 christos comment "subroutine epilogue" 7 1.1 christos .macro gdbasm_leave 8 1.1 christos UNLINK; 9 1.1 christos RTS; 10 1.1 christos .endm 11 1.1 christos 12 1.1 christos .macro gdbasm_call subr 13 1.1 christos call \subr; 14 1.1 christos .endm 15 1.1 christos 16 1.1 christos .macro gdbasm_several_nops 17 1.1 christos mnop; 18 1.1 christos mnop; 19 1.1 christos mnop; 20 1.1 christos mnop; 21 1.1 christos .endm 22 1.1 christos 23 1.1 christos comment "exit (0)" 24 1.1 christos .macro gdbasm_exit0 25 1.1 christos R0 = 0; 26 1.1 christos EXCPT 0; 27 1.1 christos NOP; 28 1.1 christos .endm 29 1.1 christos 30 1.1 christos comment "crt0 startup" 31 1.1 christos .macro gdbasm_startup 32 1.1 christos FP = 0; 33 1.1 christos LINK 0xc; 34 1.1 christos .endm 35 1.1 christos 36 1.1 christos comment "Declare a data variable" 37 1.1 christos .purgem gdbasm_datavar 38 1.1 christos .macro gdbasm_datavar name value 39 1.1 christos .data 40 1.1 christos .align 4 41 1.1 christos .type \name, @object 42 1.1 christos .size \name, 4 43 1.1 christos \name: 44 1.1 christos .long \value 45 1.1 christos .endm 46