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 {
|
2023-07-08 20:42:11 +00:00
|
|
|
sub set_color(ubyte dummy, uword arg) {
|
|
|
|
arg++
|
|
|
|
}
|
|
|
|
|
2023-06-27 16:49:49 +00:00
|
|
|
sub start() {
|
2023-07-08 20:42:11 +00:00
|
|
|
ubyte intens
|
|
|
|
set_color(0, (intens >> 1) * $111)
|
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()
|
|
|
|
word intensityw = 2555
|
|
|
|
txt.print_uw0(12345)
|
|
|
|
txt.nl()
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|