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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [hwtests/] [ldtest/] [ldtest.s] - Blame information for rev 132

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

Line No. Rev Author Line
1 14 hellwig
;
2
; ld.s -- test load instructions
3
;
4
 
5
        .set    io_base,0xF0300000
6
 
7
        add     $7,$0,'.'
8
        add     $3,$0,w1
9
 
10
t0:
11
        ldw     $2,$3,0
12
        add     $4,$0,0x68795E3C
13
        beq     $2,$4,t1
14
        add     $7,$0,'?'
15
 
16
t1:
17
        ldw     $2,$3,4
18
        add     $4,$0,0x6879DEBC
19
        beq     $2,$4,t2
20
        add     $7,$0,'?'
21
 
22
t2:
23
        ldh     $2,$3,2
24
        add     $4,$0,0x00005E3C
25
        beq     $2,$4,t3
26
        add     $7,$0,'?'
27
 
28
t3:
29
        ldh     $2,$3,6
30
        add     $4,$0,0xFFFFDEBC
31
        beq     $2,$4,t4
32
        add     $7,$0,'?'
33
 
34
t4:
35
        ldhu    $2,$3,2
36
        add     $4,$0,0x00005E3C
37
        beq     $2,$4,t5
38
        add     $7,$0,'?'
39
 
40
t5:
41
        ldhu    $2,$3,6
42
        add     $4,$0,0x0000DEBC
43
        beq     $2,$4,t6
44
        add     $7,$0,'?'
45
 
46
t6:
47
        ldb     $2,$3,3
48
        add     $4,$0,0x0000003C
49
        beq     $2,$4,t7
50
        add     $7,$0,'?'
51
 
52
t7:
53
        ldb     $2,$3,7
54
        add     $4,$0,0xFFFFFFBC
55
        beq     $2,$4,t8
56
        add     $7,$0,'?'
57
 
58
t8:
59
        ldbu    $2,$3,3
60
        add     $4,$0,0x0000003C
61
        beq     $2,$4,t9
62
        add     $7,$0,'?'
63
 
64
t9:
65
        ldbu    $2,$3,7
66
        add     $4,$0,0x000000BC
67
        beq     $2,$4,tx
68
        add     $7,$0,'?'
69
 
70
tx:
71
        jal     out
72
halt:
73
        j       halt
74
 
75
out:
76
        add     $8,$0,io_base
77
out1:
78
        ldw     $9,$8,8
79
        and     $9,$9,1
80
        beq     $9,$0,out1
81
        stw     $7,$8,12
82
        jr      $31
83
 
84
        .align  4
85
w1:     .word   0x68795E3C
86
w2:     .word   0x6879DEBC

powered by: WebSVN 2.1.0

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