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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [hwtests/] [sregtest/] [sregtest.s] - Blame information for rev 109

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 14 hellwig
;
2
; sregtest.s -- test special register transfer instructions
3
;
4
 
5
        .set    io_base,0xF0300000
6
 
7
        add     $7,$0,'.'
8
 
9
        add     $11,$0,0x1E67C536
10
        mvts    $11,1
11
        add     $12,$0,0xB45FCC78
12
        mvts    $12,2
13
        add     $13,$0,0x1FCB0BC5
14
        mvts    $13,3
15
 
16
        mvfs    $8,1
17
        xor     $9,$8,$11
18
        and     $9,$9,0x0000001F
19
        beq     $9,$0,lbl1
20
        add     $7,$0,'?'
21
lbl1:
22
 
23
        mvfs    $8,2
24
        xor     $9,$8,$12
25
        and     $9,$9,0xFFFFF000
26
        beq     $9,$0,lbl2
27
        add     $7,$0,'?'
28
lbl2:
29
 
30
        mvfs    $8,3
31
        xor     $9,$8,$13
32
        and     $9,$9,0x3FFFF003
33
        beq     $9,$0,lbl3
34
        add     $7,$0,'?'
35
lbl3:
36
 
37
        jal     out
38
halt:
39
        j       halt
40
 
41
out:
42
        add     $8,$0,io_base
43
out1:
44
        ldw     $9,$8,8
45
        and     $9,$9,1
46
        beq     $9,$0,out1
47
        stw     $7,$8,12
48
        jr      $31

powered by: WebSVN 2.1.0

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