31 lines
383 B
Plaintext
31 lines
383 B
Plaintext
( hello world )
|
|
|
|
;iterator
|
|
|
|
|0100 @RESET
|
|
|
|
@word1 "hello_world ( len: 0x0b )
|
|
|
|
@loop
|
|
,00 IOW ( write to device#0 )
|
|
,incr JSR ( increment itr )
|
|
,word1 ,strlen JSR ( get strlen )
|
|
NEQ ,loop ROT JSR? ( loop != strlen )
|
|
|
|
BRK
|
|
|
|
@strlen
|
|
,0001 ADD^ LDR
|
|
RTS
|
|
|
|
@incr
|
|
,iterator LDR
|
|
,01 ADD
|
|
,iterator STR
|
|
,iterator LDR
|
|
RTS
|
|
|
|
|c000 @FRAME BRK
|
|
|d000 @ERROR BRK
|
|
|FFFA .RESET .FRAME .ERROR
|