When entering at boot a homebrewed ROM. Does C register contains the Primairy and Secundairy slot?

Door Wlcracks

Champion (421)

afbeelding van Wlcracks

25-02-2020, 14:45

I noticed #ffff does not (always) contains the subslot of the homebrew rom in a slotexpander when entering from the bios at startup.
Looks like the C register contains the rdslt and wrslt notation of the rom though?
I tried a lot of different systems in openMSX but they all had C register containing the location.
Looks a RST#30 is beeing performed by the bios. But due to the lot of stack and exx commands i could not find any proof of this.
Can anyone comment this?

Aangemeld of registreer om reacties te plaatsen

Van spacemoai1973

Master (165)

afbeelding van spacemoai1973

25-02-2020, 19:48

You can't trust any values in registers when your ROM starts. If you want to know what (sub)slot you are in, you should use the WHEREAMI routine that's in the MSX Technical Databook appendices.

Van sd_snatcher

Prophet (3296)

afbeelding van sd_snatcher

25-02-2020, 19:49

The correct procedure is to analyse EXPTBL to check if the slot is expanded, and only then get the respective subslot register value from SLTTBL.

Van Wlcracks

Champion (421)

afbeelding van Wlcracks

25-02-2020, 21:57

ok thanks

Van gdx

Prophet (3567)

afbeelding van gdx

26-02-2020, 02:18

Van Wlcracks

Champion (421)

afbeelding van Wlcracks

26-02-2020, 16:11

Thanks all.