2018-12-19 21:32:55 +00:00
|
|
|
|
|
|
|
#if CBM_64
|
|
|
|
import c64_basic
|
|
|
|
#elseif CBM_264
|
|
|
|
import c264_basic
|
2018-12-30 18:10:57 +00:00
|
|
|
#elseif ZX_SPECTRUM || NEC_PC_88
|
2018-12-19 21:32:55 +00:00
|
|
|
// no imports needed
|
|
|
|
#else
|
|
|
|
#error Unsupported platform
|
|
|
|
#endif
|
|
|
|
|
2018-01-20 21:10:04 +00:00
|
|
|
import stdio
|
2018-12-19 21:32:55 +00:00
|
|
|
|
2018-01-20 21:10:04 +00:00
|
|
|
void main() {
|
2018-12-30 18:10:57 +00:00
|
|
|
pointer line
|
2018-01-20 21:10:04 +00:00
|
|
|
while true {
|
2018-12-30 18:10:57 +00:00
|
|
|
line = readline()
|
2020-04-08 09:11:25 +00:00
|
|
|
// empty line is read as a single space on C64
|
2018-12-30 18:10:57 +00:00
|
|
|
if line[0] == 32 && line[1] == 0 { return }
|
2020-04-08 09:11:25 +00:00
|
|
|
if line[0] == 0 { return }
|
2018-12-30 18:10:57 +00:00
|
|
|
putstrz(line)
|
|
|
|
new_line()
|
2018-01-20 21:10:04 +00:00
|
|
|
}
|
|
|
|
}
|