mirror of
https://github.com/irmen/prog8.git
synced 2024-11-25 19:31:36 +00:00
27 lines
438 B
Lua
27 lines
438 B
Lua
%import textio
|
|
%option no_sysinit
|
|
%zeropage basicsafe
|
|
|
|
main {
|
|
|
|
sub start() {
|
|
txt.print("sdfdsf")
|
|
}
|
|
}
|
|
|
|
txt {
|
|
; merges this block into the txt block coming from the textio library
|
|
%option merge
|
|
|
|
sub print(str text) {
|
|
repeat 4 chrout('@')
|
|
repeat {
|
|
cx16.r0L = @(text)
|
|
if_z break
|
|
chrout(cx16.r0L)
|
|
text++
|
|
}
|
|
repeat 4 chrout('@')
|
|
}
|
|
}
|