Megarom mapper not working

Door Metalion

Paladin (1008)

afbeelding van Metalion

31-12-2018, 10:54

Hello,

I'm working on a megarom project. Since the beginning, I've been working with asMSX, but it is unstable and generates some bugs. Yesterday, it repeatedly crashed while compiling my code so I decided to throw the towel and change cross-compiler. I've moved to Sjasm. It took me some hours to change my sources to accomodate the Sjasm syntax, but it is now done.

Since asMSX was very MSX friendly, it included macros dedicated to megarom handling and generation. I had to rewrite those. But the page switching does not work properly ... and it's strange.

Because I do a first switch on bank 2 that DOES work :

ld      a,1
ld      (6800h),a

It"s the second on bank 4 that does not :

ld      a,3
ld      (7800h),a

Is there something I'm missing ?
Is there a specific order of the pages in the rom file for example ?

Thanks

PS 1 : the tests are done on BlueMSX 2.8.2
PS 2 : wouldn't it have to do with correctly enabling the ROM in page 2 ? I did add though a portion of code enabling it ...

Aangemeld of registreer om reacties te plaatsen

Van Metalion

Paladin (1008)

afbeelding van Metalion

31-12-2018, 12:10

Metalion wrote:

PS 2 : wouldn't it have to do with correctly enabling the ROM in page 2 ? I did add though a portion of code enabling it ...

Yes, that was the problem. The code was somehow misplaced, and didn't work properly.
Problem solved.