2023-09-05 22:04:25 -04:00
|
|
|
( uxncli b64enc.rom data )
|
2023-05-24 12:46:15 -04:00
|
|
|
|
2023-09-05 18:51:10 -04:00
|
|
|
|10 @Console &vector $2 &read $1 &pad $4 &type $1 &write $1 &error $1
|
2024-06-05 14:39:58 -04:00
|
|
|
|000
|
2023-05-24 12:46:15 -04:00
|
|
|
|
2023-06-20 00:26:57 -04:00
|
|
|
@queue $1
|
|
|
|
|
2024-06-05 14:39:58 -04:00
|
|
|
|100
|
2023-06-20 00:26:57 -04:00
|
|
|
|
|
|
|
@on-reset ( -> )
|
2023-09-05 19:38:16 -04:00
|
|
|
;on-console .Console/vector DEO2
|
2023-06-20 00:26:57 -04:00
|
|
|
BRK
|
2023-05-24 12:46:15 -04:00
|
|
|
|
2023-09-05 19:38:16 -04:00
|
|
|
@on-console ( -> )
|
2024-06-05 14:39:58 -04:00
|
|
|
.Console/type DEI #04 EQU ?{ .Console/read DEI <b64enc>
|
|
|
|
BRK }
|
|
|
|
.queue LDZ EQU ?{ #00 <b64enc> }
|
|
|
|
#800f DEO
|
2023-09-05 18:44:49 -04:00
|
|
|
BRK
|
2023-05-24 12:46:15 -04:00
|
|
|
|
2023-05-24 12:59:55 -04:00
|
|
|
(
|
|
|
|
@|core )
|
2023-05-24 12:46:15 -04:00
|
|
|
|
2023-09-05 19:38:16 -04:00
|
|
|
@<b64enc> ( byte -- )
|
2023-05-24 13:06:34 -04:00
|
|
|
,&buf STR
|
2023-05-24 12:46:15 -04:00
|
|
|
#0800
|
2024-06-05 14:39:58 -04:00
|
|
|
&>l ( -- )
|
2023-09-05 22:04:25 -04:00
|
|
|
[ LIT &buf $1 ] OVR #07 SWP SUB SFT #01 AND
|
2024-06-05 14:39:58 -04:00
|
|
|
( ) [ LIT &inc $1 ] INCk #06 DIVk MUL SUB ,&inc STR
|
|
|
|
( bit id -- ) SWP .queue LDZ ORA DUP ADD .queue STZ
|
2023-09-05 18:44:49 -04:00
|
|
|
#05 NEQ ?{
|
2024-06-05 14:39:58 -04:00
|
|
|
[ LIT2 00 -queue ] DUP2 LDZ #01 SFT ;MIME ADD2 LDA #18 DEO
|
|
|
|
STZ }
|
|
|
|
INC GTHk ?&>l
|
2023-06-20 00:26:57 -04:00
|
|
|
POP2 JMP2r
|
2023-05-24 12:46:15 -04:00
|
|
|
|
2023-09-05 18:44:49 -04:00
|
|
|
@MIME [
|
2024-06-05 14:39:58 -04:00
|
|
|
"ABCDEFGHIJKLMNOP "QRSTUVWXYZabcdef
|
|
|
|
"ghijklmnopqrstuv "wxyz0123456789+/ ]
|
2023-05-24 12:46:15 -04:00
|
|
|
|