prog8/examples/test.p8

35 lines
463 B
Plaintext
Raw Normal View History

2024-10-27 21:50:48 +01:00
%import textio
%option no_sysinit
2024-10-27 21:50:48 +01:00
%zeropage basicsafe
2024-10-18 22:22:34 +02:00
main {
sub start() {
blah.test()
}
}
txt {
; merges this block into the txt block coming from the textio library
%option merge
sub schrijf(str arg) {
print(arg)
}
}
blah {
; merges this block into the other 'blah' one
%option merge
sub test() {
printit("test merge")
}
}
blah {
sub printit(str arg) {
txt.schrijf(arg)
}
}