mirror of
https://github.com/irmen/prog8.git
synced 2024-07-26 20:29:55 +00:00
29 lines
472 B
Lua
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()
|
|
}
|
|
}
|
|
|