Previous 199869 Revisions Next

r26151 Wednesday 13th November, 2013 at 20:59:57 UTC by David Haywood
more sensible stack location to prevent crashes / glitches (nw)
[src/mame/machine]pgmprot_igs027a_type3.c

trunk/src/mame/machine/pgmprot_igs027a_type3.c
r26150r26151
265265   // behavior is basically the same as killing blade plus here, this code
266266   // could be very wrong
267267   base = 0x30;
268   temp16[(base) /2] = 0x00D3; base += 2;
269   temp16[(base) /2] = 0xE3A0; base += 2;
270   temp16[(base) /2] = 0xF000; base += 2;
271   temp16[(base) /2] = 0xE121; base += 2;
272   temp16[(base) /2] = 0x1A01; base += 2;
273   temp16[(base) /2] = 0xE3A0; base += 2;
274   temp16[(base) /2] = 0x2B01; base += 2;
275   temp16[(base) /2] = 0xE3A0; base += 2;
276   temp16[(base) /2] = 0xD801; base += 2;
277   temp16[(base) /2] = 0xE082; base += 2;
268
278269   temp16[(base) /2] = 0x00D2; base += 2;
279270   temp16[(base) /2] = 0xE3A0; base += 2;
280271   temp16[(base) /2] = 0xF000; base += 2;
r26150r26151
348339   temp16[(base) /2] = 0x6000; base += 2;
349340   temp16[(base) /2] = 0xE587; base += 2;
350341   
351   
352   temp16[(base) /2] = 0x002b; base += 2; // jump to 0x184
342   // set the SR13 to something sensible
343   temp16[(base) /2] = 0x00D3; base += 2;
344   temp16[(base) /2] = 0xE3A0; base += 2;
345   temp16[(base) /2] = 0xF000; base += 2;
346   temp16[(base) /2] = 0xE121; base += 2;
347   temp16[(base) /2] = 0x4001; base += 2;
348   temp16[(base) /2] = 0xE3A0; base += 2;
349   temp16[(base) /2] = 0x4B06; base += 2;
350   temp16[(base) /2] = 0xE284; base += 2;
351   temp16[(base) /2] = 0x0CF2; base += 2;
352   temp16[(base) /2] = 0xE3A0; base += 2;
353   temp16[(base) /2] = 0xD804; base += 2;
354   temp16[(base) /2] = 0xE080; base += 2;
355
356   temp16[(base) /2] = 0x0013; base += 2;
357   temp16[(base) /2] = 0xE3A0; base += 2;
358   temp16[(base) /2] = 0xF000; base += 2;
359   temp16[(base) /2] = 0xE121; base += 2;
360
361
362
363   temp16[(base) /2] = 0x0028; base += 2; // jump to 0x184
353364   temp16[(base) /2] = 0xEA00; base += 2;
354365
355366
r26150r26151
412423
413424   // this is the location of the region in the internal rom, for some reaosn Japan doesn't play attract music (original game feature? bad code flow?)
414425   base = 0x3316;
415   temp16[(base) / 2] = 0x0005; base += 2;
426   temp16[(base) / 2] = 0x0006; base += 2;
416427
417428
418429#if 0

Previous 199869 Revisions Next


© 1997-2024 The MAME Team