← EGFX function index

EGFX · FUNCTION 33ALPHA · USE AT YOUR OWN RISK

RESOURCE_ROM

Use a companion ROM.

Registers a read-only EGSP sprite source.

Parameters

NameOrderDescription
BANK8Companion ROM bank.
PAGE9EGSP header page.

BASIC example

Tested listing: companion-demo.bas.

10 MODE 1:HIMEM=&2400:PROCeginit:PROCegcompanion(5,&81,255)
20 REPEAT:PROCegbegin
30 PROCegsprite(80,80,1):PROCegsprite(160,112,3):PROCegxor(224,144,5)
40 PROCegtext("COMPANION ROM SPRITES",8,8)
50 PROCegpresent:UNTIL INKEY(0)=81
60 END

Assembly example

        JSR init_egfx
        JSR begin_frame
        LDA #33 : JSR eg_call
        JSR present_frame
        RTS
Captured EGFX output for function 33
Captured EGFX companion-ROM output.

← Function index