[GENS r57shell-mod] Trace doesn't make sense

Talk about development tools here

Moderator: BigEvilCorporation

Post Reply
tryphon
Very interested
Posts: 316
Joined: Sat Aug 17, 2013 9:38 pm
Location: France

[GENS r57shell-mod] Trace doesn't make sense

Post by tryphon » Sun Aug 14, 2016 3:15 pm

I'm currently translating a ROM and using Gens11svnr665 for debugging. The game crashes at some point, and I'm comparing two traces (one for the buggy translated one, and one from the original japanese at the very same point) to see what's wrong.

I have differences I cannot explain. For example, this :

Code: Select all

00:EE88  4E B8  JSR     ($2654)                  A0=000214F6 A1=00FFFE50 A2=FFFF963E A3=00FF5FF7 A4=FFFFB114 A5=00027000 A6=FFFFB0E2 A7=00FFFE54 D0=0000E7BF D1=000000FB D2=000000BD D3=6FF6E6B0 D4=0000E6A2 D5=0000FFFF D6=00000005 D7=0000FFFF XnzvC
00:EE8C  41 F8  LEA     ($CC76),A0               A0=000214FC A1=00FFFE50 A2=FFFF963E A3=00FF5FF7 A4=FFFFB11C A5=00027000 A6=FFFFB0E2 A7=00FFFE54 D0=E7BF017B D1=000000FB D2=013D0001 D3=6FF6E6B0 D4=0000E6A2 D5=0000FFFF D6=00000005 D7=0000FFFF xNzvc
How is it even possible line 2654 isn't executed after the JSR call ? No interrupt occured (VInt and Hint are located at 4xx, and they are traced anyway).

For comparison, the original japanese game trace says, at the same point :

Code: Select all

00:EE88  4E B8  JSR     ($2654)                  A0=000214F6 A1=00FFFE50 A2=FFFF963E A3=00FF5FF7 A4=FFFFB114 A5=00027000 A6=FFFFB0E2 A7=00FFFE54 D0=0000E7BF D1=000000FB D2=000000BD D3=6FF6E6B0 D4=0000E6A2 D5=0000FFFF D6=00000005 D7=0000FFFF XnzvC
00:2654  B8 FC  CMPA.W  #$B394,A4                A0=000214F6 A1=00FFFE50 A2=FFFF963E A3=00FF5FF7 A4=FFFFB114 A5=00027000 A6=FFFFB0E2 A7=00FFFE50 D0=0000E7BF D1=000000FB D2=000000BD D3=6FF6E6B0 D4=0000E6A2 D5=0000FFFF D6=00000005 D7=0000FFFF XnzvC
Did any of yu encounter this ? Ideas ?

Dr. MefistO
Interested
Posts: 47
Joined: Wed Jan 08, 2014 3:39 pm

Re: [GENS r57shell-mod] Trace doesn't make sense

Post by Dr. MefistO » Fri Aug 19, 2016 8:32 am

Could you provide some more info: which game, patched file, etc.?
Just PM me for that. And we will check it.

Dr. MefistO
Interested
Posts: 47
Joined: Wed Jan 08, 2014 3:39 pm

Re: [GENS r57shell-mod] Trace doesn't make sense

Post by Dr. MefistO » Fri Aug 19, 2016 8:42 am

In vectors table there are some subroutines for handling crashes. Maybe some code or data in your patched version executes some wrong instructions or decompresses some wrong data.

tryphon
Very interested
Posts: 316
Joined: Sat Aug 17, 2013 9:38 pm
Location: France

Re: [GENS r57shell-mod] Trace doesn't make sense

Post by tryphon » Fri Aug 26, 2016 10:53 pm

Sorry for the late reply, I didn't noticed the answers.

Unfortunately I solved my problem (which was absolutely unrelated to the weird trace), which in particular means I don't have the faulty version anymore. But if I get a strange trace again, I will mp you immediately.

The game was Lord Monarch (Lord Monarch (J) [!]).

Post Reply