URL
https://opencores.org/ocsvn/lxp32/lxp32/trunk
Subversion Repositories lxp32
[/] [lxp32/] [trunk/] [verify/] [lxp32/] [src/] [firmware/] [test016.asm] - Rev 2
Go to most recent revision | Compare with Previous | Blame | View Log
/** Test for temporarily blocked interrupts*/lc r100, 0x10000000 // test result output pointerlc r101, haltlc r102, failurelc r103, 0x20000000 // timer: number of pulses (0xFFFFFFFF - infinite)lc r104, 0x20000004 // timer: delay between pulses (in cycles)lc iv0, timer_handlerlc cr, 0x101 // enable interrupt 0 in temporarily blocked statelc r32, 0 // interrupt handler call counterlc r33, 1000 // loop counterlc r34, loop1lc r35, loop2sw r104, 100sw r103, 1loop1:sub r33, r33, 1cjmpug r34, r33, 0 // loop1lc r33, 1000mov cr, 1 // unblock interrupt 0loop2:sub r33, r33, 1cjmpug r35, r33, 0 // loop2// r32 should be 1 by this pointcjmpne r102, r32, 1 // failuresw r100, 1jmp r101 // haltfailure:sw r100, 2halt:hltjmp r101 // halttimer_handler:add r32, r32, 1iret
Go to most recent revision | Compare with Previous | Blame | View Log
