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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [simtest/] [rom/] [rom10.s] - Blame information for rev 97

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

Line No. Rev Author Line
1 9 hellwig
;
2
; rom10.s -- output to console using every possible attribute
3
;
4
 
5
; $8 row number
6
; $9 column number
7
; $10 temporary
8
; $11 attribute/character
9
 
10
        .set    dsp_base,0xF0100000
11
 
12
        add     $8,$0,0                   ; start with row = 0
13
        add     $9,$0,0                   ; start with col = 0
14
        add     $11,$0,0x0000+'A'        ; char is always 'A'
15
next:
16
        ; addr = dsp_base + (row * 128 + column) * 4
17
        sll     $10,$8,7
18
        add     $10,$10,$9
19
        sll     $10,$10,2
20
        stw     $11,$10,dsp_base        ; write to display memory
21
        add     $11,$11,0x0100          ; next attribute (bits 15:8)
22
        add     $9,$9,1                 ; next col
23
        add     $10,$0,16
24
        bne     $9,$10,next
25
        add     $9,$0,0                   ; reset col
26
        add     $8,$8,1                 ; next row
27
        add     $10,$0,16
28
        bne     $8,$10,next
29
stop:
30
        j       stop

powered by: WebSVN 2.1.0

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