2021-02-20 18:00:34 -05:00
|
|
|
( hello world )
|
|
|
|
|
2021-03-13 20:34:08 -05:00
|
|
|
@RESET
|
2021-02-20 18:00:34 -05:00
|
|
|
|
2021-03-11 18:47:28 -05:00
|
|
|
,text1 ,print-label JSR2
|
|
|
|
,text2 ,print-label JSR2
|
2021-03-13 20:34:08 -05:00
|
|
|
#ab =Console.byte
|
|
|
|
#cdef =Console.short
|
2021-02-20 18:00:34 -05:00
|
|
|
|
|
|
|
BRK
|
|
|
|
|
2021-02-23 16:49:36 -05:00
|
|
|
@print-label ( text )
|
2021-03-11 15:19:59 -05:00
|
|
|
|
2021-03-11 18:47:28 -05:00
|
|
|
$loop NOP
|
2021-03-13 20:34:08 -05:00
|
|
|
( send ) DUP2 LDR =Console.char
|
2021-03-11 15:19:59 -05:00
|
|
|
( incr ) #0001 ADD2
|
2021-03-11 18:47:28 -05:00
|
|
|
( loop ) DUP2 LDR #00 NEQ ^$loop MUL JMPS
|
2021-02-23 16:49:36 -05:00
|
|
|
POP2
|
2021-03-01 11:55:16 -05:00
|
|
|
|
2021-03-14 17:26:17 -04:00
|
|
|
RTN
|
2021-02-20 18:00:34 -05:00
|
|
|
|
2021-03-11 17:00:32 -05:00
|
|
|
@text1 [ Welcome 20 to 20 UxnVM 0a00 ]
|
|
|
|
@text2 [ Hello 20 World 0a00 ]
|
2021-02-20 18:00:34 -05:00
|
|
|
|
|
|
|
|c000 @FRAME
|
|
|
|
|d000 @ERROR
|
|
|
|
|
2021-03-13 20:34:08 -05:00
|
|
|
|FF00 ;Console { pad 8 char 1 byte 1 short 2 }
|
2021-02-26 17:36:48 -05:00
|
|
|
|
2021-02-28 14:41:28 -05:00
|
|
|
|FFF0 .RESET .FRAME .ERROR ( vectors )
|
2021-02-28 23:52:41 -05:00
|
|
|
|FFF8 [ 13fd 1ef3 1bf2 ] ( palette )
|