Mame Debugger Help

Purity

The Oracle
vacBacker
Feedback
17 (100%)
Credits
2,999CR
Anyone skilled with Mame debugger?

I'm trying to find the text OUT and OK in the Vs. Gradius and Vs.Goonies rom files.

The program rom I've looked at for Vs.Goonies has it in clear text in the roms so it's easy to find and change.

However I'm struggling with Vs.Gradius

I've tried various methods like:

1) Looking for clear text
2) Using the find option in the Mame debugger
3) Using Pyhton to hunt for Non-ASCII characters

All to no avail. Any suggestions?
Purity2018-04-13 19:29:25
 

dj_yt

Active member
Feedback
3 (100%)
Credits
787CR
You could watch the video ram and set a breakpoint when the text is written to the location at the screen.

Then work backwards in the code at that point to find the routine responsible for writing the text and you will probably find where it's stored in Rom also. dj_yt2018-04-13 19:45:15
 

Purity

The Oracle
vacBacker
Feedback
17 (100%)
Credits
2,999CR
OK I think I'll need to find some tutorials to try and do that. I tried to set some breakpoints on the Vs Goonies roms at the point it was at the location but didn't have much joy producing any results
Purity2018-04-13 19:50:53
 

NivagSwerdna

Active member
Feedback
1 (100%)
Credits
855CR
You can inspect the ROMs outside MAME with a Hex Editor (e.g. HxD) and if you are lucky the encoding will be ASCII...

e.g. look in mds-gn org e.u7

EC 52 4F 4D 00 32 FE 21 B3 4F 4B FE 21 B3 4F 55 54 FE 21 F3 4F 4B FE 21 F3 4F 55 54 FE 3F 00 09 0A 03 03 09 27 18 25 09 0A 13 27 09 25 16 26 09 34 16 0A 09 1C 10 0B 09 26 26 26 09 18 3F 0B FD 3F 00 FD 00 00 FE FF FF FF FF FF FF FF FF FF FF FF

ôýô.õ.õ"õ'õ-õ!-GOONIESý!¬ROM.1ý!ìROM.2þ!³OKþ!³OUTþ!óOKþ!óOUTþ?......'.%...'.%.&.4.......&&&..?.ý

There are around +F51E

You can use --listxml to get the mapping of ROM to memory address... or look here http://www.arcaderestoration.com/memorymap/10220/Vs.+The+Goonies.aspx

which says... 0x10000-0x1FFFF in maincpu

mame64 -debug goonies

[font="Verdana, Tahoma, Arial"]Open a memory window 1F500 for maincpu memory space[/font]

[font="Verdana, Tahoma, Arial"]
[/font]

[font="Verdana, Tahoma, Arial"]Share and Enjoy[/font]

[font="Verdana, Tahoma, Arial"]Nivag[/font]

NivagSwerdna2018-04-13 23:53:20
 

Purity

The Oracle
vacBacker
Feedback
17 (100%)
Credits
2,999CR
Thanks

Yes goonies has the txt in ascii so it is fairly straightforward

Unfortunately vs gradius isn't as easy and that's what im struggling with
 

cmonkey

Active member
vacBacker
Feedback
4 (100%)
Credits
1,659CR
Looks like someone's trying to defeat rom checksums....
smiley2.gif


Vs. Gradius obfuscates text strings to stop people like you from tampering!

The mappings are as follows :-

A = 02

B = c6

C = 0b

D = 0d

E = 04

F = 1d

G = 01

H = 10

I = 11

K = 0e

L = 08

M = 03

N = 0f

O = 05

P = 1e

R = 07

S = 0a

T = 0c

U = 1c

V = 06

X = d4

Y = 09

© = 61 (copyright symbol)

Letters J, Q, W and Z are not implemented

Numbers are not obfuscated, they're ASCII, as you've probably already found out.

OUT is found in two places in prg.u7 - f9b2 and f9bd

OK is found in two places in prg.u7 - f9ad and f9d8

Main beef of the rom checksum routine is at f94c - seems to be just an accumulator of the rom contents, but i haven't looked into it with any depth

The actual checking of the results of the accumulator is done at f8d6

Happy hacking!
 

Purity

The Oracle
vacBacker
Feedback
17 (100%)
Credits
2,999CR
Awesome Ade. You are a star!
smiley10.gif


You wouldn't believe the amount of time I've spent trying to figure out the letter mappings :)

Thank you very much for posting, as I know you don't do much arcade stuff many more.

Good to see you are ok as well
smiley20.gif
 
Top