Previous Thread
Next Thread
Print Thread
Page 2 of 2 1 2
#112519 - 02/07/18 04:46 PM Re: MAME 0.194 [Re: Vas Crabb]  
Joined: Mar 2001
Posts: 15,933
R. Belmont Offline
R. Belmont  Offline

Very Senior Member

Joined: Mar 2001
Posts: 15,933
USA
To be fair, knowing what memory location is going wrong could help to backtrace the issue if someone's bored enough.

#112521 - 02/07/18 10:35 PM Re: MAME 0.194 [Re: R. Belmont]  
Joined: Feb 2004
Posts: 1,949
Vas Crabb Offline
Very Senior Member
Vas Crabb  Offline
Very Senior Member

Joined: Feb 2004
Posts: 1,949
Sydney, Australia
Originally Posted by R. Belmont
To be fair, knowing what memory location is going wrong could help to backtrace the issue if someone's bored enough.


Location f68d is in the main CPU's NVRAM - it isn't even close to where the root cause is in the MCU program.

#112522 - 02/08/18 12:30 AM Re: MAME 0.194 [Re: Vas Crabb]  
Joined: Mar 2001
Posts: 15,933
R. Belmont Offline
R. Belmont  Offline

Very Senior Member

Joined: Mar 2001
Posts: 15,933
USA
Sure, but one could find out where the CPU writes that and then how it determines that the MCU is telling it that. Clearly they didn't have people operating a PCB that gave out free games.

#112523 - 02/08/18 01:01 AM Re: MAME 0.194 [Re: R. Belmont]  
Joined: Feb 2004
Posts: 1,949
Vas Crabb Offline
Very Senior Member
Vas Crabb  Offline
Very Senior Member

Joined: Feb 2004
Posts: 1,949
Sydney, Australia
Originally Posted by R. Belmont
Sure, but one could find out where the CPU writes that and then how it determines that the MCU is telling it that. Clearly they didn't have people operating a PCB that gave out free games.


You'd be surprised - there was an arcade in Wollongong in the '90s that had a Golden Axe machine that gave three credits on power-up. The kids had worked this out and would power-cycle it when the attendant wasn't looking.

#112527 - 02/08/18 03:51 AM Re: MAME 0.194 [Re: Vas Crabb]  
Joined: Dec 2012
Posts: 242
LoganB Offline
Senior Member
LoganB  Offline
Senior Member

Joined: Dec 2012
Posts: 242
Dunedin, NZ
Seems like it's a bug with the game?

After zero-ing out that address, it does
Code
038F	ld	a,$01		3E 01
0391	ld	($F68D),a	32 8D F6

Then reads from that address and thus gives 1 credit.

EDIT: nvm. For some reason, the Z flag gets set on the main Z80 the third time it gets to
Code
035E: jr   z,$0368

where it then goes through a few subroutines, the first of which is the one mentioned above. This doesn't look to be an MCU issue, unless the MCU can affect the flags on the main CPU.

EDIT2: Well I'll be darned.
Code
- gladiatr and clones start with one credit due to the way MAME initialises
  memory and the dodgy code the bootleg MCUs use to synchronise with the host
  CPUs.  On an F3 reset they randomly start with one credit or no credits.

Last edited by LoganB; 02/08/18 04:28 AM.
Page 2 of 2 1 2

Who's Online Now
2 registered members (Robbbert, dxl), 16 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,534
Posts111,541
Members4,793
Most Online225
May 26th, 2014
Powered by UBB.threads™ PHP Forum Software 7.6.0
Page Time: 0.051s Queries: 15 (0.028s) Memory: 4.9667 MB (Peak: 5.1555 MB) Zlib enabled. Server Time: 2018-05-23 09:07:20 UTC