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

Subversion Repositories eco32

[/] [eco32/] [tags/] [eco32-0.25/] [hwtests/] [ldtest/] [ldtest.s] - Diff between revs 14 and 248

Only display areas with differences | Details | Blame | View Log

Rev 14 Rev 248
;
;
; ld.s -- test load instructions
; ld.s -- test load instructions
;
;
 
 
        .set    io_base,0xF0300000
        .set    io_base,0xF0300000
 
 
        add     $7,$0,'.'
        add     $7,$0,'.'
        add     $3,$0,w1
        add     $3,$0,w1
 
 
t0:
t0:
        ldw     $2,$3,0
        ldw     $2,$3,0
        add     $4,$0,0x68795E3C
        add     $4,$0,0x68795E3C
        beq     $2,$4,t1
        beq     $2,$4,t1
        add     $7,$0,'?'
        add     $7,$0,'?'
 
 
t1:
t1:
        ldw     $2,$3,4
        ldw     $2,$3,4
        add     $4,$0,0x6879DEBC
        add     $4,$0,0x6879DEBC
        beq     $2,$4,t2
        beq     $2,$4,t2
        add     $7,$0,'?'
        add     $7,$0,'?'
 
 
t2:
t2:
        ldh     $2,$3,2
        ldh     $2,$3,2
        add     $4,$0,0x00005E3C
        add     $4,$0,0x00005E3C
        beq     $2,$4,t3
        beq     $2,$4,t3
        add     $7,$0,'?'
        add     $7,$0,'?'
 
 
t3:
t3:
        ldh     $2,$3,6
        ldh     $2,$3,6
        add     $4,$0,0xFFFFDEBC
        add     $4,$0,0xFFFFDEBC
        beq     $2,$4,t4
        beq     $2,$4,t4
        add     $7,$0,'?'
        add     $7,$0,'?'
 
 
t4:
t4:
        ldhu    $2,$3,2
        ldhu    $2,$3,2
        add     $4,$0,0x00005E3C
        add     $4,$0,0x00005E3C
        beq     $2,$4,t5
        beq     $2,$4,t5
        add     $7,$0,'?'
        add     $7,$0,'?'
 
 
t5:
t5:
        ldhu    $2,$3,6
        ldhu    $2,$3,6
        add     $4,$0,0x0000DEBC
        add     $4,$0,0x0000DEBC
        beq     $2,$4,t6
        beq     $2,$4,t6
        add     $7,$0,'?'
        add     $7,$0,'?'
 
 
t6:
t6:
        ldb     $2,$3,3
        ldb     $2,$3,3
        add     $4,$0,0x0000003C
        add     $4,$0,0x0000003C
        beq     $2,$4,t7
        beq     $2,$4,t7
        add     $7,$0,'?'
        add     $7,$0,'?'
 
 
t7:
t7:
        ldb     $2,$3,7
        ldb     $2,$3,7
        add     $4,$0,0xFFFFFFBC
        add     $4,$0,0xFFFFFFBC
        beq     $2,$4,t8
        beq     $2,$4,t8
        add     $7,$0,'?'
        add     $7,$0,'?'
 
 
t8:
t8:
        ldbu    $2,$3,3
        ldbu    $2,$3,3
        add     $4,$0,0x0000003C
        add     $4,$0,0x0000003C
        beq     $2,$4,t9
        beq     $2,$4,t9
        add     $7,$0,'?'
        add     $7,$0,'?'
 
 
t9:
t9:
        ldbu    $2,$3,7
        ldbu    $2,$3,7
        add     $4,$0,0x000000BC
        add     $4,$0,0x000000BC
        beq     $2,$4,tx
        beq     $2,$4,tx
        add     $7,$0,'?'
        add     $7,$0,'?'
 
 
tx:
tx:
        jal     out
        jal     out
halt:
halt:
        j       halt
        j       halt
 
 
out:
out:
        add     $8,$0,io_base
        add     $8,$0,io_base
out1:
out1:
        ldw     $9,$8,8
        ldw     $9,$8,8
        and     $9,$9,1
        and     $9,$9,1
        beq     $9,$0,out1
        beq     $9,$0,out1
        stw     $7,$8,12
        stw     $7,$8,12
        jr      $31
        jr      $31
 
 
        .align  4
        .align  4
w1:     .word   0x68795E3C
w1:     .word   0x68795E3C
w2:     .word   0x6879DEBC
w2:     .word   0x6879DEBC
 
 

powered by: WebSVN 2.1.0

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