(base64) Added usage
This commit is contained in:
parent
35d9b5a357
commit
ea9e70b592
|
@ -1,6 +1,6 @@
|
|||
( uxncli b64enc.rom file.bin )
|
||||
|
||||
|10 @Console &vector $2 &read $1 &pad $5 &write $1 &error $1
|
||||
|10 @Console &vector $2 &read $1 &pad $4 &type $1 &write $1 &error $1
|
||||
|a0 @File &vector $2 &success $2 &stat $2 &delete $1 &append $1 &name $2 &length $2 &read $2 &write $2
|
||||
|
||||
|0000
|
||||
|
@ -11,6 +11,7 @@
|
|||
|0100
|
||||
|
||||
@on-reset ( -> )
|
||||
.Console/type DEI ?{ ;usage <print-err>/ #010f DEO }
|
||||
;await-src .Console/vector DEO2
|
||||
BRK
|
||||
|
||||
|
@ -30,7 +31,7 @@
|
|||
.queue LDZ #00 EQU ?&>no-pad
|
||||
#00 b64enc &>no-pad
|
||||
#0a18 DEO
|
||||
#010f DEO
|
||||
#800f DEO
|
||||
BRK
|
||||
|
||||
(
|
||||
|
@ -74,3 +75,10 @@
|
|||
scap/ ROT #00 SWP2 STA2
|
||||
JMP2r
|
||||
|
||||
@<print-err> ( str* -- )
|
||||
LDAk #19 DEO
|
||||
INC2 & LDAk ?<print-err>
|
||||
POP2 JMP2r
|
||||
|
||||
@usage "usage: 20 "b64enc.rom 20 "data 0a $1
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@ then
|
|||
cp $DST $CPY
|
||||
fi
|
||||
|
||||
$EMU $DST
|
||||
echo -n "source: "
|
||||
cat test.txt
|
||||
echo ""
|
||||
|
|
Loading…
Reference in New Issue