Files
Asbjørn Djupdal fc32343080 CBM GEOS printer support
This provides support for creating printer drivers for C64/C128 GEOS.
GEOSLib is also updated with the necessary support for printing from GEOS applications.
A skeleton sample is provided.
A new target is created: geos-c-prn
2026-10-10 16:12:58 +02:00

24 lines
584 B
ArmAsm

;
; 2026 cc65 project (added for PRINTER driver support, see grc65)
;
; void __fastcall__ PrintBuffer (char *printData, char *workBuf, char *colorData);
.export _PrintBuffer
.import popax
.include "printdrv.inc"
.include "geossym.inc"
_PrintBuffer:
sta r2L ; colorData -- passed in A/X (fastcall, pointer)
stx r2H
jsr popax ; workBuf
sta r1L
stx r1H
jsr popax ; printData
sta r0L
stx r0H
jsr PrintBuffer
rts