Forums

Sega Master System / Mark III / Game Gear
SG-1000 / SC-3000 / SF-7000 / OMV
Home - Forums - Games - Scans - Maps - Cheats - Credits
Music - Videos - Development - Hacks - Translations - Homebrew

View topic - Debugger breaks at wrong ROM Offset?

Reply to topic
Author Message
  • Joined: 07 Oct 2010
  • Posts: 4
  • Location: Germany
Reply with quote
Debugger breaks at wrong ROM Offset?
Post Posted: Sat Nov 30, 2013 12:48 pm
I break a RAM offset and the Debugger break it but in Memory ROM Editor i see only zeros in this ROM position. Whats wrong?


luckydimecape9okhp3fucj.png (58.28 KB)
Attachment fairy
luckydimecape9okhp3fucj.png

  View user's profile Send private message Visit poster's website
  • Joined: 14 Apr 2013
  • Posts: 624
Reply with quote
Post Posted: Sat Nov 30, 2013 2:25 pm
Ocelot wrote
I break a RAM offset and the Debugger break it but in Memory ROM Editor i see only zeros in this ROM position. Whats wrong?


Hi Ocelot,

the debugger halts 1 instruction after the read/write has happened because it cannot predict it.
In order to find the code in the memory viewer you need to check the ROM address not the Z80 address.
You can "reverse map" the Z80 address to the corresponding ROM address by entering "rmap address".
In your case you will write "rmap 8890".
If you want to see the preceding instruction you can enter "d 8890"
  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 08 Jul 2001
  • Posts: 8649
  • Location: Paris, France
Reply with quote
Post Posted: Sun Dec 01, 2013 10:50 pm
What is odd from the screenshot is that normally the disassembly window should be centered (based on history of previous Z80 PC values) so you should see the instruction before. Are you using the latest build from 0.80 branch or 0.73 ?
  View user's profile Send private message Visit poster's website
  • Joined: 14 Apr 2013
  • Posts: 624
Reply with quote
Post Posted: Sun Dec 01, 2013 11:06 pm
Bock wrote
What is odd from the screenshot is that normally the disassembly window should be centered (based on history of previous Z80 PC values) so you should see the instruction before. Are you using the latest build from 0.80 branch or 0.73 ?

Check out the order of the menu. It's File, Debug, ... In version 0.80 you moved Debug to the 7th positon. So I guess he's using 0.73 :)
  View user's profile Send private message Visit poster's website
Reply to topic



Back to the top of this page

Back to SMS Power!