2023-03-22 21:00:21 +00:00
|
|
|
%import textio
|
2023-04-29 15:52:15 +00:00
|
|
|
%import floats
|
2023-04-29 15:14:50 +00:00
|
|
|
%option no_sysinit
|
|
|
|
%zeropage basicsafe
|
2023-04-10 14:59:08 +00:00
|
|
|
|
2022-10-22 11:33:35 +00:00
|
|
|
main {
|
2023-04-09 19:08:35 +00:00
|
|
|
sub start() {
|
2023-04-29 12:22:04 +00:00
|
|
|
ubyte v1 = 11
|
|
|
|
ubyte v2 = 88
|
|
|
|
byte v1s = 22
|
|
|
|
byte v2s = -99
|
|
|
|
|
|
|
|
uword w1 = 1111
|
|
|
|
uword w2 = 8888
|
|
|
|
word w1s = 2222
|
|
|
|
word w2s = -9999
|
2023-04-29 15:14:50 +00:00
|
|
|
|
2023-04-29 15:52:15 +00:00
|
|
|
float f1 = 1111.1
|
|
|
|
float f2 = -999.9
|
|
|
|
|
|
|
|
floats.print_f(floats.minf(f1, f2))
|
|
|
|
txt.spc()
|
|
|
|
floats.print_f(floats.maxf(f1, f2))
|
|
|
|
txt.nl()
|
|
|
|
|
2023-04-29 12:22:04 +00:00
|
|
|
txt.print_uw(min(v1, v2))
|
|
|
|
txt.spc()
|
|
|
|
txt.print_w(min(v1s, v2s))
|
|
|
|
txt.spc()
|
|
|
|
txt.print_uw(max(v1, v2))
|
|
|
|
txt.spc()
|
|
|
|
txt.print_w(max(v1s, v2s))
|
|
|
|
txt.nl()
|
2023-04-29 15:14:50 +00:00
|
|
|
|
2023-04-29 12:22:04 +00:00
|
|
|
txt.print_uw(min(w1, w2))
|
|
|
|
txt.spc()
|
|
|
|
txt.print_w(min(w1s, w2s))
|
|
|
|
txt.spc()
|
|
|
|
txt.print_uw(max(w1, w2))
|
|
|
|
txt.spc()
|
|
|
|
txt.print_w(max(w1s, w2s))
|
|
|
|
txt.nl()
|
2023-03-18 23:24:05 +00:00
|
|
|
}
|
2022-12-04 15:02:58 +00:00
|
|
|
}
|
2023-04-29 15:14:50 +00:00
|
|
|
|