[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help with IIGS Slot Register $C02D
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