2023-11-14 22:47:31 +01:00
|
|
|
%import textio
|
2023-11-21 22:33:37 +01:00
|
|
|
%import syslib
|
2023-11-20 23:19:08 +01:00
|
|
|
%zeropage basicsafe
|
2023-10-15 22:44:34 +02:00
|
|
|
main {
|
2023-11-12 20:40:17 +01:00
|
|
|
sub start() {
|
2023-11-24 00:50:36 +01:00
|
|
|
ubyte xx = 1
|
|
|
|
uword ww=1
|
2023-11-22 01:42:41 +01:00
|
|
|
|
|
|
|
|
2023-11-24 00:50:36 +01:00
|
|
|
xx |= %0001000
|
|
|
|
txt.print_ubbin(xx, true)
|
|
|
|
txt.nl()
|
|
|
|
xx &= %11110111
|
|
|
|
txt.print_ubbin(xx, true)
|
|
|
|
txt.nl()
|
2023-11-21 22:33:37 +01:00
|
|
|
|
|
|
|
|
2023-11-24 00:50:36 +01:00
|
|
|
ww |= %0001000
|
|
|
|
txt.print_uwbin(ww, true)
|
|
|
|
txt.nl()
|
|
|
|
ww &= %11110111
|
|
|
|
txt.print_uwbin(ww, true)
|
|
|
|
txt.nl()
|
2023-11-14 18:23:37 +01:00
|
|
|
}
|
2023-10-03 22:54:28 +02:00
|
|
|
}
|