1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-06-09 16:29:34 +00:00
millfork/include/vic20_kernal.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

21 lines
449 B
Plaintext

// Routines from C16 and Plus/4 KERNAL ROM
#if not(CBM_VIC)
#warn vic20_kernal module should be only used on VIC-20 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 $D4
? RTS
}
inline void new_line() {
putchar(13)
}