2024-11-12 00:11:19 +01:00
|
|
|
%import textio
|
2024-11-10 15:11:14 +01:00
|
|
|
%option no_sysinit
|
2024-11-10 23:44:10 +01:00
|
|
|
%zeropage basicsafe
|
2024-10-18 22:22:34 +02:00
|
|
|
|
2024-11-04 04:28:27 +01:00
|
|
|
main {
|
2024-11-12 00:11:19 +01:00
|
|
|
sub start() {
|
|
|
|
defer initial()
|
|
|
|
if allocate() {
|
|
|
|
txt.print("1")
|
|
|
|
defer deallocate()
|
|
|
|
txt.print("2")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
txt.print("3")
|
|
|
|
}
|
2024-11-11 20:48:25 +01:00
|
|
|
|
2024-11-12 00:11:19 +01:00
|
|
|
sub allocate() -> bool {
|
|
|
|
txt.print("allocate\n")
|
|
|
|
return true
|
|
|
|
}
|
2024-11-11 20:48:25 +01:00
|
|
|
|
2024-11-12 00:11:19 +01:00
|
|
|
sub initial() {
|
|
|
|
txt.print("initial\n")
|
|
|
|
}
|
|
|
|
sub deallocate() {
|
|
|
|
txt.print("deallocate\n")
|
2024-11-08 19:43:59 +01:00
|
|
|
}
|
2024-11-05 23:56:58 +01:00
|
|
|
}
|