2023-10-17 00:34:56 +00:00
|
|
|
%import textio
|
2023-10-27 20:36:43 +00:00
|
|
|
%import math
|
2023-10-15 20:44:34 +00:00
|
|
|
%option no_sysinit
|
|
|
|
%zeropage basicsafe
|
2023-10-14 05:18:37 +00:00
|
|
|
|
2023-10-15 20:44:34 +00:00
|
|
|
main {
|
|
|
|
sub start() {
|
2023-10-27 20:36:43 +00:00
|
|
|
ubyte ub1 = 12
|
|
|
|
ubyte ub2 = 233
|
|
|
|
|
|
|
|
txt.print_ub(math.diff(ub1, ub2))
|
|
|
|
txt.nl()
|
|
|
|
ub1 = 200
|
|
|
|
ub2 = 90
|
|
|
|
txt.print_ub(math.diff(ub1, ub2))
|
|
|
|
txt.nl()
|
|
|
|
ub1 = 144
|
|
|
|
ub2 = 144
|
|
|
|
txt.print_ub(math.diff(ub1, ub2))
|
|
|
|
txt.nl()
|
|
|
|
txt.nl()
|
|
|
|
|
|
|
|
|
|
|
|
uword uw1 = 1200
|
|
|
|
uword uw2 = 40000
|
|
|
|
txt.print_uw(math.diffw(uw1, uw2))
|
|
|
|
txt.nl()
|
|
|
|
uw1 = 40000
|
|
|
|
uw2 = 21000
|
|
|
|
txt.print_uw(math.diffw(uw1, uw2))
|
2023-10-17 00:34:56 +00:00
|
|
|
txt.nl()
|
2023-10-27 20:36:43 +00:00
|
|
|
uw1 = 30000
|
|
|
|
uw2 = 30000
|
|
|
|
txt.print_uw(math.diffw(uw1, uw2))
|
2023-10-17 20:51:49 +00:00
|
|
|
txt.nl()
|
2023-10-04 20:32:13 +00:00
|
|
|
}
|
2023-10-03 20:54:28 +00:00
|
|
|
}
|