2021-04-21 16:09:18 +00:00
|
|
|
( dev/console )
|
2021-02-20 23:00:34 +00:00
|
|
|
|
2021-03-16 04:29:44 +00:00
|
|
|
%RTN { JMP2r }
|
|
|
|
|
2021-04-21 12:45:17 +00:00
|
|
|
( devices )
|
|
|
|
|
|
|
|
|10 @Console [ &pad $8 &char $1 ]
|
|
|
|
|
2021-04-21 16:48:04 +00:00
|
|
|
( init )
|
2021-04-21 12:45:17 +00:00
|
|
|
|
2021-04-21 16:48:04 +00:00
|
|
|
|0100 ( -> )
|
2021-02-20 23:00:34 +00:00
|
|
|
|
2021-04-20 18:32:26 +00:00
|
|
|
;hello-word ;print JSR2
|
|
|
|
|
2021-02-20 23:00:34 +00:00
|
|
|
BRK
|
|
|
|
|
2021-04-20 18:32:26 +00:00
|
|
|
@print ( addr -- )
|
2021-03-11 20:19:59 +00:00
|
|
|
|
2021-04-20 18:32:26 +00:00
|
|
|
&loop
|
|
|
|
( send ) DUP2 PEK2 .Console/char IOW
|
2021-03-11 20:19:59 +00:00
|
|
|
( incr ) #0001 ADD2
|
2021-04-20 18:32:26 +00:00
|
|
|
( loop ) DUP2 PEK2 #00 NEQ ,&loop JNZ
|
2021-02-23 21:49:36 +00:00
|
|
|
POP2
|
2021-03-01 16:55:16 +00:00
|
|
|
|
2021-04-20 18:32:26 +00:00
|
|
|
RTN
|
2021-02-20 23:00:34 +00:00
|
|
|
|
2021-04-20 18:32:26 +00:00
|
|
|
@hello-word [ 48 65 6c 6c 6f 20 57 6f 72 6c 64 21 ]
|