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

Subversion Repositories lxp32

[/] [lxp32/] [trunk/] [verify/] [lxp32/] [src/] [firmware/] [test016.asm] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 9 ring0_mipt
/*
2 12 ring0_mipt
 * Test wake-up interrupts
3 9 ring0_mipt
 */
4
 
5
        lc r100, 0x10000000 // test result output pointer
6
        lc r101, halt
7 12 ring0_mipt
        lc r102, 0x30000000 // coprocessor input register
8
        lc r103, 0x30000004 // coprocessor output register
9
        lc r104, failure
10
 
11
        lcs cr, 0x0404 // enable coprocessor interrupt and mark it as wake-up
12 9 ring0_mipt
 
13 12 ring0_mipt
        sw r102, 33
14 9 ring0_mipt
 
15 12 ring0_mipt
        hlt
16 9 ring0_mipt
 
17 12 ring0_mipt
        lw r1, r103
18
        cjmpne r104, r1, 99
19
 
20
        sw r100, 1 // success
21
 
22
halt:
23
        hlt
24 9 ring0_mipt
        jmp r101 // halt
25 12 ring0_mipt
 
26 9 ring0_mipt
failure:
27
        sw r100, 2
28
        jmp r101 // halt

powered by: WebSVN 2.1.0

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