2021-04-21 12:09:18 -04:00
|
|
|
( dev/console )
|
2021-02-20 18:00:34 -05:00
|
|
|
|
2021-03-16 00:29:44 -04:00
|
|
|
%RTN { JMP2r }
|
|
|
|
|
2021-04-21 08:45:17 -04:00
|
|
|
( devices )
|
|
|
|
|
|
|
|
|10 @Console [ &pad $8 &char $1 ]
|
|
|
|
|
2021-04-21 12:48:04 -04:00
|
|
|
( init )
|
2021-04-21 08:45:17 -04:00
|
|
|
|
2021-04-21 12:48:04 -04:00
|
|
|
|0100 ( -> )
|
2021-02-20 18:00:34 -05:00
|
|
|
|
2021-05-01 12:59:57 -04:00
|
|
|
;hello-word ,print JSR
|
2021-04-20 14:32:26 -04:00
|
|
|
|
2021-02-20 18:00:34 -05:00
|
|
|
BRK
|
|
|
|
|
2021-04-29 00:00:39 -04:00
|
|
|
@print ( addr* -- )
|
2021-03-11 15:19:59 -05:00
|
|
|
|
2021-04-20 14:32:26 -04:00
|
|
|
&loop
|
2021-04-21 14:12:42 -04:00
|
|
|
( send ) DUP2 GET .Console/char DEO
|
2021-03-11 15:19:59 -05:00
|
|
|
( incr ) #0001 ADD2
|
2021-04-24 12:43:30 -04:00
|
|
|
( loop ) DUP2 GET #00 NEQ ,&loop JNZ
|
2021-02-23 16:49:36 -05:00
|
|
|
POP2
|
2021-03-01 11:55:16 -05:00
|
|
|
|
2021-04-20 14:32:26 -04:00
|
|
|
RTN
|
2021-02-20 18:00:34 -05:00
|
|
|
|
2021-04-24 12:43:30 -04:00
|
|
|
@hello-word "hello 20 "World!
|