summaryrefslogtreecommitdiff
path: root/asm/test.asm
blob: d37ca61844a4f92e15f499f9fb39a80f4a8524a6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
.text
    liuz SP 0xFF
    add D Z Z
init:
    liuz B 0x40
    lw B 0(B)
    jz B init
    add D D B
    push D
    la A msgtick
    jal ser_out_msg
    pop D
    j init

ser_out_msg:
    liuz C 0x41
    lil C 0x02
ser_out_msg_loop:
    lb B 0(A)
    jz B ser_out_msg_ret
    sb B 0(C)
    incri A 1
    j ser_out_msg_loop
ser_out_msg_ret:
    jr RA

msgtick:
    asciiz "Tick!"