Author Topic: Mysterious Stones Driver  (Read 5234 times)

Offline iq_132

  • Administrator
  • *****
  • Posts: 3724
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Mysterious Stones Driver
« on: February 26, 2008, 05:23:42 AM »
Here's a driver for Mysterious Stones

Games supported on this hardware:
Mysterious Stones - Dr. John's Adventure
Mysterious Stones - Dr. Kick in Adventure

Sound, high color, savestates, etc., are all supported.


Known bugs:
The airplane sound is not correct
The game is running a bit fast (the AY8910 emulation causes severe problems at the proper refresh rate)
Randomly freezes?

Also, you'll need to update the m6502 core a bit:

Just replace the old m6502Scan with this (in src/cpu/m6502/m6502.cpp)

Code: [Select]
int m6502Scan(int nAction)
{
if ((nAction & ACB_DRIVER_DATA) == 0) {
return 0;
}

for (int i = 0; i < MAX_CPU; i++) {
m6502_regs = &m6502_active_cpu_regs[i];

SCAN_VAR(A);
SCAN_VAR(X);
SCAN_VAR(Y);
SCAN_VAR(P);
SCAN_VAR(S);
SCAN_VAR(PC);
SCAN_VAR(nTotalCycles);
}

return 0;
}

Also x2, if you're not using 0.2.96.73+ as your codebase, you'll need to change this
HARDWARE_MISC_PRE90S
to this
HARDWARE_MISC_MISC


Offline hxghwx

  • Newbies
  • *
  • Posts: 37
  • Karma: +0/-0
Re: Mysterious Stones Driver
« Reply #1 on: March 18, 2008, 03:33:33 AM »
Edit and translate with the VC, circulate a mistake

Offline Barry Harris

  • dontbeabarry
  • *
  • Posts: 1785
  • Karma: +0/-65535
  • I'm Barry Harris and I like to f*** people over
Re: Mysterious Stones Driver
« Reply #2 on: March 18, 2008, 04:01:58 AM »
VC doesn't like the M6502 core. It's the same for mole - although that one doesn't crash the app.
Account of Barry Harris; the traitor.
Send me an e-mail at barry@fbalpha.com letting me know how big of a piece of sh** I am.

Offline Barry Harris

  • dontbeabarry
  • *
  • Posts: 1785
  • Karma: +0/-65535
  • I'm Barry Harris and I like to f*** people over
Re: Mysterious Stones Driver
« Reply #3 on: March 18, 2008, 04:25:57 AM »
It looks the app crash is down to an error in the AY8910 initialisation.

Change line 14 from this;

Code: [Select]
static short *pAY8910Buffer[3], *pFMBuffer = NULL;
to this;

Code: [Select]
static short *pAY8910Buffer[6], *pFMBuffer = NULL;
That will stop the app crash - game still doesn't work though. :) None of the M6502 based games do in VC builds.
Account of Barry Harris; the traitor.
Send me an e-mail at barry@fbalpha.com letting me know how big of a piece of sh** I am.

Offline iq_132

  • Administrator
  • *****
  • Posts: 3724
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: Mysterious Stones Driver
« Reply #4 on: March 18, 2008, 02:54:15 PM »
Oops!  I'll have to set up the VC environment in a day or so and see if I can track down the m6502 issues.