mirror of
https://github.com/irmen/prog8.git
synced 2024-11-26 11:49:22 +00:00
26 lines
425 B
Lua
26 lines
425 B
Lua
%import textio
|
|
%import syslib
|
|
%zeropage basicsafe
|
|
main {
|
|
sub start() {
|
|
ubyte xx = 1
|
|
uword ww=1
|
|
|
|
|
|
xx |= %0001000
|
|
txt.print_ubbin(xx, true)
|
|
txt.nl()
|
|
xx &= %11110111
|
|
txt.print_ubbin(xx, true)
|
|
txt.nl()
|
|
|
|
|
|
ww |= %0001000
|
|
txt.print_uwbin(ww, true)
|
|
txt.nl()
|
|
ww &= %11110111
|
|
txt.print_uwbin(ww, true)
|
|
txt.nl()
|
|
}
|
|
}
|