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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [hwtests/] [serial/] [fpga2pc/] [send0.s] - Blame information for rev 149

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

Line No. Rev Author Line
1 14 hellwig
;
2
; send.s -- send stream of bytes
3
;
4
 
5
; $8  serial base address
6
; $9  temporary value
7
; $10 character
8
; $11 counter
9
; $31 return address
10
 
11
        .set    tba,0xF0300000
12
 
13
        add     $8,$0,tba
14
        add     $11,$0,0
15
loop:
16
        add     $10,$11,0
17
        and     $10,$10,0xFF
18
        jal     out
19
        add     $11,$11,1
20
        j       loop
21
 
22
out:
23
        ldw     $9,$8,8
24
        and     $9,$9,1
25
        beq     $9,$0,out
26
        stw     $10,$8,12
27
        jr      $31

powered by: WebSVN 2.1.0

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