mirror of
https://github.com/KarolS/millfork.git
synced 2024-09-13 15:56:42 +00:00
22 lines
369 B
Plaintext
22 lines
369 B
Plaintext
#pragma zilog_syntax
|
|
|
|
#if not(NEC_PC_88)
|
|
#warn pc88 module should be only used on PC-88 targets
|
|
#endif
|
|
|
|
asm void putchar(byte a) @$3e0d extern
|
|
|
|
asm byte readkey() @$3583 extern
|
|
|
|
inline void new_line() {
|
|
putchar(13)
|
|
putchar(10)
|
|
}
|
|
|
|
asm pointer readline() {
|
|
call $5f92
|
|
// TODO: if carry set, then STOP was pressed; should we care?
|
|
? inc hl
|
|
? ret
|
|
}
|