CAESAR Logo

Catalogue of Arcade Emulation Software - the Absolute Reference

Valid XHTML 1.0! Valid CSS!

X-Arcade

X-Arcade

Large CAESAR Logo

toaplan2.c

0.36RC1 [Quench]


TODO:

- Whoopee/Teki Paki sometimes tests bit 5 of the territory port just after testing for vblank. Why ?

- Whoppee is currently using the sound CPU ROM (Z80) from a differnt (pirate ?) version of Pipi and Bibis (Ryouta Kikaku copyright). It really has a HD647180 CPU, and its internal ROM needs to be dumped.

- Fix top character text layer (implement the line position table).

- Priority problem on 2nd player side of selection screen in FixEight (both original and bootleg)

- Fixeight bootleg text in sound check mode does not display properly with the CPU set to 10MHz (ok at 16MHz). Possible error in video_count_r routine.

- Need to sort out the video status register.

- Batrider IRQ4 beig activated at EOF is rubish. It's sound related - maybe acknowledgement from the Z80 when its NMI has completed (port 46)


GAME STATUS:

- Teki Paki: Working, but no sound. Missing sound MCU dump. Chip is protected. It's a QFP80 Hitachi HD647180.

- Ghox: Working, but no sound. Missing sound MCU dump. It's a QFP80 Hitachi HD647180.

- Dogyuun: Working, but no sound. MCU type is likely a NEC V25+. Chip is a PLCC94 stamped 'TS-002-MACH'.

- Knuckle Bash: Working, but sound FX only (missing music). MCU type is a NEC V25+. Chip is a PLCC94 stamped 'TS-004-DASH'. Some PCBs use another version stamped 'NITRO' which is the same chip type.

- Truxton 2: Working.

- Pipi & Bibis: Working.

- Whoopee : Working. Missing sound MCU dump. It's a Hitachi HD647180. Using bootleg sound CPU dump for now.

- Pipi & Bibis (Ryouta Kikaku): Working.

- FixEight: Not working properly. Missing background GFX, and sound FX only (missing music). Both controlled by MCU. MCU type is a NEC V25+. Chip is a PLCC94 stamped 'TS-001-TURBO'

- FixEight bootleg: Working. One unknown ROM (same as pipibibi one). Region hardcoded to Korea (@ $4d8)

- Grind Stormer: Working, but no sound. MCU type is a NEC V25+. Chip is a PLCC94 stamped 'TS-007-SPY'.

- VFive: Working, but no sound. MCU type is a NEC V25+. Chip is a PLCC94 stamped 'TS-007-SPY'.

- Batsugun : Working, but sound FX only (missing music) and wrong GFX priorities. MCU type is a NEC V25+. Chip is a PLCC94 stamped 'TS-007-SPY'.

- Batsugun Sp': Working, but sound FX only (missing music) and wrong GFX priorities. MCU type is a NEC V25+. Chip is a PLCC94 stamped 'TS-007-SPY'.

- Snow Bros. 2: Working.

- Mahou Daisakusen: Working.

- Shippu Mahou Daisakusen: Working.

- Battle Garegga: Working.

- Armed Police Batrider: Working.

- Battle Bakraid: Working.


NOTES:

- Raizing games and Truxton 2 are heavily dependent on the Raine source. Many thanks to Richard Bush and the Raine team.

- See Input Port definition header below, for instructions on how to enter pause/slow motion modes.

- Code at $20A26 forces territory to Japan in V-Five. Some stuff NOP'd at reset vector, and Z?80 CPU post test is skipped (bootleg ?)

- sstriker: Might be a bootleg / hack, the region jumper is read with this set but even when set to Japan you get all english text etc which seems a little odd, but might be correct.

- kingdmgp: Might be a bootleg / hack, some of the tiles needed for the credits screen have been stripped out, doesn't seem very professional, since its rare and should probably only have a different graphics rom its nearly impossible for us to verify, a lot of boards being sold as 'Kingdom Grand Prix' are infact conversions using Neill Corlett's hack.



VIDEO HARDWARE NOTES:

- Hack is needed to reset sound CPU and sound chip when machine is 'tilted' in Pipi & Bibis. Otherwise sound CPU interferes with the main CPU test of shared RAM. You get a 'Sub CPU RAM Error'.

- What do Scroll registers 0Eh and 0Fh really do ????

- Snow Bros 2 sets bit 6 of the sprite X info word during weather world map, and bits 4, 5 and 6 of the sprite X info word during the Rabbit boss screen - reasons are unknown.

