Removed another unused var, yay for code cleanup and miniscule speed improvements.
This commit is contained in:
@@ -2213,17 +2213,9 @@ NEWSYM WDSPReg6B ; Voice 6
|
|||||||
mov [DSPMem+06Bh],al
|
mov [DSPMem+06Bh],al
|
||||||
ret
|
ret
|
||||||
|
|
||||||
SECTION .bss
|
|
||||||
NEWSYM spcres, resb 1
|
|
||||||
SECTION .text
|
|
||||||
|
|
||||||
NEWSYM WDSPReg6C ; Voice 6
|
NEWSYM WDSPReg6C ; Voice 6
|
||||||
mov [DSPMem+06Ch],al
|
mov [DSPMem+06Ch],al
|
||||||
and byte [DSPMem+06Ch],7Fh
|
and byte [DSPMem+06Ch],7Fh
|
||||||
test al,128
|
|
||||||
jz .NoRes
|
|
||||||
inc byte[spcres]
|
|
||||||
.NoRes
|
|
||||||
test al,0C0h
|
test al,0C0h
|
||||||
jz .NoRes2
|
jz .NoRes2
|
||||||
mov byte[Voice0Status],0
|
mov byte[Voice0Status],0
|
||||||
|
|||||||
@@ -327,6 +327,7 @@ static void state_size_tally(unsigned char **dest, void *src, size_t len)
|
|||||||
{
|
{
|
||||||
state_size += len;
|
state_size += len;
|
||||||
}
|
}
|
||||||
|
|
||||||
void InitRewindVars()
|
void InitRewindVars()
|
||||||
{
|
{
|
||||||
#ifndef __MSDOS__ //When all the code is ported to C, we can make this work with DOS too
|
#ifndef __MSDOS__ //When all the code is ported to C, we can make this work with DOS too
|
||||||
@@ -433,7 +434,7 @@ extern signed int FIRTAPVal5, FIRTAPVal6, FIRTAPVal7;
|
|||||||
extern unsigned short VolumeConvTable[32768], bg1ptr, bg1ptrb, bg1ptrc;
|
extern unsigned short VolumeConvTable[32768], bg1ptr, bg1ptrb, bg1ptrc;
|
||||||
extern unsigned short bg2ptr, bg2ptrb, bg2ptrc, bg3ptr, bg3ptrb, bg3ptrc;
|
extern unsigned short bg2ptr, bg2ptrb, bg2ptrc, bg3ptr, bg3ptrb, bg3ptrc;
|
||||||
extern unsigned short bg4ptr, bg4ptrb, bg4ptrc;
|
extern unsigned short bg4ptr, bg4ptrb, bg4ptrc;
|
||||||
extern unsigned char VolumeTableb[256], MusicVol, spcres, Voice0Status;
|
extern unsigned char VolumeTableb[256], MusicVol, Voice0Status;
|
||||||
extern unsigned char Voice1Status, Voice2Status, Voice3Status, Voice4Status;
|
extern unsigned char Voice1Status, Voice2Status, Voice3Status, Voice4Status;
|
||||||
extern unsigned char Voice5Status, Voice6Status, Voice7Status, Voice0Noise;
|
extern unsigned char Voice5Status, Voice6Status, Voice7Status, Voice0Noise;
|
||||||
extern unsigned char Voice1Noise, Voice2Noise, Voice3Noise, Voice4Noise;
|
extern unsigned char Voice1Noise, Voice2Noise, Voice3Noise, Voice4Noise;
|
||||||
@@ -488,8 +489,6 @@ void repackfunct()
|
|||||||
block = DSPMem[0x6C];
|
block = DSPMem[0x6C];
|
||||||
DSPMem[0x6C] &= 0x7F;
|
DSPMem[0x6C] &= 0x7F;
|
||||||
|
|
||||||
if (block && 0x80) { spcres++; }
|
|
||||||
|
|
||||||
if (block && 0xC0)
|
if (block && 0xC0)
|
||||||
{
|
{
|
||||||
Voice0Status = Voice1Status = Voice2Status = Voice3Status = 0;
|
Voice0Status = Voice1Status = Voice2Status = Voice3Status = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user