URL
https://opencores.org/ocsvn/lxp32/lxp32/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 6 |
Rev 9 |
/*
|
/*
|
* Test the new "lcs" instruction
|
* Test the new "lcs" instruction
|
*/
|
*/
|
|
|
lc r100, 0x10000000 // test result output pointer
|
lc r100, 0x10000000 // test result output pointer
|
lcs r101, halt
|
lcs r101, halt
|
lcs r102, failure
|
lcs r102, failure
|
|
|
lc r0, 1000000
|
lc r0, 1000000
|
lc r1, -1000011
|
lc r1, -1000011
|
lcs r10, 1000000
|
lcs r10, 1000000
|
lcs r11, -1000011
|
lcs r11, -1000011
|
|
|
cjmpne r102, r0, r10 // failure
|
cjmpne r102, r0, r10 // failure
|
cjmpne r102, r1, r11 // failure
|
cjmpne r102, r1, r11 // failure
|
|
|
sw r100, 1
|
sw r100, 1
|
jmp r101 // halt
|
jmp r101 // halt
|
|
|
failure:
|
failure:
|
sw r100, 2
|
sw r100, 2
|
|
|
halt:
|
halt:
|
hlt
|
hlt
|
jmp r101 // halt
|
jmp r101 // halt
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.