1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-12-27 19:30:04 +00:00
millfork/include/msx.mfk
Karol Stasiak 63ff28e94e Changes to macros and parameter list syntax:
* non-asm macros can now take `const` and `call` parameters
* register parameters to asm functions and macros can be given names if annotated explicitly
2020-03-30 19:23:48 +02:00

23 lines
348 B
Plaintext

#if not(MSX)
#warn msx module should be only used on MSX-compatible targets
#endif
#pragma zilog_syntax
asm void putchar(byte register(a) char) @$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
}