- Fourth set of scroll registers have been used for Sprite scroll though it may not be correct. For most parts this looks right except for Snow Bros 2 when in the rabbit boss screen (all sprites jump when big green nasty (which is the foreground layer) comes in from the left)

- Teki Paki tests video RAM from address 0 past SpriteRAM to $37ff. This seems to be a bug in Teki Paki's vram test routine !

- Batsugun, relationship between the two video controllers (priority wise) is wrong and unknown.


SOUND HARDWARE NOTES:

- The Toaplan 2 hardware with V25+ secondary CPU controls the sound through to a YM2151 and OKI M6295 on some boards. Here we just interperet some of commands sent to the V25+, directly onto the OKI M6295. These tables convert commands sent from the main CPU, into sample numbers played back by the sound processor. The ADPCM ROMs contain intrument samples which are sequenced by the sound processor to create some of the backing tracks. This is beyond the scope of this playback file. Time would be better spent elsewhere.


WIP:

- 0.111u2: Brian Oberholtzer corrected some incorrect dipswitch information in the toaplan2 driver.

- 0.109u1: Corrado Tomaselli converted all the toaplan2.c games to mono since the PCBs are JAMMA without external stereo connectors.

- 0.105u4: Major Toaplan 2 driver cleanup [Quench]: Consolidated the Read/Write memory maps. Fixed coin counters on a few games. Raised the volumes on a few games. Cleaned the inputs by: Adding input inheritance and DIPSW locations, added conditional dependance to DIPSWs where required and fixing a few incorrect inputs here and there.

- 0.105u2: Ville Linde fixed crashes in Armed Police Batrider and Battle Bakraid /- Unlimited version.

- 0.78u1: Mamesick removed a few IPF_CHEAT in the toaplan1/2 drivers so mame doesn't hide the dipswitches. Activates the 'Invulnerability' dipswitch.

- 0.71u1: David Haywood added missing rowselect effect to toaplan2 driver.

- 9th December 2002: Some of Shiriru's updates concerning the Cave and Toaplan2 drivers were forwarded.

- 27th May 2002: Quench did a few small cleanups on the toaplan2 driver.

- 17th March 2001: Brad Oliver fixed Toaplan2 sprite decoding to work properly on other platforms.

- 11th February 2001: Quench sent in a Toaplan2 update which fixed disappearing sprites in the Raizing games.

- 28th December 2000: Yochizo fixed YM2151 frequency in the Toaplan2 driver.

- 21st December 2000: Gerardo Oporto fixed some dip switch settings in Toaplan2 and Taito B drivers.

- 0.37b10: Changed OKI6295 clock speed to 20454 Hz.

- 4th December 2000: Yochizo fixed some small issues in Toaplan2 and Taito H system drivers.

- 14th November 2000: Gerardo Oporto fixed dipswitches in the Toaplan2 driver.

- 9th November 2000: Luca Elia sent in a driver for American Speedway. Quench sent an updated Toaplan2 driver with text-layer scroll effect that fixes the ending scene in Armed Police Batrider.

- 23rd October 2000: Takahiro Nogi added bank switching function for M6295 samples and tweaked playback frequency in the Toaplan2 driver.

- 14th October 2000: Yochizo fixed some graphics problems in Shippu Mahou Daisakusen and Armed Police Batrider, added sound to Armed Police Batrider and sped up the driver a little.

- 9th October 2000: Yochizo re-applied the Toaplan2 driver updates.

- 9th September 2000: Yochizo added Armed Police Batrider to the Toaplan2 driver, but sound is missing.

- 29th August 2000: Yochizo added Battle Garegga to the Toaplan2 driver but it has problems with the current 68k emulation core.

- 21st August 2000: Yochizo added Mahou Daisakusen and Shippu Mahou Daisakusen to the Toaplan2 driver.

- 21st August 2000: Nicola Salmoria fixed a few things in the Toaplan2 driver.

- 17th August 2000: Yochizo added Tatsujin 2 to the Toaplan2 driver.

- 23rd May 2000: Quench added Batsugun (Special version) romset to the Toaplan2 driver.

- 12th March 2000: Quench sent in a Toaplan2 update with support for Ghox, V-Five, Dogyuun and Batsugun.

- 0.36RC1: Added toaplan2.c driver.

- 12th January 2000: Quench sent a driver for some later Toaplan games such as Teki Paki, Ghox, Dogyuun, Knuckle Bash, Pipi & Bibis, Whoopee, Snow Bros 2.