1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-11-01 05:05:32 +00:00
millfork/include/pc88.mfk

20 lines
350 B
Plaintext
Raw Normal View History

2018-12-19 23:47:42 +00:00
#pragma zilog_syntax
2018-12-17 16:18:29 +00:00
#if not(NEC_PC_88)
#warn pc88 module should be only used on PC-88 targets
#endif
asm void putchar(byte register(a) char) @$3e0d extern
2018-12-17 16:18:29 +00:00
inline void new_line() {
putchar(13)
putchar(10)
}
2018-12-19 23:47:42 +00:00
asm pointer readline() {
call $5f92
// TODO: if carry set, then STOP was pressed; should we care?
? inc hl
? ret
}