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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [hwtests/] [tmrtest/] [tmrtest.s] - Blame information for rev 243

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

Line No. Rev Author Line
1 14 hellwig
;
2
; tmrtest.s -- test timer
3
;
4
 
5
        .set    tmr_base,0xF0000000
6
        .set    io_base,0xF0300000
7
 
8
        add     $8,$0,tmr_base
9 39 hellwig
        add     $9,$0,50000000           ; divisor for 1 sec
10 14 hellwig
        stw     $9,$8,4
11
        add     $7,$0,'a'-10
12
again:
13
        jal     out
14
wait:
15
        add     $8,$0,tmr_base
16
        ldw     $9,$8,0
17
        and     $9,$9,1
18
        beq     $9,$0,wait
19
        stw     $0,$8,0
20
        add     $7,$7,1
21
        add     $9,$0,'z'+1
22
        bne     $7,$9,again
23
        add     $7,$0,'a'
24
        j       again
25
 
26
out:
27
        add     $8,$0,io_base
28
out1:
29
        ldw     $9,$8,8
30
        and     $9,$9,1
31
        beq     $9,$0,out1
32
        stw     $7,$8,12
33
        jr      $31

powered by: WebSVN 2.1.0

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