Megarom mapper not working

By Metalion

Paladin (1013)

Metalion's picture

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 ...

Login or register to post comments

By Metalion

Paladin (1013)

Metalion's picture

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.