Using the x16emu debugger

All aspects of programming on the Commander X16.
Post Reply
fredrik
Posts: 20
Joined: Fri Mar 01, 2024 12:25 pm

Using the x16emu debugger

Post by fredrik »

How do I view the contents of memory above $ffff ? If I try "M 10000" it seems I just get to look at the contents at $0000.

Also, am I supposed to see mapped memory at $a000-$bfff in the debugger? The contents I see are not what I would expect, and nothing changes if I change the value in address 0. Is the emulator even supposed to change the banking if I change the contents of address 0 in the debugger?

Is there up to date documentation for x16emu somewhere? I'm looking at https://github.com/rsbohn/x16-emulator/ ... /README.md , but that doesn't seem to be up to date.
TomXP411
Posts: 1803
Joined: Tue May 19, 2020 8:49 pm

Re: Using the x16emu debugger

Post by TomXP411 »

Wow. That's an old version of the emulator.

You will want to start by grabbing the emulator from the official repository at https://github.com/X16Community/x16-emulator

The readme on this repo also has the current operating instructions, which do include reading from banks other than 0... which you do by entering 6 digit address with the D command. The right 4 digits are the base address, and the left 2 digits are the bank index.
fredrik
Posts: 20
Joined: Fri Mar 01, 2024 12:25 pm

Re: Using the x16emu debugger

Post by fredrik »

Thanks!

I have the latest release (Winnipeg).

These instructions are better than the ones I found, but still not complete. I figured out I can change the value of an address with "f address value", but this isn't in the readme you iinked to.

Anyway, thanks to you I now realized the bank part only changes what can be seen at $a000-$bfff, so something like "m 10000" shows the same as "m 0".

I'm getting somewhere. :)
Post Reply