Author Topic: Combone's - Hacks & Translate games thread (News +) (V2.0)  (Read 942 times)

Online dink

  • Administrator
  • *****
  • Posts: 3085
  • Karma: +259/-0
  • side effects: new or worsening heart failure
Re: Combone's - Hacks & Translate games thread (News +) (V2.0)
« Reply #15 on: September 11, 2019, 10:46:58 AM »
Robert, nice, very nice!! :)

Offline Robert

  • MAME Devs
  • *****
  • Posts: 18
  • Karma: +27/-0
Re: Combone's - Hacks & Translate games thread (News +) (V2.0)
« Reply #16 on: September 11, 2019, 07:46:13 PM »
Basically, after each second, it subtracts one in BCD mode, then checks the minus flag. This is the wrong thing to do if you have > 80 seconds. So, I changed it to the carry flag which only pops up when 00 rolls around to 99.

However, your m68000 core might work differently. I guess you'll find out. Make sure you test to check the fight ends when the time is up.

Offline Combone

  • Newbies
  • *
  • Posts: 42
  • Karma: +2/-0
Re: Combone's - Hacks & Translate games thread (News +) (V2.0)
« Reply #17 on: September 12, 2019, 05:21:29 PM »
I've devised a patch for HBMAME to fix the timer issue. Each affected game needs a 1-byte patch. I've fixed all the games I know about, but there's probably many others to be found.

Basically, after each second, it subtracts one in BCD mode, then checks the minus flag. This is the wrong thing to do if you have > 80 seconds. So, I changed it to the carry flag which only pops up when 00 rolls around to 99.

However, your m68000 core might work differently. I guess you'll find out. Make sure you test to check the fight ends when the time is up.

Congratulations Robert, nice find  :cool:

I try found fix and I always fail  :redface: 
« Last Edit: September 12, 2019, 06:02:11 PM by Combone »