mirror of
https://github.com/irmen/prog8.git
synced 2024-09-10 09:54:32 +00:00
27 lines
553 B
Lua
27 lines
553 B
Lua
%import textio
|
|
%zeropage basicsafe
|
|
%option no_sysinit
|
|
|
|
main {
|
|
sub start() {
|
|
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()
|
|
|
|
txt.print_uw0(12345)
|
|
txt.nl()
|
|
word intensityw = -12345
|
|
txt.print_w(intensityw)
|
|
txt.nl()
|
|
txt.print_w(abs(intensityw))
|
|
intensityw = abs(intensityw)
|
|
txt.nl()
|
|
txt.print_w(intensityw)
|
|
}
|
|
}
|