Hi,
Mapmaker currently assumes it is running in Z80 (16bit / non-ADL mode) basic in a single 64KB segment.
Line 1760 loads tile data:
1760 OSCLI("LOAD " + D$ + "/" + F$ + ".rgb" + " " + STR$(MB%+graphics))
Line 50 sets the MB address to the start of the segment the basic interpreter is loaded at:
50 MB%=&40000 : REM MEMORY BANK &40000.
Running mapmaker in the latest BBC Basic V eZ80/ADL release, this causes tiles not displaying because they aren't loaded at the correct address; In ADL mode, the address of the 'graphics' variable is already a full 24bit address, not a relative address in a 16bit segment.
Changing line 50 to
50 IF HIMEM>&FFFF THEN MB%=0 ELSE MB%=&40000
Autodetects if mapmaker runs in ADL mode and allows users to run mapmaker in either ADL/non-ADL basic variants.
Best,
Jeroen
Hi,
Mapmaker currently assumes it is running in Z80 (16bit / non-ADL mode) basic in a single 64KB segment.
Line 1760 loads tile data:
Line 50 sets the MB address to the start of the segment the basic interpreter is loaded at:
Running mapmaker in the latest BBC Basic V eZ80/ADL release, this causes tiles not displaying because they aren't loaded at the correct address; In ADL mode, the address of the 'graphics' variable is already a full 24bit address, not a relative address in a 16bit segment.
Changing line 50 to
Autodetects if mapmaker runs in ADL mode and allows users to run mapmaker in either ADL/non-ADL basic variants.
Best,
Jeroen