1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-12-24 15:29:23 +00:00
millfork/examples/crossplatform/echo.mfk
2018-12-19 22:32:55 +01:00

23 lines
400 B
Plaintext

#if CBM_64
import c64_basic
#elseif CBM_264
import c264_basic
#elseif ZX_SPECTRUM
// no imports needed
#else
#error Unsupported platform
#endif
import stdio
void main() {
while true {
readline()
// empty line is read as a single space
if readline_out[0] == 32 && readline_out[1] == 0 { return }
putstrz(readline_out)
putchar(13)
}
}