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
24 lines
584 B
ArmAsm
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
|