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 22:45:46 +00:00
|
|
|
; is optimizing this useful? : not a1 or not a2 -> not(a1 and a2) likewise for and.
|
|
|
|
bool @shared a1 = true
|
|
|
|
bool @shared a2
|
|
|
|
bool @shared a4
|
2024-01-04 19:44:46 +00:00
|
|
|
|
2024-01-04 22:45:46 +00:00
|
|
|
if a1==0 and a2==0
|
|
|
|
cx16.r0++
|
|
|
|
|
|
|
|
if (a1!=0 or a2!=0)==0
|
|
|
|
cx16.r0++
|
|
|
|
|
|
|
|
if a1==0 or a2==0
|
|
|
|
cx16.r0++
|
|
|
|
|
|
|
|
if (a1!=0 and a2!=0)==0
|
|
|
|
cx16.r0++
|
|
|
|
|
|
|
|
|
|
|
|
; if not a1 or not a2
|
|
|
|
; cx16.r0++
|
|
|
|
; if not (a1 and a2)
|
|
|
|
; cx16.r0++
|
|
|
|
; if not a1 and not a2
|
|
|
|
; cx16.r0++
|
|
|
|
; if not (a1 or a2)
|
|
|
|
; cx16.r0++
|
2023-12-26 21:01:49 +00:00
|
|
|
}
|
2023-12-19 21:59:01 +00:00
|
|
|
}
|