mirror of
https://github.com/KarolS/millfork.git
synced 2024-12-27 19:30:04 +00:00
63ff28e94e
* non-asm macros can now take `const` and `call` parameters * register parameters to asm functions and macros can be given names if annotated explicitly
21 lines
456 B
Plaintext
21 lines
456 B
Plaintext
// Routines from Commodore 128 KERNAL ROM
|
|
|
|
#if not(CBM_128)
|
|
#warn c128_kernal module should be only used on C128-compatible targets
|
|
#endif
|
|
|
|
// CHROUT. Write byte to default output. (If not screen, must call OPEN and CHKOUT beforehands.)
|
|
// Input: A = Byte to write.
|
|
asm void chrout(byte register(a) char) @$FFD2 extern
|
|
|
|
asm void putchar(byte register(a) char) {
|
|
JSR chrout
|
|
LDA #0
|
|
STA $F4
|
|
? RTS
|
|
}
|
|
|
|
inline void new_line() {
|
|
putchar(13)
|
|
}
|