prog8/examples/test.p8

19 lines
351 B
Plaintext
Raw Normal View History

%import textio
2023-11-28 21:50:30 +00:00
%import floats
%zeropage basicsafe
main {
sub start() {
2023-11-28 21:50:30 +00:00
poke($4000,123)
txt.print_ub(peek($4000))
txt.nl()
2023-11-28 21:50:30 +00:00
pokew($4002, 55555)
txt.print_uw(peekw($4002))
txt.nl()
2023-11-28 21:50:30 +00:00
float value=123.45678
pokef($4004, value)
floats.print_f(peekf($4004))
txt.nl()
2023-11-14 17:23:37 +00:00
}
}