mirror of
https://github.com/KarolS/millfork.git
synced 2024-08-28 05:29:06 +00:00
23 lines
333 B
Plaintext
23 lines
333 B
Plaintext
|
|
||
|
#if not(MSX)
|
||
|
#warn msx module should be only used on MSX-compatible targets
|
||
|
#endif
|
||
|
|
||
|
#pragma zilog_syntax
|
||
|
|
||
|
asm void putchar(byte a) @$00a2 extern
|
||
|
|
||
|
inline void new_line() {
|
||
|
putchar(13)
|
||
|
putchar(10)
|
||
|
}
|
||
|
|
||
|
const pointer readline_out = $F55E
|
||
|
|
||
|
asm pointer readline() {
|
||
|
? ld hl, $F55D
|
||
|
call $00b1
|
||
|
? ld hl, $F55E
|
||
|
? ret
|
||
|
}
|