mirror of
https://github.com/KarolS/millfork.git
synced 2024-12-26 12:29:26 +00:00
20 lines
495 B
Plaintext
20 lines
495 B
Plaintext
// Routines from C16 and Plus/4 KERNAL ROM
|
|
#if not(CBM_264)
|
|
#warn c264_kernal module should be only used on C264-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) !preserves_a !preserves_x !preserves_y @$FFD2 extern
|
|
|
|
asm void putchar(byte register(a) char) {
|
|
JSR chrout
|
|
LDA #0
|
|
STA $CB
|
|
? RTS
|
|
}
|
|
|
|
inline void new_line() {
|
|
putchar(13)
|
|
}
|