prog8/examples/test.p8

29 lines
482 B
Plaintext
Raw Normal View History

%import textio
%option no_sysinit
%zeropage basicsafe
2024-10-18 22:22:34 +02:00
main {
sub start() {
defer initial()
if allocate() {
txt.print("1")
defer deallocate()
txt.print("2")
return
}
txt.print("3")
}
sub allocate() -> bool {
txt.print("allocate\n")
return true
}
sub initial() {
txt.print("initial\n")
}
sub deallocate() {
txt.print("deallocate\n")
2024-11-08 19:43:59 +01:00
}
}