URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
[/] [or1k/] [branches/] [oc/] [gdb-5.0/] [sim/] [testsuite/] [d30v-elf/] [os-dbt.S] - Rev 1765
Compare with Previous | Blame | View Log
.globl _start## NOTE: Registers r10-r11 are reserved for the interrupt handler# while the others can be used by the main loop/start code._start:# patch the DBT handleradd r1, r0, handlerldw r2, @(r1, 0)ldw r3, @(r1, 4)# DBT vector addressadd r1, r0, 0xfffff120stw r2, @(r1, 0)stw r3, @(r1, 4)# try out the breakpoint/returnadd r2, r0, 47#dbtnop.long 0x00b00000nop# exit with what ever the breakpoint hander set r2 to.nop.long 0x0e000004nophandler:jmp real_handler# The Breakpoint handler sets r2 to 0 if PSW was set correctly.real_handler:mvfsys r2, cr0sub r2, r0, 0x08000000#rtdnop.long 0x00a00000nop
