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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [simtest/] [rom/] [rom05.s] - Blame information for rev 9

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

Line No. Rev Author Line
1 9 hellwig
;
2
; rom05.s -- Hello, world! (on terminal 1 instead of terminal 0)
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    tba,0xF0300010
12
 
13
        add     $8,$0,tba
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
        ldw     $9,$8,8
25
        and     $9,$9,1
26
        beq     $9,$0,out
27
        stw     $10,$8,12
28
        jr      $31
29
 
30
hello:
31
        .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.