mirror of
https://github.com/irmen/prog8.git
synced 2024-08-19 14:29:17 +00:00
20 lines
363 B
Lua
20 lines
363 B
Lua
%import c64utils
|
|
%zeropage basicsafe
|
|
|
|
~ main {
|
|
|
|
; @todo see problem in looplabelproblem.p8
|
|
|
|
; @todo when a for loop is executed multiple times, is the loop var correct? (via goto start)
|
|
|
|
sub start() {
|
|
|
|
waitjoy:
|
|
ubyte key=c64.GETIN()
|
|
if_z goto waitjoy
|
|
c64scr.print_ub(key)
|
|
c64.CHROUT('\n')
|
|
goto waitjoy
|
|
}
|
|
}
|