URL
https://opencores.org/ocsvn/lxp32/lxp32/trunk
Subversion Repositories lxp32
[/] [lxp32/] [trunk/] [verify/] [lxp32/] [src/] [firmware/] [test003.asm] - Rev 9
Compare with Previous | Blame | View Log
/** This test verifies that basic logical operations* (and, xor, or, not) work.*/lc r100, 0x10000000 // test result output pointerlc r101, haltlc r102, failurelc r0, 0xD54B65C0lc r1, 0xCE8870A8lc r16, 0x10000004 // destination pointerand r2, r0, r1sw r16, r2lc r3, 0xC4086080cjmpne r102, r2, r3or r2, r0, r1sw r16, r2lc r3, 0xDFCB75E8cjmpne r102, r2, r3xor r2, r0, r1sw r16, r2lc r3, 0x1BC31568cjmpne r102, r2, r3// Note: "not dst, src" is just an alias for "xor dst, src, -1"not r2, r0sw r16, r2lc r3, 0x2AB49A3Fcjmpne r102, r2, r3sw r100, 1jmp r101failure:sw r100, 2halt:hltjmp r101
