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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [simtest/] [rom/] [rom07.s] - Blame information for rev 262

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

Line No. Rev Author Line
1 9 hellwig
;
2
; rom07.s -- string output to output device
3
;
4
 
5
; $8  I/O base address
6
; $9  temporary value
7
; $10 character
8
; $11 pointer to string
9
; $31 return address
10
 
11
        .set    oba,0xFF000000
12
 
13
        add     $8,$0,oba
14
        add     $11,$0,hello
15
loop:
16
        ldbu    $10,$11,0
17
stop:
18
        beq     $10,$0,stop
19
        jal     out
20
        add     $11,$11,1
21
        j       loop
22
 
23
out:
24
        stw     $10,$8,0
25
        jr      $31
26
 
27
hello:
28
        .byte   "Hello, world!", 0x0D, 0x0A, 0

powered by: WebSVN 2.1.0

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