2024-01-04 15:02:21 +01:00
|
|
|
%import textio
|
2024-01-05 20:46:26 +01:00
|
|
|
%import string
|
2023-12-31 01:02:33 +01:00
|
|
|
%zeropage basicsafe
|
2024-01-04 00:30:20 +01:00
|
|
|
%option no_sysinit
|
2023-12-31 01:02:33 +01:00
|
|
|
|
2023-10-15 22:44:34 +02:00
|
|
|
main {
|
2023-12-30 04:34:07 +01:00
|
|
|
sub start() {
|
2024-01-06 21:47:59 +01:00
|
|
|
uword @shared uw = $3f2f
|
2024-01-04 20:44:46 +01:00
|
|
|
|
2024-01-06 21:47:59 +01:00
|
|
|
if uw & $0800
|
|
|
|
txt.print("ok1\n")
|
|
|
|
|
|
|
|
if uw & 8
|
|
|
|
txt.print("ok2\n")
|
|
|
|
|
|
|
|
if uw & $0800 ==0
|
|
|
|
txt.print("fail1\n")
|
|
|
|
|
|
|
|
if uw & $0800 !=0
|
|
|
|
txt.print("ok3\n")
|
|
|
|
|
|
|
|
if uw & 8 ==0
|
|
|
|
txt.print("fail2\n")
|
|
|
|
|
|
|
|
if uw & 8 !=0
|
|
|
|
txt.print("ok4\n")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if uw & $ff00 == $3f00
|
|
|
|
txt.print("ok5\n")
|
|
|
|
|
|
|
|
if uw & $ff00 != $3f00
|
|
|
|
txt.print("fail5\n")
|
|
|
|
|
|
|
|
if uw & $00ff == $002f
|
|
|
|
txt.print("ok6\n")
|
|
|
|
|
|
|
|
if uw & $00ff != $002f
|
|
|
|
txt.print("fail6\n")
|
2023-12-26 22:01:49 +01:00
|
|
|
}
|
2023-12-19 22:59:01 +01:00
|
|
|
}
|