Some speedup for non DOS ports. Some cleanup.
This commit is contained in:
@@ -49,7 +49,7 @@ EXTSYM Op2BX,Op2BY,Op2BZ,Op2BS,DSPOp2B
|
||||
EXTSYM Op08X,Op08Y,Op08Z,Op08Ll,Op08Lh,DSPOp08
|
||||
EXTSYM Op18X,Op18Y,Op18Z,Op18R,Op18D,DSPOp18
|
||||
EXTSYM Op1CX,Op1CY,Op1CZ,Op1CXBR,Op1CYBR,Op1CZBR,Op1CXAR,Op1CYAR,Op1CZAR,DSPOp1C
|
||||
|
||||
EXTSYM Op10Exponent,Op10ExponentR,Op10Coefficient,Op10CoefficientR
|
||||
|
||||
SECTION .bss
|
||||
NEWSYM dsp1ptr, resd 1
|
||||
@@ -340,9 +340,6 @@ DSP1_00: ; 16-bit multiply
|
||||
pop eax
|
||||
ret
|
||||
|
||||
EXTSYM Op10Exponent, Op10ExponentR
|
||||
EXTSYM Op10Coefficient, Op10CoefficientR
|
||||
|
||||
DSP1_10: ; Inverse
|
||||
push eax
|
||||
mov ax,[DSP1VARS]
|
||||
|
||||
@@ -48,7 +48,7 @@ EXTSYM Get_Time,Get_TimeDate,spc7110romptr,SPC7110Entries,SPC7110IndexSize
|
||||
EXTSYM SPC7110nfname,SPC7110filep,SPC7_Convert_Upper,SPC7_Convert_Lower
|
||||
EXTSYM Open_File,Close_File,Read_File,File_Seek,irqv2,irqv,nmiv2,nmiv,snesmmap
|
||||
EXTSYM snesmap2,curypos,CurrentExecSA1,memaccessbankr8sdd1,memtabler8,AddrNoIncr
|
||||
EXTSYM NumofBanks
|
||||
EXTSYM NumofBanks,BWUsed2
|
||||
|
||||
%include "cpu/regs.mac"
|
||||
%include "cpu/regsw.mac"
|
||||
@@ -1825,7 +1825,6 @@ NEWSYM sa12224w ; BWRAM
|
||||
.nosnes
|
||||
ret
|
||||
NEWSYM sa12225w ; BWRAM
|
||||
EXTSYM BWUsed2
|
||||
mov [BWUsed2],al
|
||||
test al,80h
|
||||
jnz .upper
|
||||
|
||||
@@ -20,11 +20,11 @@
|
||||
|
||||
%include "macros.mac"
|
||||
|
||||
EXTSYM setaramdata,ST010DoCommand
|
||||
|
||||
SECTION .data
|
||||
NEWSYM SetaCmdEnable, dd 0 ; Seta ST010/ST011 command enable register. Maybe also status.
|
||||
SECTION .text
|
||||
EXTSYM setaramdata
|
||||
EXTSYM ST010DoCommand
|
||||
|
||||
;; TODO - should return ROM for > 8000h
|
||||
NEWSYM setaaccessbankr8
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
EXTSYM memtabler8,regptw,snesmap2,snesmmap,memtablew8,regptr,memtabler16
|
||||
EXTSYM dmadata,hdmatype,nexthdma,resolutn,curhdma,curypos,disablehdma,hdmadata
|
||||
EXTSYM hdmadelay,hdmarestart,nohdmaframe
|
||||
EXTSYM hdmadelay,hdmarestart,nohdmaframe,SPCRAM
|
||||
|
||||
;*******************************************************
|
||||
; Transfer DMA Inits & Transfers DMA
|
||||
@@ -1154,7 +1154,6 @@ section .data
|
||||
.fname2 db 9,'vram2.dat',0
|
||||
section .text
|
||||
|
||||
EXTSYM SPCRAM
|
||||
section .data
|
||||
NEWSYM ewj2hack, dd 0
|
||||
section .text
|
||||
|
||||
@@ -20,12 +20,11 @@
|
||||
|
||||
|
||||
|
||||
EXTSYM Sflagnz,Sflago,Sflagc,dmadata,IRAM
|
||||
EXTSYM Sflagnz,Sflago,Sflagc,dmadata,IRAM,debuggeron
|
||||
|
||||
;*******************************************************
|
||||
; Flag Setting Macros
|
||||
;*******************************************************
|
||||
EXTSYM debuggeron
|
||||
|
||||
%macro endloop 0
|
||||
; call sa1debug
|
||||
|
||||
@@ -94,6 +94,15 @@ NEWSYM SystemInit
|
||||
push es
|
||||
call getcmdline
|
||||
|
||||
mov dword[esi],'zsne'
|
||||
mov dword[esi+4],'s.cf'
|
||||
mov byte[esi+8],'g'
|
||||
mov byte[esi+9],0
|
||||
mov dword[esi+256],'zgui'
|
||||
mov dword[esi+256+4],'cfg.'
|
||||
mov dword[esi+256+8],'dat '
|
||||
mov byte[esi+256+11],0
|
||||
|
||||
; Get and set the initial directory
|
||||
mov ebx,InitDir
|
||||
mov edx,InitDrive
|
||||
|
||||
@@ -203,36 +203,15 @@ NEWSYM getcmdline
|
||||
.next
|
||||
inc eax
|
||||
jmp .next2
|
||||
.nomore
|
||||
mov [FilenameStart],esi
|
||||
mov dword[esi],'zsne'
|
||||
mov dword[esi+4],'s.cf'
|
||||
mov byte[esi+8],'g'
|
||||
mov byte[esi+9],0
|
||||
mov dword[esi+256],'zgui'
|
||||
mov dword[esi+256+4],'cfg.'
|
||||
mov dword[esi+256+8],'dat '
|
||||
mov byte[esi+256+11],0
|
||||
mov dword[esi+512],'data'
|
||||
mov dword[esi+512+4],'.cmb'
|
||||
mov byte[esi+512+8],0
|
||||
ret
|
||||
.nfound
|
||||
mov edx,.stringnf
|
||||
call PrintStr
|
||||
mov esi,CMDLineStr
|
||||
.nomore
|
||||
mov [FilenameStart],esi
|
||||
mov dword[esi],'zsne'
|
||||
mov dword[esi+4],'s.cf'
|
||||
mov byte[esi+8],'g'
|
||||
mov byte[esi+9],0
|
||||
mov dword[esi+256],'zgui'
|
||||
mov dword[esi+256+4],'cfg.'
|
||||
mov dword[esi+256+8],'dat '
|
||||
mov byte[esi+256+11],0
|
||||
mov dword[esi+512],'data'
|
||||
mov dword[esi+4+512],'.cmb'
|
||||
mov byte[esi+8+512],0
|
||||
mov dword[esi+512+4],'.cmb'
|
||||
mov byte[esi+512+8],0
|
||||
ret
|
||||
|
||||
SECTION .data
|
||||
|
||||
Reference in New Issue
Block a user