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
|
2021-04-21 18:12:42 +00:00
|
|
|
( send ) DUP2 GET .Console/char DEO
|
2021-03-11 20:19:59 +00:00
|
|
|
( incr ) #0001 ADD2
|
2021-04-21 17:23:58 +00:00
|
|
|
( loop ) DUP2 GET #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-21 18:12:42 +00:00
|
|
|
@hello-word "hello 20 "World!
|