2024-03-12 23:39:54 +01:00
|
|
|
%import textio
|
|
|
|
%zeropage basicsafe
|
|
|
|
%option no_sysinit
|
2023-12-31 01:02:33 +01:00
|
|
|
|
2024-01-07 18:48:18 +01:00
|
|
|
main {
|
2024-03-02 14:26:02 +01:00
|
|
|
sub start() {
|
2024-03-14 22:13:41 +01: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 20:23:42 +01:00
|
|
|
|
2024-03-14 22:13:41 +01: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 22:33:25 +01:00
|
|
|
}
|
2024-03-01 19:45:16 +01:00
|
|
|
}
|
2024-03-14 22:13:41 +01:00
|
|
|
|
|
|
|
sub func(ubyte x) -> bool {
|
|
|
|
txt.print("func ")
|
|
|
|
txt.print_ub(x)
|
|
|
|
txt.nl()
|
|
|
|
return true
|
|
|
|
}
|
2024-03-01 19:45:16 +01:00
|
|
|
}
|