OpenCores
URL https://opencores.org/ocsvn/lxp32/lxp32/trunk

Subversion Repositories lxp32

[/] [lxp32/] [trunk/] [verify/] [lxp32/] [src/] [firmware/] [test017.asm] - Blame information for rev 9

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 9 ring0_mipt
/*
2
 * Test the new "lcs" instruction
3
 */
4
 
5
        lc r100, 0x10000000 // test result output pointer
6
        lcs r101, halt
7
        lcs r102, failure
8
 
9
        lc r0, 1000000
10
        lc r1, -1000011
11
        lcs r10, 1000000
12
        lcs r11, -1000011
13
 
14
        cjmpne r102, r0, r10 // failure
15
        cjmpne r102, r1, r11 // failure
16
 
17
        sw r100, 1
18
        jmp r101 // halt
19
 
20
failure:
21
        sw r100, 2
22
 
23
halt:
24
        hlt
25
        jmp r101 // halt

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.