From 0c27b17faccb34367d350b59079155324f52cfd1 Mon Sep 17 00:00:00 2001 From: z_demo_z <> Date: Thu, 27 Jun 2002 17:47:12 +0000 Subject: [PATCH] Special timing for Cyber Knight 2 because it jumps in invalid code on spc if communication registers are not set at the same time --- zsnes/src/init.asm | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/zsnes/src/init.asm b/zsnes/src/init.asm index 66641464..48e4cc83 100644 --- a/zsnes/src/init.asm +++ b/zsnes/src/init.asm @@ -1464,6 +1464,23 @@ NEWSYM headerhack mov byte[ENVDisable],0 mov byte[MMXSRAMFix],0 + mov esi,[romdata] + add esi,07FC0h + cmp dword[esi],'CYBE' + jne .notcyberknight2 + cmp dword[esi+4],'R KN' + jne .notcyberknight2 + cmp dword[esi+8],'IGHT' + jne .notcyberknight2 + cmp dword[esi+12],' 2 ' + mov byte[cycpb268],75 + mov byte[cycpb358],77 + mov byte[cycpbl2],75 + mov byte[cycpblt2],75 + mov byte[cycpbl],75 + mov byte[cycpblt],75 +.notcyberknight2 + mov esi,[romdata] add esi,07FC0h cmp dword[esi],0B4B1DEC3h