prog8/examples/test.p8

29 lines
472 B
Plaintext
Raw Normal View History

2023-05-15 21:01:43 +00:00
%import textio
%zeropage basicsafe
main {
2023-05-07 21:49:02 +00:00
2023-05-07 23:03:54 +00:00
sub start() {
2023-05-15 21:01:43 +00:00
ubyte x8
ubyte x4
ubyte x3
ubyte result = x3 % x8
txt.print_ub(result)
txt.nl()
result = x3/x8
txt.print_ub(result)
txt.nl()
2023-05-14 14:48:48 +00:00
2023-05-15 21:01:43 +00:00
uword y8
uword y4
uword y3
uword wresult = y3 % y8
txt.print_uw(wresult)
txt.nl()
wresult = y3 / y8
txt.print_uw(wresult)
txt.nl()
2023-03-18 23:24:05 +00:00
}
}