2024-01-04 14:02:21 +00:00
|
|
|
%import textio
|
2023-12-31 00:02:33 +00:00
|
|
|
%zeropage basicsafe
|
2024-01-03 23:30:20 +00:00
|
|
|
%option no_sysinit
|
2023-12-31 00:02:33 +00:00
|
|
|
|
2023-10-15 20:44:34 +00:00
|
|
|
main {
|
2023-12-30 03:34:07 +00:00
|
|
|
sub start() {
|
2024-01-04 14:02:21 +00:00
|
|
|
bool @shared a1 = true
|
|
|
|
bool @shared a2 = false
|
2024-01-01 13:55:29 +00:00
|
|
|
|
2024-01-04 14:02:21 +00:00
|
|
|
txt.print_ub(not a1) ; a1 = a1==0 "0"
|
|
|
|
txt.nl()
|
|
|
|
txt.print_ub(not not a1) ; a1 = a1 "1"
|
|
|
|
txt.nl()
|
|
|
|
txt.print_ub(not not not a1) ; a1 = a1==0 "0"
|
|
|
|
txt.nl()
|
|
|
|
txt.print_ub(not a1 or not a2) ; a1 = a1==0 or a2==0 "1"
|
|
|
|
txt.nl()
|
|
|
|
txt.print_ub(not a1 and not a2) ; a1 = a1==0 and a2==0 "0"
|
|
|
|
txt.nl()
|
2023-12-26 21:01:49 +00:00
|
|
|
}
|
2023-12-19 21:59:01 +00:00
|
|
|
}
|