Skip to content

Tiles not displaying in BBC Basic V ADL/eZ80 mode #1

Description

@envenomator

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions