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 - Meka Debugger Thread

Reply to topic Goto page Previous  1, 2
Author Message
  • Joined: 22 Apr 2013
  • Posts: 3
Reply with quote
Post Posted: Sun Mar 16, 2014 11:10 pm
I remember posting about asking for the ability to produce trace logs of the executed game code. Have you guys implemented that feature in the beta? If not, a sample output would look similar to this:

0041: c3 4a 0a JP 0a4a A:00 F:a0 BC:20eb DE:324e HL:c2de SP:cffb

This is a really useful feature for hacking games that I use all the time on other systems.
  View user's profile Send private message
  • Site Admin
  • Joined: 08 Jul 2001
  • Posts: 8644
  • Location: Paris, France
Reply with quote
Post Posted: Wed Mar 26, 2014 6:58 pm
It hasn't been implemented yet.
It wouldn't be too hard so it is still considered but I can't give an ETA.
  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 08 Jul 2001
  • Posts: 8644
  • Location: Paris, France
Reply with quote
Post Posted: Sun Jun 22, 2014 8:29 pm
Pennywise: I have know added a TRACE command to the debugger. Let me know how it works for you.

http://www.smspower.org/forums/viewtopic.php?p=79937#79937
  View user's profile Send private message Visit poster's website
  • Joined: 23 Nov 2016
  • Posts: 16
  • Location: Argentina
Reply with quote
Post Posted: Wed Nov 23, 2016 7:46 pm
Hi ! I found today this great emulator, Im new to the SMS scene. Ive been coding emulators and developing videogames for a while now, and wanted to start doing my own SMS emu as an exercise.

So questions:

1) I'm trying to find the VDP status register on the debugger, but can't find it (I see the VREG 11 registers), but not the VDP status with the requested VBLANK, sprite overflow, etc. Is there a way to check that ? Also cannot find the hCounter and vCounter.

2) I'm having a very weird bug with the emulator, for some reason when I click, there's a vertical offset that gets bigger and bigger when I move down the mouse. So for example, the top menues work ok, but I need to highlight one option below the one I want to select. The buttons on the debugger (cont, step, etc), I need to click like 200 pixels below where they are to hit them. Seems like something is very weird with the scaling ? I'm not using full screen, I didn't even play a single game, I want only the debugging features.

Thanks, and keep it up !
  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 14687
  • Location: London
Reply with quote
Post Posted: Wed Nov 23, 2016 11:18 pm
The information window has some of what you want. I haven't experienced the mouse issue, but it may be related to Allegro's weak support for higher DPI settings, can you try resetting to unscaled?
  View user's profile Send private message Visit poster's website
  • Joined: 23 Nov 2016
  • Posts: 16
  • Location: Argentina
Reply with quote
Post Posted: Thu Nov 24, 2016 2:18 pm
Ok found the VDP info,

How can I reset to unscaled ?
  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 14687
  • Location: London
Reply with quote
Post Posted: Thu Nov 24, 2016 3:39 pm
It depends on your version of Windows. Look for a 100% option in the display settings, or a small-large slider (smallest is unscaled).
  View user's profile Send private message Visit poster's website
  • Joined: 04 Oct 2015
  • Posts: 17
Reply with quote
Post Posted: Fri Jan 06, 2017 11:45 pm
Is there a way to quickly know the contents of the I/O ports 7Eh and 7Fh? I wish this info could be shown in the "Technical Information" window, but unfortunately it isn't there.
  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 14687
  • Location: London
Reply with quote
Post Posted: Sat Jan 07, 2017 12:34 am
There is a line number and iperiod, although the latter is not quite what you asked for.
  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 14687
  • Location: London
Reply with quote
Post Posted: Tue Jun 06, 2017 8:04 pm
Resurrecting the start of this thread, I've hit the issue with dots in label names - which WLA DX will produce for things like structs, which are actually quite nice - e.g. "b w enemies.3.position.x".

This is the culprit:
    // Get token
    if (!parse_getword(token_buf, sizeof(token_buf), &src, " \t\n+-*/&|^(),.", 0, PARSE_FLAGS_DONT_EAT_SEPARATORS))

The delimiters includes dot, but if we remove that then it breaks the ".." operator. This operator precludes having symbols like "foo..bar" but that seems OK to me. I'm not sure how best to change the code to deal with this.
  View user's profile Send private message Visit poster's website
  • Joined: 05 Jul 2017
  • Posts: 67
  • Location: Cornwall, United Kingdom
Reply with quote
Post Posted: Tue Jul 11, 2017 4:40 pm
I want to change an instruction on the Z80, how do I do it?

I can click into the Z80 memory editor at the address I want and type the new value: the cursor moves but no characters are changed? I've tried this with execution stopped and also running.

What am I doing wrong? #newbie

edit: ah! got it, I edit in the ROM tab not the Z80 tab.
  View user's profile Send private message Visit poster's website
Reply to topic Goto page Previous  1, 2



Back to the top of this page

Back to SMS Power!