2024-03-12 22:39:54 +00:00
|
|
|
%import textio
|
|
|
|
%zeropage basicsafe
|
|
|
|
%option no_sysinit
|
2023-12-31 00:02:33 +00:00
|
|
|
|
2024-01-07 17:48:18 +00:00
|
|
|
main {
|
2024-03-02 13:26:02 +00:00
|
|
|
sub start() {
|
2024-03-14 21:13:41 +00:00
|
|
|
; TODO func is not called 4 times!!!!! FIX!!!
|
|
|
|
if (not func(1))
|
|
|
|
or (not func(1))
|
|
|
|
or (not func(1))
|
|
|
|
or (not func(1)) {
|
|
|
|
txt.print("done1\n")
|
|
|
|
}
|
2024-03-13 19:23:42 +00:00
|
|
|
|
2024-03-14 21:13:41 +00:00
|
|
|
; TODO func is not called 4 times!!!!! FIX!!!
|
|
|
|
if func(2)
|
|
|
|
and func(2)
|
|
|
|
and func(2)
|
|
|
|
and func(2) {
|
|
|
|
txt.print("done2\n")
|
|
|
|
}
|
|
|
|
|
|
|
|
; TODO func is not called 4 times!!!!! FIX!!!
|
|
|
|
if func(3) and func(3) and func(3) and func(3) {
|
|
|
|
txt.print("done3\n")
|
2024-03-13 21:33:25 +00:00
|
|
|
}
|
2024-03-01 18:45:16 +00:00
|
|
|
}
|
2024-03-14 21:13:41 +00:00
|
|
|
|
|
|
|
sub func(ubyte x) -> bool {
|
|
|
|
txt.print("func ")
|
|
|
|
txt.print_ub(x)
|
|
|
|
txt.nl()
|
|
|
|
return true
|
|
|
|
}
|
2024-03-01 18:45:16 +00:00
|
|
|
}
|