prog8/examples/test.p8

35 lines
709 B
Plaintext
Raw Normal View History

%import textio
%import string
%zeropage basicsafe
2020-12-08 00:02:38 +00:00
%option no_sysinit
main {
2021-01-13 21:32:17 +00:00
sub start() {
2021-01-14 21:51:09 +00:00
str filename="?"*40
txt.print("> ")
ubyte il = txt.input_chars(filename)
txt.print_ub(il)
txt.nl()
txt.print_ubhex(filename[0],1)
txt.print_ubhex(filename[1],1)
txt.print_ubhex(filename[2],1)
txt.nl()
txt.print(filename)
txt.nl()
txt.print("> ")
il = txt.input_chars(filename)
txt.print_ub(il)
txt.nl()
txt.print_ubhex(filename[0],1)
txt.print_ubhex(filename[1],1)
txt.print_ubhex(filename[2],1)
txt.nl()
txt.print(filename)
txt.nl()
2021-01-10 14:15:00 +00:00
}
2020-08-27 17:47:50 +00:00
}