Previous 199869 Revisions Next

r20242 Sunday 13th January, 2013 at 11:11:36 UTC by Wilbert Pol
(MESS)sms.c: Improved memory initialization on Japanese and Korean consoles. This fixes softwre list entries alibaba and blockhol.  [Enik Land]
[hash]sms.xml
[src/mess/machine]sms.c

trunk/src/mess/machine/sms.c
r20241r20242
19271927
19281928   /* Check if lightgun has been chosen as input: if so, enable crosshair */
19291929   machine().scheduler().timer_set(attotime::zero, timer_expired_delegate(FUNC(sms_state::lightgun_tick),this));
1930
1931   // alibaba and blockhol are ports of games for the MSX system. The
1932   // MSX bios usually initializes callback "vectors" at the top of RAM.
1933   // The code in alibaba does not do this so the IRQ vector only contains
1934   // the "call $4010" without a following RET statement. That is basically
1935   // a bug in the program code. The only way this cartridge could have run
1936   // successfully on a real unit is if the RAM would be initialized with
1937   // a F0 pattern on power up; F0 = RET P.
1938   //
1939   // alibaba and blockhol SMS cartridges rely on uninitialized RAM,
1940   // then fill it with a F0 pattern ("RET P"), but only for consoles
1941   // in Japan region (including KR), until confirmed on other consoles.
1942   if (m_is_region_japan)
1943   {
1944      memset((UINT8*)m_space->get_write_ptr(0xc000), 0xf0, 0x1FF0);
1945   }
19301946}
19311947
19321948MACHINE_RESET_MEMBER(sms_state,sms)
trunk/hash/sms.xml
r20241r20242
329329      </part>
330330   </software>
331331
332   <software name="alibaba" supported="no">
332   <software name="alibaba">
333333      <description>Alibaba and 40 Thieves (Kor)</description>
334334      <year>1989</year>
335335      <publisher>HiCom</publisher>
r20241r20242
851851      </part>
852852   </software>
853853
854   <software name="blockhol" supported="no">
854   <software name="blockhol">
855855      <description>Block Hole (Kor)</description>
856856      <year>1990</year>
857857      <publisher>Zemina</publisher>

Previous 199869 Revisions Next


© 1997-2024 The MAME Team