URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 24 |
Rev 33 |
comment "subroutine prologue"
|
comment "subroutine prologue"
|
.macro gdbasm_enter
|
.macro gdbasm_enter
|
push %ebp
|
push %ebp
|
mov %esp,%ebp
|
mov %esp,%ebp
|
.endm
|
.endm
|
|
|
comment "subroutine epilogue"
|
comment "subroutine epilogue"
|
.macro gdbasm_leave
|
.macro gdbasm_leave
|
pop %ebp
|
pop %ebp
|
ret
|
ret
|
.endm
|
.endm
|
|
|
.macro gdbasm_call subr
|
.macro gdbasm_call subr
|
call \subr
|
call \subr
|
.endm
|
.endm
|
|
|
.macro gdbasm_several_nops
|
.macro gdbasm_several_nops
|
nop
|
nop
|
nop
|
nop
|
nop
|
nop
|
nop
|
nop
|
.endm
|
.endm
|
|
|
comment "exit (0)"
|
comment "exit (0)"
|
.macro gdbasm_exit0
|
.macro gdbasm_exit0
|
hlt
|
hlt
|
.endm
|
.endm
|
|
|
comment "crt0 startup"
|
comment "crt0 startup"
|
.macro gdbasm_startup
|
.macro gdbasm_startup
|
xor %ebp, %ebp
|
xor %ebp, %ebp
|
.endm
|
.endm
|
|
|
comment "Declare a data variable"
|
comment "Declare a data variable"
|
.purgem gdbasm_datavar
|
.purgem gdbasm_datavar
|
.macro gdbasm_datavar name value
|
.macro gdbasm_datavar name value
|
.data
|
.data
|
\name:
|
\name:
|
.long \value
|
.long \value
|
.endm
|
.endm
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.