prog8/examples/test.p8
2023-05-15 23:01:43 +02:00

29 lines
472 B
Lua

%import textio
%zeropage basicsafe
main {
sub start() {
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()
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()
}
}