URL
https://opencores.org/ocsvn/lxp32/lxp32/trunk
Subversion Repositories lxp32
[/] [lxp32/] [trunk/] [verify/] [lxp32/] [src/] [firmware/] [test006.asm] - Rev 9
Compare with Previous | Blame | View Log
/** This test checks for a bug with jump destination register* being wrongly overwritten when jump instruction follows "lw"*/lc r100, 0x10000000 // test result output pointerlc r101, haltlc r102, failurelc r16, 0x10000004lc r17, 0x12345678lc r18, 0x12345678sw r16, 123lw r0, r16cjmpne r17, 0, 0 // r17 used to be wrongly overwritten by the value of r16 heresw r16, r17nopnopcjmpne r102, r17, r18sw r100, 1jmp r101failure:sw r100, 2halt:hltjmp r101
