2023-07-08 09:37:29 +00:00
|
|
|
%import textio
|
2023-07-07 19:17:28 +00:00
|
|
|
%zeropage basicsafe
|
2023-07-08 09:37:29 +00:00
|
|
|
%option no_sysinit
|
2023-07-07 19:17:28 +00:00
|
|
|
|
2023-06-27 16:49:49 +00:00
|
|
|
main {
|
|
|
|
sub start() {
|
2023-07-08 09:37:29 +00:00
|
|
|
byte intensity = -25
|
|
|
|
txt.print_b(intensity)
|
|
|
|
txt.nl()
|
|
|
|
txt.print_b(abs(intensity))
|
|
|
|
intensity = abs(intensity)
|
|
|
|
txt.nl()
|
|
|
|
txt.print_b(intensity)
|
|
|
|
txt.nl()
|
2023-07-08 20:57:16 +00:00
|
|
|
|
2023-07-08 09:37:29 +00:00
|
|
|
txt.print_uw0(12345)
|
|
|
|
txt.nl()
|
2023-07-08 20:57:16 +00:00
|
|
|
word intensityw = -12345
|
2023-07-08 09:37:29 +00:00
|
|
|
txt.print_w(intensityw)
|
|
|
|
txt.nl()
|
|
|
|
txt.print_w(abs(intensityw))
|
|
|
|
intensityw = abs(intensityw)
|
|
|
|
txt.nl()
|
|
|
|
txt.print_w(intensityw)
|
2023-06-26 23:59:22 +00:00
|
|
|
}
|
|
|
|
}
|