1999-04-16 01:35:26 +00:00
|
|
|
comment "subroutine prologue"
|
2001-11-10 17:55:48 +00:00
|
|
|
.macro gdbasm_enter
|
1999-04-16 01:35:26 +00:00
|
|
|
st r13,@-sp
|
|
|
|
.endm
|
|
|
|
|
|
|
|
comment "subroutine epilogue"
|
2001-11-10 17:55:48 +00:00
|
|
|
.macro gdbasm_leave
|
1999-04-16 01:35:26 +00:00
|
|
|
ld r13,@sp+
|
|
|
|
jmp r13
|
|
|
|
.endm
|
|
|
|
|
2001-11-10 17:55:48 +00:00
|
|
|
.macro gdbasm_call subr
|
1999-04-16 01:35:26 +00:00
|
|
|
bl \subr
|
|
|
|
.endm
|
|
|
|
|
2001-11-10 17:55:48 +00:00
|
|
|
.macro gdbasm_several_nops
|
1999-04-16 01:35:26 +00:00
|
|
|
nop
|
|
|
|
nop
|
|
|
|
nop
|
|
|
|
nop
|
|
|
|
.endm
|
|
|
|
|
|
|
|
comment "exit (0)"
|
2001-11-10 17:55:48 +00:00
|
|
|
.macro gdbasm_exit0
|
1999-04-16 01:35:26 +00:00
|
|
|
ldi r4, 1
|
|
|
|
ldi r0, 0
|
|
|
|
trap 15
|
|
|
|
.endm
|
2000-07-04 02:47:08 +00:00
|
|
|
|
|
|
|
comment "crt0 startup"
|
2001-11-10 17:55:48 +00:00
|
|
|
.macro gdbasm_startup
|
2000-07-04 02:47:08 +00:00
|
|
|
.endm
|