prog8/examples/test.p8

19 lines
280 B
Plaintext
Raw Normal View History

2020-08-27 18:47:22 +00:00
%import c64textio
2020-08-27 17:47:50 +00:00
%zeropage basicsafe
main {
sub start() {
2020-08-27 18:47:22 +00:00
ubyte b1 = 2
ubyte b2 = 13
ubyte b3 = 100
2020-08-27 17:47:50 +00:00
2020-08-27 18:47:22 +00:00
uword w1 = 2222
uword w2 = 11
uword w3 = 33
w1 %= (w2+w3)
txt.print_uw(w1)
2020-08-27 17:47:50 +00:00
c64.CHROUT('\n')
}
}