[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help with IIGS Slot Register $C02D
Antoine,
I'll digest and try the routine you posted and will let you know if it works
to enable the SCC internal printer firmware when 'Your Card' is the initial
cold-boot setting and the $C02D slot register is subsequently changed to the
internal printer firmware from the initial 'Your Card' setting.
FWIW, tickling $CFFF within the change routine (my idea) didn't help.
Thanks.
Hugh Hood
in article
7765b1bd-b78a-46f2-9a34-55a1b624859e@u10g2000yqk.googlegroups.com, Toinet at
antoine.vignau@laposte.net wrote on 11/3/10 3:28 PM:
> There may be other softswitches to use...
>
> SETSLOTCXROM EQU $C006
> SETINTCXROM EQU $C007
> RDCXROM EQU $C015
>
> *
> * Since we'll make a call to sethooks and doffsvk, we gotta
> * make sure that the all the $CX00 rom space is banked in.
> * We also must restore it when we're done.
> *
> entry LDA |RDCXROM
> PHA
> STA |SETINTCXROM
>
> *
> do your stuff
> *
>
> exit PLA
> BMI exit2
> STA |SETSLOTCXROM
> exit2 EQU *
>
> *
> *
> *
>
> SETSLOTCXROM EQUDS.B 1 ;use ROMS on cards
> SETINTCXROM EQUDS.B 1 ;use internal ROM
> RDCXROM EQUDS.B 1 ;Bit 7=1 if using int rom
>
> Good luck,
> antoine