Less useless spaces, spc700 init to ffc0 (byuu), earthbound fix (pagefault).
This commit is contained in:
@@ -618,7 +618,6 @@ NEWSYM AdjustFrequency
|
|||||||
|
|
||||||
cmp byte[SBHDMA],0
|
cmp byte[SBHDMA],0
|
||||||
je .not16bit
|
je .not16bit
|
||||||
; mov eax,dword [SBToSPCSpeeds2+ecx*4] ; redundant
|
|
||||||
.vibrafix
|
.vibrafix
|
||||||
mov eax,dword[SBToSPCSpeeds2+ecx*4]
|
mov eax,dword[SBToSPCSpeeds2+ecx*4]
|
||||||
.not16bit
|
.not16bit
|
||||||
@@ -705,7 +704,7 @@ NEWSYM InitSPC
|
|||||||
xor eax,eax
|
xor eax,eax
|
||||||
xor ebx,ebx
|
xor ebx,ebx
|
||||||
mov ebp,spcRam
|
mov ebp,spcRam
|
||||||
mov ax,0FFC9h
|
mov ax,0FFC0h
|
||||||
add ebp,eax
|
add ebp,eax
|
||||||
mov [spcPCRam],ebp
|
mov [spcPCRam],ebp
|
||||||
mov dword[spcS],1EFh
|
mov dword[spcS],1EFh
|
||||||
@@ -5377,33 +5376,13 @@ NEWSYM LPFexit
|
|||||||
mov edx,[esi+4]
|
mov edx,[esi+4]
|
||||||
add edx,eax
|
add edx,eax
|
||||||
sar edx,1
|
sar edx,1
|
||||||
|
|
||||||
sub eax,edx
|
sub eax,edx
|
||||||
; shl eax,1
|
|
||||||
|
|
||||||
mov ebx,[esi+4]
|
mov ebx,[esi+4]
|
||||||
sub [esi+4],eax
|
sub [esi+4],eax
|
||||||
|
|
||||||
sub ebx,edx
|
sub ebx,edx
|
||||||
; shl ebx,1
|
|
||||||
|
|
||||||
sub [esi],ebx
|
sub [esi],ebx
|
||||||
|
|
||||||
; sar dword[esi],1
|
|
||||||
; sar dword[esi+4],1
|
|
||||||
|
|
||||||
; mov eax,[esi]
|
|
||||||
; mov edx,[esi+4]
|
|
||||||
; add edx,eax
|
|
||||||
; sar edx,1
|
|
||||||
|
|
||||||
; add [esi],edx
|
|
||||||
; add [esi+4],edx
|
|
||||||
|
|
||||||
add esi,8
|
add esi,8
|
||||||
dec ecx
|
dec ecx
|
||||||
jnz .loop
|
jnz .loop
|
||||||
.nosurround
|
.nosurround
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -380,7 +380,7 @@ NEWSYM GUIDoReset
|
|||||||
|
|
||||||
xor eax,eax
|
xor eax,eax
|
||||||
mov edx,spcRam
|
mov edx,spcRam
|
||||||
mov ax,0FFC9h
|
mov ax,0FFC0h
|
||||||
add edx,eax
|
add edx,eax
|
||||||
mov [spcPCRam],edx
|
mov [spcPCRam],edx
|
||||||
mov dword[spcS],1EFh
|
mov dword[spcS],1EFh
|
||||||
|
|||||||
@@ -2575,8 +2575,8 @@ drawsprng16bt:
|
|||||||
xor eax,eax
|
xor eax,eax
|
||||||
test byte[BGMS1+ebx*2+1],10h
|
test byte[BGMS1+ebx*2+1],10h
|
||||||
jnz near drawsprng16bmst
|
jnz near drawsprng16bmst
|
||||||
test byte[BGMS1+ebx*2],04h
|
test byte[BGMS1+ebx*2+1],04h
|
||||||
jz .main
|
jnz .main
|
||||||
mov edi,[CMainWinScr]
|
mov edi,[CMainWinScr]
|
||||||
cmp byte[edi+ebx+4*256],0
|
cmp byte[edi+ebx+4*256],0
|
||||||
jne near drawsprngw16bt
|
jne near drawsprngw16bt
|
||||||
|
|||||||
Reference in New Issue
Block a user