Jump to content



Photo

PinMame compile with debug option --> Disassembler Window

Debug PinMame Compiler 6809 Disassembler

  • Please log in to reply
2 replies to this topic

#1 SasitornSchneider

SasitornSchneider

    Neophyte

  • Members
  • Pip
  • 7 posts
  • Location:Phuket, Thailand

  • Flag: Thailand

  • Favorite Pinball: Jack Bot

Posted 25 July 2023 - 05:26 PM

Hi, I downloaded PinMame Version 2.2 as Binary (pinmame_md.exe). Starting the programm with option -d opens the pinmame emulation AND an additional Debug Window for the 6809 Prozessor ROM contents with disassembled Code.

Than you (I) can go step by step through the Rom-based 6809 program and see how the pin-machine lights are switched on/off or how the pinball machine reacts to pressed buttons or switches (simulated by keyboard).

 

Since PinMame is already at version 3.3, I wanted to create a new .exe file with equal debug options (for the 6809 Prozessor Rom Code!). Compiling the whole PinMame checkout 3.3 was no (big) Problem with Cmake and Visual Studio, but the Debug option just produces a debug-version of PinMame, NOT a Debugger (Window) for the 6809 ROM Code.

 

Does anybody know how to rebuild PinMame with Disassembler Window ?

Or does anybody know where to find an newer pinmame_md.exe than version 2.2 ?

Its such a powerful tool, I cant believe its no longer part of the project.

 

So this question has nothing to do with Vpinmame and its "debug" Window which is activated by [ESC]


Edited by SasitornSchneider, 25 July 2023 - 05:29 PM.


#2 SasitornSchneider

SasitornSchneider

    Neophyte

  • Members
  • Pip
  • 7 posts
  • Location:Phuket, Thailand

  • Flag: Thailand

  • Favorite Pinball: Jack Bot

Posted 26 July 2023 - 01:41 PM

Hi, I downloaded PinMame Version 2.2 as Binary (pinmame_md.exe). Starting the programm with option -d opens the pinmame emulation AND an additional Debug Window for the 6809 Prozessor ROM contents with disassembled Code.

Than you (I) can go step by step through the Rom-based 6809 program and see how the pin-machine lights are switched on/off or how the pinball machine reacts to pressed buttons or switches (simulated by keyboard).

 

Since PinMame is already at version 3.3, I wanted to create a new .exe file with equal debug options (for the 6809 Prozessor Rom Code!). Compiling the whole PinMame checkout 3.3 was no (big) Problem with Cmake and Visual Studio, but the Debug option just produces a debug-version of PinMame, NOT a Debugger (Window) for the 6809 ROM Code.

 

Does anybody know how to rebuild PinMame with Disassembler Window ?

Or does anybody know where to find an newer pinmame_md.exe than version 2.2 ?

Its such a powerful tool, I cant believe its no longer part of the project.

 

So this question has nothing to do with Vpinmame and its "debug" Window which is activated by [ESC]

Finally I did it myself.  :db:  So if somebody is interested:

I compiled with Visual Studio 2022 under windows 10, PinMAME version 3.3 with MAME CROSS-DEBUGGER/DISASSEMBLER, absolutely awesome tool.

 

As I have a Jack-Bot Williams PinBall machine with Motorola 6809 CPU, I just tested the Dissassembler and Debugger of my 6809 ROM binary code, but

I assume all other in MAME implemented CPU's like the legendary Z80  work fine, too.

 

So now I am planning to change my ROM so that my Jack Bot gets a 4 Ball Multiball (right now only 3 Ball Multiball, but 4 Balls in the machine and 3 trough's,

so 4 Ball Multiball should be possible)



#3 DavidShoemaker

DavidShoemaker

    Neophyte

  • Members
  • Pip
  • 1 posts

  • Flag: ---------

  • Favorite Pinball: Pinbot

  • 360 Gamer Tag: Mutant42

Posted 16 March 2024 - 06:38 AM

To give some actual help on how to do this:

In visual studio open the VS2022 solution.

Right click the PinMame project and select properties

Then C/C++

Preprocessor

In the Preprocessor Definitions add (at the end)  ;MAME_DEBUG

Clean and rebuild all (if you have already built)

You will have to have the c++ ATL for V143 build tools (or latest for your version) to build the mame libraries.

 

Then to run

Debug -> PinMame Debug Properties

Debugging

Command Arguments: sshooter -rompath d:\roms -window -debug 

 

This example is starting Game Plan Sharpshooter with the sshooter.zip in d:\roms.  Change these as you wish for your game to debug.

 

When you run after the splash screen you should get the game "display" window and a debug window.







Also tagged with one or more of these keywords: Debug, PinMame, Compiler, 6809 Disassembler