Some speedup for non DOS ports. Some cleanup.

This commit is contained in:
jbo_85
2006-02-15 01:11:01 +00:00
parent 58d169dae1
commit 241dda2e00
10 changed files with 33 additions and 51 deletions

View File

@@ -49,7 +49,7 @@ EXTSYM Op2BX,Op2BY,Op2BZ,Op2BS,DSPOp2B
EXTSYM Op08X,Op08Y,Op08Z,Op08Ll,Op08Lh,DSPOp08 EXTSYM Op08X,Op08Y,Op08Z,Op08Ll,Op08Lh,DSPOp08
EXTSYM Op18X,Op18Y,Op18Z,Op18R,Op18D,DSPOp18 EXTSYM Op18X,Op18Y,Op18Z,Op18R,Op18D,DSPOp18
EXTSYM Op1CX,Op1CY,Op1CZ,Op1CXBR,Op1CYBR,Op1CZBR,Op1CXAR,Op1CYAR,Op1CZAR,DSPOp1C EXTSYM Op1CX,Op1CY,Op1CZ,Op1CXBR,Op1CYBR,Op1CZBR,Op1CXAR,Op1CYAR,Op1CZAR,DSPOp1C
EXTSYM Op10Exponent,Op10ExponentR,Op10Coefficient,Op10CoefficientR
SECTION .bss SECTION .bss
NEWSYM dsp1ptr, resd 1 NEWSYM dsp1ptr, resd 1
@@ -340,9 +340,6 @@ DSP1_00: ; 16-bit multiply
pop eax pop eax
ret ret
EXTSYM Op10Exponent, Op10ExponentR
EXTSYM Op10Coefficient, Op10CoefficientR
DSP1_10: ; Inverse DSP1_10: ; Inverse
push eax push eax
mov ax,[DSP1VARS] mov ax,[DSP1VARS]

View File

@@ -48,7 +48,7 @@ EXTSYM Get_Time,Get_TimeDate,spc7110romptr,SPC7110Entries,SPC7110IndexSize
EXTSYM SPC7110nfname,SPC7110filep,SPC7_Convert_Upper,SPC7_Convert_Lower EXTSYM SPC7110nfname,SPC7110filep,SPC7_Convert_Upper,SPC7_Convert_Lower
EXTSYM Open_File,Close_File,Read_File,File_Seek,irqv2,irqv,nmiv2,nmiv,snesmmap EXTSYM Open_File,Close_File,Read_File,File_Seek,irqv2,irqv,nmiv2,nmiv,snesmmap
EXTSYM snesmap2,curypos,CurrentExecSA1,memaccessbankr8sdd1,memtabler8,AddrNoIncr EXTSYM snesmap2,curypos,CurrentExecSA1,memaccessbankr8sdd1,memtabler8,AddrNoIncr
EXTSYM NumofBanks EXTSYM NumofBanks,BWUsed2
%include "cpu/regs.mac" %include "cpu/regs.mac"
%include "cpu/regsw.mac" %include "cpu/regsw.mac"
@@ -1825,7 +1825,6 @@ NEWSYM sa12224w ; BWRAM
.nosnes .nosnes
ret ret
NEWSYM sa12225w ; BWRAM NEWSYM sa12225w ; BWRAM
EXTSYM BWUsed2
mov [BWUsed2],al mov [BWUsed2],al
test al,80h test al,80h
jnz .upper jnz .upper

View File

@@ -20,11 +20,11 @@
%include "macros.mac" %include "macros.mac"
EXTSYM setaramdata,ST010DoCommand
SECTION .data SECTION .data
NEWSYM SetaCmdEnable, dd 0 ; Seta ST010/ST011 command enable register. Maybe also status. NEWSYM SetaCmdEnable, dd 0 ; Seta ST010/ST011 command enable register. Maybe also status.
SECTION .text SECTION .text
EXTSYM setaramdata
EXTSYM ST010DoCommand
;; TODO - should return ROM for > 8000h ;; TODO - should return ROM for > 8000h
NEWSYM setaaccessbankr8 NEWSYM setaaccessbankr8

View File

@@ -22,7 +22,7 @@
EXTSYM memtabler8,regptw,snesmap2,snesmmap,memtablew8,regptr,memtabler16 EXTSYM memtabler8,regptw,snesmap2,snesmmap,memtablew8,regptr,memtabler16
EXTSYM dmadata,hdmatype,nexthdma,resolutn,curhdma,curypos,disablehdma,hdmadata EXTSYM dmadata,hdmatype,nexthdma,resolutn,curhdma,curypos,disablehdma,hdmadata
EXTSYM hdmadelay,hdmarestart,nohdmaframe EXTSYM hdmadelay,hdmarestart,nohdmaframe,SPCRAM
;******************************************************* ;*******************************************************
; Transfer DMA Inits & Transfers DMA ; Transfer DMA Inits & Transfers DMA
@@ -1154,7 +1154,6 @@ section .data
.fname2 db 9,'vram2.dat',0 .fname2 db 9,'vram2.dat',0
section .text section .text
EXTSYM SPCRAM
section .data section .data
NEWSYM ewj2hack, dd 0 NEWSYM ewj2hack, dd 0
section .text section .text

View File

@@ -20,12 +20,11 @@
EXTSYM Sflagnz,Sflago,Sflagc,dmadata,IRAM EXTSYM Sflagnz,Sflago,Sflagc,dmadata,IRAM,debuggeron
;******************************************************* ;*******************************************************
; Flag Setting Macros ; Flag Setting Macros
;******************************************************* ;*******************************************************
EXTSYM debuggeron
%macro endloop 0 %macro endloop 0
; call sa1debug ; call sa1debug

View File

@@ -94,6 +94,15 @@ NEWSYM SystemInit
push es push es
call getcmdline 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 ; Get and set the initial directory
mov ebx,InitDir mov ebx,InitDir
mov edx,InitDrive mov edx,InitDrive

View File

@@ -203,36 +203,15 @@ NEWSYM getcmdline
.next .next
inc eax inc eax
jmp .next2 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 .nfound
mov edx,.stringnf mov edx,.stringnf
call PrintStr call PrintStr
mov esi,CMDLineStr mov esi,CMDLineStr
.nomore
mov [FilenameStart],esi 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],'data'
mov dword[esi+4+512],'.cmb' mov dword[esi+512+4],'.cmb'
mov byte[esi+8+512],0 mov byte[esi+512+8],0
ret ret
SECTION .data SECTION .data