1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-12-25 06:29:17 +00:00
millfork/examples/crossplatform/echo.mfk

23 lines
400 B
Plaintext
Raw Normal View History

2018-12-19 21:32:55 +00:00
#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
2018-12-19 21:32:55 +00:00
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)
}
}