Author Topic: King of Gladiator (bootleg) - clone of kof97.  (Read 31884 times)

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: King of Gladiator (bootleg) - clone of kof97.
« Reply #30 on: December 26, 2005, 07:20:21 PM »
well, the memory address that holds the region setting (jap,asia/eur,us) is 0x10FD83.
The main 68k memory is mapped 0x100000-0x10FFFF.  It is held as a UINT16, so you
must byteswap the data (and the address and divide it by 2).
The program expects that the data read from 0xFFFFE will include 0xFFFFF (68k instuctions are 2 bytes),
and is byteswapped, so you would return 0xFF01 or 0xFF00.

The reason that I did this +1)>>1 is because Japan is 0x00 in the main ram, asia/us is 01 or 02
and this was the shortest way to make 02->01 and 01->01 and 00->00.
the 0xFF00| is to make sure it returns 0xFF01 or 0xFF00.



Offline James33

  • Expert
  • *****
  • Posts: 532
  • Karma: +3/-0
  • The Mame Man
    • Emulation Zone
Re: King of Gladiator (bootleg) - clone of kof97.
« Reply #31 on: December 26, 2005, 09:16:30 PM »
Here's a mame port of that code I posted in the FBA section. ;)

Code: [Select]
// Switch kog title between kanji and English
// This is set by a jumper on the PCB (Razoola)
READ16_HANDLER( kog_title_lang_set )
{
return ((neogeo_ram16[0x0FD82/2]+1)>>1)|0xFF00;
}




Code: [Select]
memory_install_read16_handler(0,  ADDRESS_SPACE_PROGRAM, 0x0ffffe, 0x0fffff, 0, 0, kog_title_lang_set);

Cool much better than what I was thinking of .
IQ Forum Member

Offline fernando2

  • New Member
  • *
  • Posts: 6
  • Karma: +0/-0
Re: King of Gladiator (bootleg) - clone of kof97.
« Reply #32 on: December 29, 2005, 11:55:49 AM »
i`m having same problems as king hanco i dont know whats wrong maybe rom loading i dont know please somenone could post a complete working driver


thanks for yur help.