From 751c6fe4e2bc17d10b237c1ea4812b2e94437788 Mon Sep 17 00:00:00 2001 From: pagefault <> Date: Wed, 31 Dec 2003 00:56:06 +0000 Subject: [PATCH] Fixed SPC initialization issue, fixes Panic Bomber Worlds and others --- zsnes/src/init.asm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/zsnes/src/init.asm b/zsnes/src/init.asm index 62582d81..b7513350 100644 --- a/zsnes/src/init.asm +++ b/zsnes/src/init.asm @@ -114,7 +114,7 @@ EXTSYM ScrDispl,wramreadptr,wramwriteptr EXTSYM pl1Ltk,pl1Rtk,pl2Ltk,pl2Rtk,pl3Ltk,pl3Rtk,pl4Ltk,pl4Rtk,pl5Ltk,pl5Rtk EXTSYM loadstate2, headerhack ;initc.c -EXTSYM clearmem +EXTSYM clearmem,clearmem2 EXTSYM PatchUsingIPS EXTSYM loadZipFile EXTSYM ZOpenFileName @@ -1485,6 +1485,11 @@ NEWSYM init65816 cmp esi,040h jne .loopa + ; Clear SPC Memory + pushad + call clearmem2 + popad + ; Clear Sound buffer mov edi,[spcBuffera] mov ecx,65536