Silly DSP code removed, should fix a lot of games (including EWJ2) [pagefault]. Removed now useless EWJ2 hacks.

This commit is contained in:
grinvader
2006-02-27 17:32:09 +00:00
parent a5211e5b27
commit d6050ad3f3
3 changed files with 0 additions and 33 deletions

View File

@@ -1154,19 +1154,11 @@ section .data
.fname2 db 9,'vram2.dat',0
section .text
section .data
NEWSYM ewj2hack, dd 0
section .text
NEWSYM hdmatype2indirect
cmp dword[ewj2hack],1
jne near .notend
cmp byte[esi+1],40h ; Writing to spc
jne near .notend
cmp byte[esi+10],0DAh ; first transfer
jne near .notend
; EWJ2 HACK
; int 3h
push eax
push ebx
push ecx

View File

@@ -4519,25 +4519,11 @@ NEWSYM EchoStereo
mov dword[Voice0IncNumber+%1*4],0
mov byte[Voice0Status+%1],0
mov byte[Voice0State+%1],0
; cmp byte[ENVDisable],1
; je %%noSkipStuff
;%%noSkipStuff
mov byte[DSPMem+08h+%1*10h],0
mov byte[DSPMem+09h+%1*10h],0
or byte[DSPMem+7Ch],%3
%%SkipStuff
jmp %2
%%EndofSamp2
mov dword[Voice0EnvInc+%1*4],0
mov dword[Voice0IncNumber+%1*4],0
mov byte[Voice0State+%1],0
cmp byte[ENVDisable],1
je %%noSkipStuff2
%%noSkipStuff2
mov byte[DSPMem+08h+%1*10h],0
mov byte[DSPMem+09h+%1*10h],0
or byte[DSPMem+7Ch],%3
%%SkipStuff2
mov al,%1
call VoiceStarter
jmp %%SkipProcess2

View File

@@ -1439,7 +1439,6 @@ extern unsigned char opexec358cph;
extern unsigned char opexec268cphb;
extern unsigned char opexec358cphb;
extern unsigned char DSP1Type;
extern unsigned int ewj2hack;
extern unsigned char cycpl;
unsigned char HacksDisable;
@@ -1634,16 +1633,6 @@ void headerhack()
//Okaaay...
if(DSP1Type) { disablehdma = true; }
//Earthworm Jim 2 (all regions?)
if (!strncmp((RomData+Lo),"EARTHWORM JIM 2 " ,20))
{
RomData[0x2A9C1A] = 0;
RomData[0x2A9C1B] = 0;
RomData[0x2A9C1F] = 0;
RomData[0x2A9C20] = 0;
ewj2hack = true;
}
//Lamborghini - American Challenge (U/E)
if (!strncmp((RomData+Lo), "LAMBORGHINI AMERICAN", 20))
{