blob: 95f017cdf7cc269e06aeff1da989a5c8cfcc2168 (
plain)
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
29
30
31
|
@include %bootstrap
@include %std_mem
@include %std_term
@data text_buffer_size 2048
@data hello_string "foobar baz\n"
@label main
; use memset to clear the text buffer
ldi vt_text_mem RA ; RA := text buffer address pointer
ldr RA RA ; RA := text buffer address
ldi text_buffer_size RB ; RB := pointer to 1024
ldr RB RB ; RB := 1024
ldi 0 RC ; RC := 0
calli memset
set_graphics_mode gr_text_mode
; @data test_char ${ord('A')}
; ldi test_char RA ; RA := 'A' pointer
; ldr RA RA ; RA := 'A'
; calli log_term_char
ldi hello_string RA ; RA := hello string pointer
calli log_term_string
; loop forever
@label loop
jpi loop
|