1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-06-01 09:41:36 +00:00
millfork/include/c264_kernal.mfk

20 lines
495 B
Plaintext
Raw Normal View History

2017-12-06 23:23:30 +00:00
// 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
2017-12-06 23:23:30 +00:00
// CHROUT. Write byte to default output. (If not screen, must call OPEN and CHKOUT beforehands.)
// Input: A = Byte to write.
2021-03-14 23:44:14 +00:00
asm void chrout(byte register(a) char) @$FFD2 !preserves_a !preserves_x !preserves_y extern
asm void putchar(byte register(a) char) {
JSR chrout
LDA #0
STA $CB
? RTS
}
2018-12-17 16:18:29 +00:00
inline void new_line() {
putchar(13)
}