URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gdb-7.1/] [gdb/] [testsuite/] [gdb.asm/] [m68hc11.inc] - Rev 393
Go to most recent revision | Compare with Previous | Blame | View Log
comment "subroutine prologue".macro gdbasm_enterldx _.framepshxsts _.frame.endmcomment "subroutine epilogue".macro gdbasm_leavepulxstx _.framerts.endm.macro gdbasm_call subrjsr \subr.endm.macro gdbasm_several_nopsnopnopnopnop.endmcomment "exit (0)".macro gdbasm_exit0clraclrbwai.endmcomment "crt0 startup".macro gdbasm_startup.sect .data.globl _.frame_.frame: .word 0.previouslds #0x2000; the linker script maps the data section in ROM (LMA) for its initial; content and in RAM (VMA) for its runtime value. We have to do; what the default crt0 does: copy the ROM part in RAM.; (otherwise any 'globalvar' appears uninitialized)ldx #__data_imageldy #__data_section_startbra Start_mapLoop:ldaa 0,xstaa 0,yinxinyStart_map:cpx #__data_image_endblo LoopDone:clr _.frameclr _.frame+1.endmcomment "Declare a data variable".purgem gdbasm_datavar.macro gdbasm_datavar name value.data\name:.word \value.endm
Go to most recent revision | Compare with Previous | Blame | View Log
