1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-12-28 11:31:58 +00:00
millfork/include/c128_kernal.mfk

21 lines
495 B
Plaintext
Raw Normal View History

2017-12-06 23:23:30 +00:00
// Routines from Commodore 128 KERNAL ROM
#if not(CBM_128)
#warn c128_kernal module should be only used on C128-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.
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 $F4
? RTS
}
2018-12-17 16:18:29 +00:00
inline void new_line() {
putchar(13)
}