OpenCores
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/] [v850.inc] - Rev 299

Go to most recent revision | Compare with Previous | Blame | View Log

        comment "subroutine prologue"
        .macro gdbasm_enter
        add -8,sp
        st.w r31,4[sp]
        st.w r29,0[sp]
        mov sp,r29
        .endm

        comment "subroutine epilogue"
        .macro gdbasm_leave
        mov r29,sp
        ld.w 0[sp],r29
        ld.w 4[sp],r31
        add 8,sp
        jmp [r31]
        .endm

        .macro gdbasm_call subr
        jarl \subr,r31
        .endm

        .macro gdbasm_several_nops
        nop
        nop
        nop
        nop
        .endm

        comment "exit (0)"
        .macro gdbasm_exit0
        halt
        .endm

        comment "crt0 startup"
        .macro gdbasm_startup
        movea 255,r0,r20
        mov r0, r21
        ori 65535, r0, r21
        movhi 32, r0, sp
        .endm

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.