Pruning of ~6 years of useless EXTSYMs *whew*. Better code in zstate.c, should fix the 'dash issue'.
This commit is contained in:
@@ -18,14 +18,13 @@
|
|||||||
;along with this program; if not, write to the Free Software
|
;along with this program; if not, write to the Free Software
|
||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM regaccessbankr8,regaccessbankr16,regaccessbankw8,regaccessbankw16
|
EXTSYM regaccessbankr8,regaccessbankr16,regaccessbankw8,regaccessbankw16
|
||||||
EXTSYM DSPOp0A,Op0AA,Op0AB,Op0AC,Op0AD,Op0AVS,DSPOp10
|
EXTSYM DSPOp0A,Op0AA,Op0AB,Op0AC,Op0AD,Op0AVS,DSPOp10,DSPOp00,Op00Multiplicand
|
||||||
EXTSYM debstop
|
EXTSYM Op00Multiplier,Op00Result,DSPOp0F,Op0FPass
|
||||||
EXTSYM DSPOp00,Op00Multiplicand,Op00Multiplier
|
|
||||||
EXTSYM Op00Result
|
|
||||||
EXTSYM DSPOp0F,Op0FPass
|
|
||||||
EXTSYM DSPOp04,Op04Angle,Op04Cos,Op04Radius,Op04Sin
|
EXTSYM DSPOp04,Op04Angle,Op04Cos,Op04Radius,Op04Sin
|
||||||
EXTSYM DSPOp28,Op28R,Op28X,Op28Y,Op28Z
|
EXTSYM DSPOp28,Op28R,Op28X,Op28Y,Op28Z
|
||||||
EXTSYM DSPOp0C,Op0CA,Op0CX1,Op0CX2,Op0CY1,Op0CY2
|
EXTSYM DSPOp0C,Op0CA,Op0CX1,Op0CX2,Op0CY1,Op0CY2
|
||||||
@@ -882,6 +881,3 @@ DSP1_14: ; 3D angle rotation
|
|||||||
mov byte[DSP1RLeft],3
|
mov byte[DSP1RLeft],3
|
||||||
pop eax
|
pop eax
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -28,9 +28,9 @@
|
|||||||
; Command 05h fixed.
|
; Command 05h fixed.
|
||||||
; when you got the magic missile damage such as fireball, DSP2 support in prior version entered halt state.
|
; when you got the magic missile damage such as fireball, DSP2 support in prior version entered halt state.
|
||||||
|
|
||||||
%include "macros.mac"
|
|
||||||
|
|
||||||
EXTSYM regaccessbankr8,regaccessbankr16,regaccessbankw8,regaccessbankw16
|
|
||||||
|
%include "macros.mac"
|
||||||
|
|
||||||
DSP2F_HALT equ 1
|
DSP2F_HALT equ 1
|
||||||
DSP2F_AUTO_BUFFER_SHIFT equ 2
|
DSP2F_AUTO_BUFFER_SHIFT equ 2
|
||||||
@@ -609,5 +609,3 @@ NEWSYM DSP2Write16b
|
|||||||
xor eax,eax
|
xor eax,eax
|
||||||
.leave
|
.leave
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -193,8 +193,7 @@ EXTSYM FxOpd4C1284b,FxOpd4C1284bz,FxOpd4C1284bd,FxOpd4C1284bzd
|
|||||||
EXTSYM FxOpd4C1282b,FxOpd4C1282bz,FxOpd4C1282bd,FxOpd4C1282bzd
|
EXTSYM FxOpd4C1282b,FxOpd4C1282bz,FxOpd4C1282bd,FxOpd4C1282bzd
|
||||||
EXTSYM FxOpd4C1288b,FxOpd4C1288bz,FxOpd4C1288bd,FxOpd4C1288bzd
|
EXTSYM FxOpd4C1288b,FxOpd4C1288bz,FxOpd4C1288bd,FxOpd4C1288bzd
|
||||||
EXTSYM FxOpd4C1288bl,FxOpd4C1288bzl,FxOpd4C1288bdl,FxOpd4C1288bzdl
|
EXTSYM FxOpd4C1288bl,FxOpd4C1288bzl,FxOpd4C1288bdl,FxOpd4C1288bzdl
|
||||||
EXTSYM fxxand,fxbit01,fxbit23,fxbit45,fxbit67
|
EXTSYM fxxand,fxbit01
|
||||||
|
|
||||||
|
|
||||||
SECTION .bss
|
SECTION .bss
|
||||||
NEWSYM sfx128lineloc, resd 1
|
NEWSYM sfx128lineloc, resd 1
|
||||||
@@ -203,17 +202,8 @@ NEWSYM sfx192lineloc, resd 1
|
|||||||
NEWSYM sfxobjlineloc, resd 1
|
NEWSYM sfxobjlineloc, resd 1
|
||||||
SECTION .text
|
SECTION .text
|
||||||
|
|
||||||
|
|
||||||
NEWSYM InitFxTables
|
NEWSYM InitFxTables
|
||||||
|
|
||||||
; cmp al,0
|
|
||||||
; je near .colors4
|
|
||||||
; cmp al,3
|
|
||||||
; je near .colors256
|
|
||||||
; test byte[SfxPOR],01h
|
|
||||||
; jz .zerocheck
|
|
||||||
; test byte[SfxPOR],02h
|
|
||||||
; jz .nodither4b
|
|
||||||
; Initiate PLOT jump tables
|
; Initiate PLOT jump tables
|
||||||
xor ebx,ebx
|
xor ebx,ebx
|
||||||
mov ecx,64
|
mov ecx,64
|
||||||
|
|||||||
@@ -18,16 +18,15 @@
|
|||||||
;along with this program; if not, write to the Free Software
|
;along with this program; if not, write to the Free Software
|
||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM xa,xx,xy,xd,xdb,xpb,xs,xe,initaddrl,UpdateDPage,wramdata,IRAM,cycpbl,SA1DoIRQ
|
EXTSYM initaddrl,wramdata,IRAM,SA1DoIRQ,nextopcodesa1,debugds,SNSRegP,SNSRegPCS
|
||||||
EXTSYM spcnumread,spchalted,SA1IRQEn,nextopcodesa1,debugds
|
EXTSYM SA1Ptr,SNSPtr,snesmap2,SA1tablead,SA1xpb,SA1RegP,wramdataa,SA1TimerVal
|
||||||
EXTSYM SNSRegP,SNSRegE,SNSRegPCS,SA1Ptr,SNSPtr,nmiv,irqv,nmiv2,irqv2,snesmap2,SA1tablead
|
EXTSYM debuggeron,SA1RegPCS,SA1BWPtr,SNSBWPtr,CurBWPtr,SA1NMIV,SA1IRQV
|
||||||
EXTSYM SA1xpb,SA1RegP,wramdataa,SA1TimerVal,debuggeron
|
EXTSYM membank0w8,SA1LBound,SA1UBound,SA1SH,SA1SHb,stackor,stackand,snesmmap
|
||||||
EXTSYM SA1RegE,SA1RegPCS,SA1BWPtr,SNSBWPtr,CurBWPtr,SA1NMIV,SA1IRQV,debstop,tablead
|
EXTSYM SA1xs,SA1IRQExec,SA1Message,Sflagnz,Sflagc,Sflago
|
||||||
EXTSYM membank0w8,romdata,SA1LBound,SA1UBound,SA1SH,SA1SHb
|
|
||||||
EXTSYM stackor,stackand,snesmmap,SA1xs,SA1IRQExec
|
|
||||||
EXTSYM SA1Message,Sflagnz,Sflagc,Sflago
|
|
||||||
|
|
||||||
; In exec loop, jump to execloop if SA1Status != 0
|
; In exec loop, jump to execloop if SA1Status != 0
|
||||||
; *** Disable spc700 if possible ***
|
; *** Disable spc700 if possible ***
|
||||||
@@ -364,6 +363,3 @@ NEWSYM SA1switchtovirq
|
|||||||
mov [initaddrl],esi
|
mov [initaddrl],esi
|
||||||
add esi,eax
|
add esi,eax
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -40,21 +40,14 @@
|
|||||||
; I forgot which part.
|
; I forgot which part.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM regptr,regptw,romdata,SA1Status,debstop4,SDD1BankA,curromsize
|
EXTSYM regptr,regptw,romdata,SA1Status,debstop4,SDD1BankA,curromsize,debuggeron
|
||||||
EXTSYM debuggeron
|
EXTSYM Get_Time,Get_TimeDate,spc7110romptr,SPC7110Entries,SPC7110IndexSize
|
||||||
EXTSYM Get_Time,Get_TimeDate
|
EXTSYM SPC7110nfname,SPC7110filep,SPC7_Convert_Upper,SPC7_Convert_Lower
|
||||||
EXTSYM spc7110romptr,SPC7110Entries
|
EXTSYM Open_File,Close_File,Read_File,File_Seek,irqv2,irqv,nmiv2,nmiv,snesmmap
|
||||||
EXTSYM SPC7110IndexSize,SPC7110nfname,SPC7110filep
|
EXTSYM snesmap2,curypos,CurrentExecSA1,memaccessbankr8sdd1,memtabler8,AddrNoIncr
|
||||||
EXTSYM SPC7_Convert_Upper,SPC7_Convert_Lower
|
|
||||||
EXTSYM Open_File,Close_File,Read_File,File_Seek
|
|
||||||
; EXTSYM Msgptr,MessageOn
|
|
||||||
EXTSYM irqv2,irqv,nmiv2,nmiv
|
|
||||||
EXTSYM snesmmap,snesmap2
|
|
||||||
EXTSYM curypos,CurrentExecSA1
|
|
||||||
EXTSYM debstop3
|
|
||||||
EXTSYM memaccessbankr8sdd1,memtabler8,AddrNoIncr
|
|
||||||
EXTSYM NumofBanks
|
EXTSYM NumofBanks
|
||||||
|
|
||||||
%include "cpu/regs.mac"
|
%include "cpu/regs.mac"
|
||||||
@@ -2651,5 +2644,3 @@ NEWSYM sdd14801w
|
|||||||
pop ebx
|
pop ebx
|
||||||
pop eax
|
pop eax
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -19,13 +19,8 @@
|
|||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
EXTSYM flagnz, flago, flagc, execloopdeb
|
|
||||||
EXTSYM Sjoinflags,Ssplitflags,SA1RegP
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
EXTSYM flagnz,flago,flagc,execloopdeb,Sjoinflags,Ssplitflags,SA1RegP
|
||||||
|
|
||||||
;*******************************************************
|
;*******************************************************
|
||||||
; Flag Setting Macros
|
; Flag Setting Macros
|
||||||
|
|||||||
@@ -19,13 +19,8 @@
|
|||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
EXTSYM flagnz, flago, flagc, cpucycle, doirqnext
|
|
||||||
EXTSYM dmadata
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
EXTSYM flagnz,flago,flagc,cpucycle,doirqnext,dmadata
|
||||||
|
|
||||||
;*******************************************************
|
;*******************************************************
|
||||||
; Flag Setting Macros
|
; Flag Setting Macros
|
||||||
|
|||||||
@@ -19,13 +19,8 @@
|
|||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
EXTSYM flagnz, flago, flagc, cpucycle, cycpbl, cycpblt, opcjmptab, doirqnext
|
|
||||||
EXTSYM dmadata
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
EXTSYM flagnz,flago,flagc,cpucycle,cycpbl,cycpblt,opcjmptab,doirqnext,dmadata
|
||||||
|
|
||||||
;*******************************************************
|
;*******************************************************
|
||||||
; Flag Setting Macros
|
; Flag Setting Macros
|
||||||
|
|||||||
@@ -18,11 +18,6 @@
|
|||||||
;along with this program; if not, write to the Free Software
|
;along with this program; if not, write to the Free Software
|
||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
EXTSYM membank0w8ram
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
;*******************************************************
|
;*******************************************************
|
||||||
|
|||||||
@@ -20,16 +20,9 @@
|
|||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM memtabler8,regptw,snesmap2,snesmmap,debstop3
|
EXTSYM memtabler8,regptw,snesmap2,snesmmap,memtablew8,regptr,memtabler16
|
||||||
;EXTSYM soundcycleft,pexecs2
|
EXTSYM dmadata,hdmatype,nexthdma,resolutn
|
||||||
EXTSYM memtablew8,regptr
|
|
||||||
EXTSYM dmadata
|
|
||||||
EXTSYM hdmatype
|
|
||||||
EXTSYM nexthdma
|
|
||||||
EXTSYM curhdma,curypos,disablehdma,hdmadata,hdmadelay,hdmaearlstart
|
EXTSYM curhdma,curypos,disablehdma,hdmadata,hdmadelay,hdmaearlstart
|
||||||
EXTSYM resolutn
|
|
||||||
EXTSYM memtabler16
|
|
||||||
|
|
||||||
|
|
||||||
;*******************************************************
|
;*******************************************************
|
||||||
; Transfer DMA Inits & Transfers DMA
|
; Transfer DMA Inits & Transfers DMA
|
||||||
|
|||||||
@@ -20,25 +20,21 @@
|
|||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM BRRPlace0,BRRPlace1,BRRPlace2,BRRPlace3,BRRPlace4,BRRPlace5,BRRPlace6
|
EXTSYM Decrease,DecreaseRateExp,EchoFB,EchoRate,EchoVL,EchoVR
|
||||||
EXTSYM BRRPlace7,Decrease,DecreaseRateExp,EchoFB,EchoRate,EchoVL,EchoVR
|
|
||||||
EXTSYM FIRTAPVal0,FIRTAPVal1,FIRTAPVal2,FIRTAPVal3,FIRTAPVal4,FIRTAPVal5
|
EXTSYM FIRTAPVal0,FIRTAPVal1,FIRTAPVal2,FIRTAPVal3,FIRTAPVal4,FIRTAPVal5
|
||||||
EXTSYM FIRTAPVal6,FIRTAPVal7,GlobalVL,GlobalVR,Increase,IncreaseBent
|
EXTSYM FIRTAPVal6,FIRTAPVal7,GlobalVL,GlobalVR,Increase
|
||||||
EXTSYM MaxEcho,MusicVol,NoiseInc,NoiseSpeeds,dspPAdj,Voice0End,Voice0EnvInc
|
EXTSYM MaxEcho,MusicVol,NoiseInc,NoiseSpeeds,dspPAdj,Voice0EnvInc
|
||||||
EXTSYM Voice0IncNumber,Voice0Loop,Voice0Noise,Voice0Prev0,Voice0Prev1
|
EXTSYM Voice0IncNumber,Voice0State,Voice0Time
|
||||||
EXTSYM Voice0Start,Voice0State,Voice0Status,Voice0Time,Voice1End,Voice1Noise
|
EXTSYM Voice0Start,Voice1Start,Voice2Start,Voice3Start
|
||||||
EXTSYM Voice1Prev0,Voice1Prev1,Voice1Start,Voice2End,Voice2Noise,Voice2Prev0
|
EXTSYM Voice4Start,Voice5Start,Voice6Start,Voice7Start
|
||||||
EXTSYM Voice2Prev1,Voice2Start,Voice3End,Voice3Noise,Voice3Prev0,Voice3Prev1
|
EXTSYM Voice0Noise,Voice1Noise,Voice2Noise,Voice3Noise
|
||||||
EXTSYM Voice3Start,Voice4End,Voice4Noise,Voice4Prev0,Voice4Prev1,Voice4Start
|
EXTSYM Voice4Noise,Voice5Noise,Voice6Noise,Voice7Noise
|
||||||
EXTSYM Voice5End,Voice5Noise,Voice5Prev0,Voice5Prev1,Voice5Start,Voice6End
|
EXTSYM VolumeConvTable,VolumeTableb,keyonsn
|
||||||
EXTSYM Voice6Noise,Voice6Prev0,Voice6Prev1,Voice6Start,Voice7End,Voice7Noise
|
EXTSYM Voice0Status,Voice1Status,Voice2Status,Voice3Status
|
||||||
EXTSYM Voice7Prev0,Voice7Prev1,Voice7Start,VolumeConvTable,VolumeTableb,keyonsn
|
EXTSYM Voice4Status,Voice5Status,Voice6Status,Voice7Status
|
||||||
EXTSYM RevStereo,Voice1Status,Voice2Status,Voice3Status,Voice4Status,Voice5Status
|
|
||||||
EXTSYM Voice6Status,Voice7Status
|
|
||||||
EXTSYM GainDecBendDataPos,GainDecBendDataTime,GainDecBendDataDat
|
EXTSYM GainDecBendDataPos,GainDecBendDataTime,GainDecBendDataDat
|
||||||
EXTSYM AdsrSustLevLoc,AdsrBlocksLeft,AdsrNextTimeDepth
|
EXTSYM AdsrSustLevLoc,AdsrBlocksLeft,AdsrNextTimeDepth
|
||||||
EXTSYM MuteVoiceF,VoiceStarter
|
EXTSYM MuteVoiceF,VoiceStarter,DecayRate,SustainRate
|
||||||
EXTSYM DecayRate,SustainRate,SustainValue
|
|
||||||
EXTSYM KeyOnStA,KeyOnStB,SoundTest
|
EXTSYM KeyOnStA,KeyOnStB,SoundTest
|
||||||
|
|
||||||
|
|
||||||
@@ -1542,20 +1538,14 @@ NEWSYM RDSPRegFF ;
|
|||||||
;Write DSP Registers functions
|
;Write DSP Registers functions
|
||||||
|
|
||||||
NEWSYM WDSPReg00 ; Voice 0 Volume Left
|
NEWSYM WDSPReg00 ; Voice 0 Volume Left
|
||||||
; cmp byte[RevStereo],1
|
|
||||||
; je .rev
|
|
||||||
mov [DSPMem+00h],al
|
mov [DSPMem+00h],al
|
||||||
ret
|
ret
|
||||||
.rev
|
|
||||||
mov [DSPMem+01h],al
|
mov [DSPMem+01h],al
|
||||||
ret
|
ret
|
||||||
|
|
||||||
NEWSYM WDSPReg01 ; Voice 0 Volume Right
|
NEWSYM WDSPReg01 ; Voice 0 Volume Right
|
||||||
; cmp byte[RevStereo],1
|
|
||||||
; je .rev
|
|
||||||
mov [DSPMem+01h],al
|
mov [DSPMem+01h],al
|
||||||
ret
|
ret
|
||||||
.rev
|
|
||||||
mov [DSPMem+00h],al
|
mov [DSPMem+00h],al
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|||||||
@@ -20,10 +20,8 @@
|
|||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM spcRam, spcPCRam, spcRamDP, spcS, spcX, MovieProcessing
|
EXTSYM spcRam,spcPCRam,spcRamDP,spcS,spcX,RevStereo
|
||||||
EXTSYM soundon, RevStereo
|
EXTSYM Invalidopcode,RSPCRegF0,RSPCRegF1,RSPCRegF2,RSPCRegF3
|
||||||
EXTSYM PitchModEn,SoundNoiseDis
|
|
||||||
EXTSYM DosExit,Invalidopcode,RSPCRegF0,RSPCRegF1,RSPCRegF2,RSPCRegF3
|
|
||||||
EXTSYM RSPCRegF4,RSPCRegF5,RSPCRegF6,RSPCRegF7,RSPCRegF8,RSPCRegF9
|
EXTSYM RSPCRegF4,RSPCRegF5,RSPCRegF6,RSPCRegF7,RSPCRegF8,RSPCRegF9
|
||||||
EXTSYM RSPCRegFA,RSPCRegFB,RSPCRegFC,RSPCRegFD,RSPCRegFE,RSPCRegFF
|
EXTSYM RSPCRegFA,RSPCRegFB,RSPCRegFC,RSPCRegFD,RSPCRegFE,RSPCRegFF
|
||||||
EXTSYM SPCRegF0,SPCRegF1,SPCRegF2,SPCRegF3,SPCRegF4,SPCRegF5,SPCRegF6
|
EXTSYM SPCRegF0,SPCRegF1,SPCRegF2,SPCRegF3,SPCRegF4,SPCRegF5,SPCRegF6
|
||||||
@@ -124,15 +122,9 @@ EXTSYM WDSPRegE0,WDSPRegE1,WDSPRegE2,WDSPRegE3,WDSPRegE4,WDSPRegE5,WDSPRegE6
|
|||||||
EXTSYM WDSPRegE7,WDSPRegE8,WDSPRegE9,WDSPRegEA,WDSPRegEB,WDSPRegEC,WDSPRegED
|
EXTSYM WDSPRegE7,WDSPRegE8,WDSPRegE9,WDSPRegEA,WDSPRegEB,WDSPRegEC,WDSPRegED
|
||||||
EXTSYM WDSPRegEE,WDSPRegEF,WDSPRegF0,WDSPRegF1,WDSPRegF2,WDSPRegF3,WDSPRegF4
|
EXTSYM WDSPRegEE,WDSPRegEF,WDSPRegF0,WDSPRegF1,WDSPRegF2,WDSPRegF3,WDSPRegF4
|
||||||
EXTSYM WDSPRegF5,WDSPRegF6,WDSPRegF7,WDSPRegF8,WDSPRegF9,WDSPRegFA,WDSPRegFB
|
EXTSYM WDSPRegF5,WDSPRegF6,WDSPRegF7,WDSPRegF8,WDSPRegF9,WDSPRegFA,WDSPRegFB
|
||||||
EXTSYM WDSPRegFC,WDSPRegFD,WDSPRegFE,WDSPRegFF,RaisePitch
|
EXTSYM WDSPRegFC,WDSPRegFD,WDSPRegFE,WDSPRegFF
|
||||||
EXTSYM delay
|
EXTSYM spcBuffera,DSPMem,SoundInterpType,NoiseData,Voice0Disable
|
||||||
EXTSYM spcBuffera
|
EXTSYM cfgecho,Surround,echobuf,ENVDisable,LowPassFilterType
|
||||||
EXTSYM DSPMem
|
|
||||||
EXTSYM SoundInterpType
|
|
||||||
EXTSYM NoiseData,Voice0Disable,csounddisable,spcRamcmp
|
|
||||||
EXTSYM cfgecho,Surround,SoundBufEn
|
|
||||||
EXTSYM echobuf,ENVDisable
|
|
||||||
EXTSYM LowPassFilterType
|
|
||||||
|
|
||||||
%ifdef __MSDOS__
|
%ifdef __MSDOS__
|
||||||
EXTSYM SB_alloc_dma,SB_quality_limiter,vibracard
|
EXTSYM SB_alloc_dma,SB_quality_limiter,vibracard
|
||||||
@@ -630,15 +622,6 @@ NEWSYM AdjustFrequency
|
|||||||
mov eax,dword [SBToSPCSpeeds2+ecx*4]
|
mov eax,dword [SBToSPCSpeeds2+ecx*4]
|
||||||
.not16bit
|
.not16bit
|
||||||
%endif
|
%endif
|
||||||
; cmp byte[RaisePitch],0
|
|
||||||
; jne .nopitchmodify
|
|
||||||
; ; *1000/1024
|
|
||||||
; mov ebx,1024
|
|
||||||
; mul ebx
|
|
||||||
; xor edx,edx
|
|
||||||
; mov ebx,1000
|
|
||||||
; div ebx
|
|
||||||
;.nopitchmodify
|
|
||||||
mov [SBToSPC],eax
|
mov [SBToSPC],eax
|
||||||
mov [SBRateb],eax
|
mov [SBRateb],eax
|
||||||
|
|
||||||
@@ -4639,11 +4622,6 @@ NEWSYM EchoStereo
|
|||||||
%endif ; added
|
%endif ; added
|
||||||
jmp %%NotUnique
|
jmp %%NotUnique
|
||||||
%%Uniquepm
|
%%Uniquepm
|
||||||
; cmp byte[PitchModEn],0
|
|
||||||
; je %%NotUnique
|
|
||||||
; mov al,%1 ;
|
|
||||||
; cmp al,0 ; commented out
|
|
||||||
; je %%NotUnique ;
|
|
||||||
%%Unique
|
%%Unique
|
||||||
mov byte [UniqueSoundv],1
|
mov byte [UniqueSoundv],1
|
||||||
%%NotUnique
|
%%NotUnique
|
||||||
|
|||||||
@@ -19,26 +19,21 @@
|
|||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
EXTSYM brkv,brkv8,copv,copv8,curexecstate,curnmi,execloop
|
|
||||||
EXTSYM initaddrl,membank0r16,membank0r8
|
EXTSYM brkv,brkv8,copv,copv8,curexecstate,curnmi,initaddrl
|
||||||
EXTSYM membank0w16,membank0w8,memtabler16,memtabler8,memtablew16,memtablew8
|
EXTSYM membank0r16,membank0r8,membank0w16,membank0w8
|
||||||
|
EXTSYM memtabler16,memtabler8,memtablew16,memtablew8
|
||||||
EXTSYM nmistatus,regaccessbankr8,snesmap2,snesmmap,stackand,stackor,tablead
|
EXTSYM nmistatus,regaccessbankr8,snesmap2,snesmmap,stackand,stackor,tablead
|
||||||
EXTSYM wramdata,xa,xd,xdb,xe,xirqb,xpb,xpc,xs,xx,xy
|
EXTSYM wramdata,xa,xd,xdb,xe,xirqb,xpb,xpc,xs,xx,xy
|
||||||
EXTSYM switchtovirq,intrset,UpdateDPage
|
EXTSYM intrset,UpdateDPage,switchtovirqret
|
||||||
EXTSYM switchtovirqret
|
|
||||||
EXTSYM debstop3,romdata
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
NEWSYM E65816IncStart
|
NEWSYM E65816IncStart
|
||||||
|
|
||||||
|
|
||||||
; B = ( or )
|
; B = ( or )
|
||||||
; C = ,
|
; C = ,
|
||||||
; L = [ or ]
|
; L = [ or ]
|
||||||
; I = #
|
; I = #
|
||||||
|
|
||||||
|
|
||||||
COp61m8nd: ; ADC(d,x)
|
COp61m8nd: ; ADC(d,x)
|
||||||
addr_BdCxB_8br
|
addr_BdCxB_8br
|
||||||
ADCMacro8bnd
|
ADCMacro8bnd
|
||||||
|
|||||||
@@ -19,24 +19,19 @@
|
|||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
EXTSYM brkv,brkv8,copv,copv8,curexecstate,curnmi,execloop
|
|
||||||
EXTSYM initaddrl,membank0r16,membank0r8
|
EXTSYM brkv,brkv8,copv,copv8,curexecstate,curnmi,initaddrl
|
||||||
EXTSYM membank0w16,membank0w8,memtabler16,memtabler8,memtablew16,memtablew8
|
EXTSYM membank0r16,membank0r8,membank0w16,membank0w8
|
||||||
|
EXTSYM memtabler16,memtabler8,memtablew16,memtablew8
|
||||||
EXTSYM nmistatus,regaccessbankr8,snesmap2,snesmmap,stackand,stackor
|
EXTSYM nmistatus,regaccessbankr8,snesmap2,snesmmap,stackand,stackor
|
||||||
EXTSYM wramdata,xa,xd,xdb,xe,xirqb,xpb,xpc,xs,xx,xy
|
EXTSYM wramdata,xa,xd,xdb,xe,xirqb,xpb,xpc,xs,xx,xy
|
||||||
EXTSYM switchtovirq,intrset,UpdateDPage
|
EXTSYM intrset,UpdateDPage,DPageR8,DPageW8,DPageR16,DPageW16
|
||||||
EXTSYM DPageR8,DPageW8,DPageR16,DPageW16
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
; B = ( or )
|
; B = ( or )
|
||||||
; C = ,
|
; C = ,
|
||||||
; L = [ or ]
|
; L = [ or ]
|
||||||
; I = #
|
; I = #
|
||||||
|
|
||||||
|
|
||||||
COp61m8nd: ; ADC(d,x)
|
COp61m8nd: ; ADC(d,x)
|
||||||
addr_BdCxB_8br
|
addr_BdCxB_8br
|
||||||
ADCMacro8bnd
|
ADCMacro8bnd
|
||||||
|
|||||||
@@ -19,24 +19,19 @@
|
|||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
EXTSYM brkv,brkv8,copv,copv8,curexecstate,curnmi,execloop
|
|
||||||
EXTSYM initaddrl,intrset,membank0r16,membank0r8
|
EXTSYM brkv,brkv8,copv,copv8,curexecstate,curnmi,initaddrl,intrset
|
||||||
EXTSYM membank0w16,membank0w8,memtabler16,memtabler8,memtablew16,memtablew8
|
EXTSYM membank0r16,membank0r8,membank0w16,membank0w8
|
||||||
|
EXTSYM memtabler16,memtabler8,memtablew16,memtablew8
|
||||||
EXTSYM nmistatus,regaccessbankr8,snesmap2,snesmmap,stackand,stackor
|
EXTSYM nmistatus,regaccessbankr8,snesmap2,snesmmap,stackand,stackor
|
||||||
EXTSYM wramdata,xa,xd,xdb,xe,xirqb,xpb,xpc,xs,xx,xy
|
EXTSYM wramdata,xa,xd,xdb,xe,xirqb,xpb,xpc,xs,xx,xy
|
||||||
EXTSYM switchtovirq,UpdateDPage
|
EXTSYM UpdateDPage,DPageR8,DPageW8,DPageR16,DPageW16
|
||||||
EXTSYM DPageR8,DPageW8,DPageR16,DPageW16
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
; B = ( or )
|
; B = ( or )
|
||||||
; C = ,
|
; C = ,
|
||||||
; L = [ or ]
|
; L = [ or ]
|
||||||
; I = #
|
; I = #
|
||||||
|
|
||||||
|
|
||||||
COp61m8nd: ; ADC(d,x)
|
COp61m8nd: ; ADC(d,x)
|
||||||
addr_BdCxB_8br
|
addr_BdCxB_8br
|
||||||
ADCMacro8bnd
|
ADCMacro8bnd
|
||||||
|
|||||||
@@ -20,83 +20,42 @@
|
|||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM StringLength,Get_Time,objhipr,KeyRewind,statesaver
|
EXTSYM KeyRewind,statesaver,timer2upd,Voice0Status,UpdateDPage,MessageOn
|
||||||
EXTSYM xa,timer2upd,prevoamptr
|
EXTSYM MsgCount,Msgptr,StartGUI,cbitmode,debuggeron,romdata,initvideo,newgfx16b
|
||||||
EXTSYM prevedi,SA1xpc,SA1RAMArea,sa1dmaptr
|
EXTSYM cvidmode,vidbuffer,vidbufferofsa,disable65816sh,GUISaveVars,virqnodisable
|
||||||
EXTSYM DSP1COp,C4WFXVal,C41FXVal,Op00Multiplicand,Op10Coefficient,Op04Angle
|
EXTSYM KeySaveState,KeyLoadState,KeyQuickExit,KeyQuickLoad,KeyQuickRst
|
||||||
EXTSYM Op08X,Op18X,Op28X,Op0CA,Op02FX,Op0AVS,Op06X,Op0DX,Op03F,Op14Zr
|
EXTSYM GUIDoReset,GUIReset,KeyOnStA,KeyOnStB,ProcessKeyOn,C4Enable,KeyQuickClock
|
||||||
EXTSYM Op0EH,DSP1Type,Op01m
|
EXTSYM KeyQuickSaveSPC,TimerEnable,IRQHack,HIRQLoc,splitflags,joinflags
|
||||||
EXTSYM Voice0Status,UpdateDPage
|
EXTSYM KeyQuickSnapShot,csounddisable,videotroub,Close_File,ResetTripleBuf
|
||||||
EXTSYM MessageOn,MsgCount,Msgptr,StartGUI,cbitmode,debuggeron,romdata
|
EXTSYM Write_File,Output_Text,Create_File,Check_Key,Get_Key,Change_Dir
|
||||||
EXTSYM frameskip,initvideo,newgfx16b,soundon,cvidmode
|
EXTSYM InitPreGame,Curtableaddr,curcyc,debugdisble,dmadata,guioff,memtabler8
|
||||||
EXTSYM vidbuffer,vidbufferofsa,vidbufferofsb,disable65816sh,GUISaveVars,virqnodisable
|
EXTSYM SetupPreGame,memtablew8,regaccessbankr8,showmenu,snesmap2,snesmmap
|
||||||
EXTSYM KeySaveState,KeyLoadState,KeyQuickExit,KeyQuickLoad,KeyQuickRst,GUIDoReset, GUIReset
|
EXTSYM DeInitPostGame,spcPCRam,startdebugger,xp,xpb,xpc,tablead,tableadb
|
||||||
EXTSYM KeyOnStA,KeyOnStB,ProcessKeyOn,printnum,sramsavedis,DSPDisable,C4Enable
|
EXTSYM tableadc,SA1UpdateDPage,Makemode7Table,nextmenupopup,MovieProcessing
|
||||||
EXTSYM KeyQuickClock,KeyQuickSaveSPC,TimerEnable,AutoIncSaveSlot
|
EXTSYM OSExit,DosExit,InitDir,InitDrive,createnewcfg,sfxramdata,deinitvideo
|
||||||
EXTSYM IRQHack,HIRQLoc,Offby1line,splitflags,joinflags,KeyQuickSnapShot
|
EXTSYM SFXEnable,wramdata,cycpbl,cycpblt,irqon,spcnumread,spchalted,spcon
|
||||||
EXTSYM csounddisable,videotroub,Open_File,Close_File,Read_File,ResetTripleBuf
|
EXTSYM multchange,vidmemch2,romispal,scrndis,sprlefttot,sprleftpr,processsprites
|
||||||
EXTSYM Write_File,Output_Text,Create_File,Check_Key,Get_Key,Change_Dir,InitPreGame
|
EXTSYM cachesprites,NextLineStart,FlipWait,LastLineStart,opcjmptab,CheatOn
|
||||||
; EXTSYM tempblah,romdata
|
EXTSYM INTEnab,JoyCRead,NMIEnab,NumCheats,CurrentExecSA1,ReadInputDevice
|
||||||
EXTSYM Curtableaddr,curcyc,debugdisble,dmadata,guioff,memtabler8,SetupPreGame
|
EXTSYM StartDrawNewGfx,VIRQLoc,cachevideo,cfield,cheatdata,curblank,curnmi
|
||||||
EXTSYM memtablew8,regaccessbankr8,showmenu,snesmap2,snesmmap,DeInitPostGame
|
EXTSYM curypos,cycpl,doirqnext,drawline,exechdma,hdmadelay,intrset,newengen
|
||||||
EXTSYM spcPCRam,startdebugger,xp,xpb,xpc,tablead,tableadb,tableadc
|
EXTSYM oamaddr,oamaddrs,resolutn,showvideo,snesmouse,starthdma,switchtonmi
|
||||||
; EXTSYM oamram
|
EXTSYM switchtovirq,totlines,updatetimer,SA1Swap,SA1DoIRQ,JoyAOrig,JoyANow
|
||||||
EXTSYM SA1UpdateDPage,Makemode7Table
|
EXTSYM JoyBOrig,JoyBNow,JoyCOrig,JoyCNow,JoyDOrig,JoyDNow,JoyEOrig,JoyENow
|
||||||
EXTSYM memtabler16,memaccessbankr848mb,memaccessbankr1648mb
|
EXTSYM SA1Message,MultiTapStat,idledetectspc,SA1Control,SA1Enable,SA1IRQEnable
|
||||||
EXTSYM nextmenupopup,MovieProcessing,PrintStr
|
EXTSYM SPC700read,SPC700write,numspcvblleft,spc700idle,SA1IRQExec,ForceNewGfxOff
|
||||||
EXTSYM OSExit,DosExit,InitDir,InitDrive,createnewcfg,fnames,gotoroot,previdmode
|
EXTSYM LethEnData,GUIQuit,IRAM,SA1Ptr,SA1BWPtr,scrnon,scaddset,outofmemfix
|
||||||
EXTSYM ramsize,sfxramdata,setaramdata,SETAEnable,sram,SRAMChdir
|
EXTSYM yesoutofmemory,ProcessMovies,MovieStop,ppustatus,C4VBlank,copyvid
|
||||||
; EXTSYM tempstore
|
EXTSYM ReturnFromSPCStall,scanlines,smallscreenon,ScreenScale,MainLoop
|
||||||
EXTSYM printhex
|
EXTSYM NumberOfOpcodes,SfxCLSR,SfxSCMR,SfxPOR,sfx128lineloc,sfx160lineloc
|
||||||
EXTSYM deinitvideo
|
EXTSYM sfx192lineloc,sfxobjlineloc,sfxclineloc,PLOTJmpa,PLOTJmpb,FxTable
|
||||||
EXTSYM BRRBuffer,DSPMem,PrepareSaveState,ResetState,SFXEnable,PHdspsave
|
EXTSYM FxTableb,FxTablec,FxTabled,SfxPBR,SCBRrel,SfxSCBR,SfxCOLR,SFXCounter
|
||||||
EXTSYM fnamest,sndrot,spcRam,spcRamDP,tableA,vram,wramdata
|
EXTSYM fxbit01,fxbit01pcal,fxbit23,fxbit23pcal,fxbit45,fxbit45pcal,fxbit67
|
||||||
EXTSYM PHnum2writesfxreg,SfxR0,PHspcsave
|
EXTSYM fxbit67pcal,SfxSFR,nosprincr,cpucycle,switchtovirqdeb,switchtonmideb
|
||||||
EXTSYM C4Ram,SPC7110Enable,SDD1Enable
|
EXTSYM MovieSeekBehind,SaveSramData,BackupCVFrame,RestoreCVFrame,loadstate
|
||||||
EXTSYM SA1Mode,PHnum2writesa1reg,SaveSA1,RestoreSA1,UpdateBanksSDD1
|
EXTSYM KeyInsrtChap,KeyNextChap,KeyPrevChap,MovieInsertChapter,MovieSeekAhead
|
||||||
EXTSYM CapturePicture,PrevPicture,NoPictureSave
|
EXTSYM ResetDuringMovie,EMUPauseKey,INCRFrameKey,MovieWaiting,NoInputRead
|
||||||
EXTSYM BRRPlace0,SfxCPB,SfxCROM,SfxLastRamAdr,SfxMemTable
|
|
||||||
EXTSYM SfxRAMBR,SfxRAMMem,SfxROMBR,SfxRomBuffer,Voice0Freq
|
|
||||||
EXTSYM cycpbl,cycpbl2,cycpblt,cycpblt2,irqon,nexthdma
|
|
||||||
EXTSYM repackfunct,spcnumread,spchalted,spcon,headerhack,initpitch
|
|
||||||
EXTSYM SPCMultA,PHnum2writespc7110reg
|
|
||||||
EXTSYM multchange,procexecloop,vidmemch2
|
|
||||||
EXTSYM romispal
|
|
||||||
EXTSYM scrndis,sprlefttot,sprleftpr,processsprites,cachesprites
|
|
||||||
EXTSYM NextLineStart,FlipWait,LastLineStart
|
|
||||||
EXTSYM opcjmptab
|
|
||||||
EXTSYM cpuoverptr
|
|
||||||
EXTSYM CheatOn,INTEnab,JoyAPos,JoyBPos,JoyCRead,NMIEnab,NumCheats,CurrentExecSA1
|
|
||||||
EXTSYM ReadInputDevice,StartDrawNewGfx,VIRQLoc,cachevideo,cfield
|
|
||||||
EXTSYM cheatdata,curblank,curnmi,curypos,cycpl,doirqnext,drawline
|
|
||||||
EXTSYM exechdma,hdmadelay,intrset,newengen,oamaddr
|
|
||||||
EXTSYM oamaddrs,processmouse,resolutn,showvideo,snesmouse,starthdma
|
|
||||||
EXTSYM switchtonmi,switchtovirq,totlines,updatetimer,SA1Swap,SA1DoIRQ
|
|
||||||
EXTSYM JoyAOrig,JoyANow,JoyBOrig,JoyBNow,JoyCOrig,JoyCNow,JoyDOrig,JoyDNow
|
|
||||||
EXTSYM JoyEOrig,JoyENow,chaton,chatstrL,chatRTL,chatstrR,SA1Message
|
|
||||||
EXTSYM MultiTapStat,idledetectspc,SA1Control,SA1Enable,SA1IRQEnable
|
|
||||||
EXTSYM SPC700read,SPC700write,numspcvblleft,spc700idle,SA1Status,SA1IRQExec
|
|
||||||
EXTSYM ForceNewGfxOff,LethEnData,C4Pause,GUIQuit
|
|
||||||
EXTSYM IRAM,SA1Ptr,SA1BWPtr
|
|
||||||
EXTSYM scrnon,scaddset
|
|
||||||
EXTSYM outofmemfix,yesoutofmemory
|
|
||||||
EXTSYM ProcessMovies,MovieStop
|
|
||||||
EXTSYM ioportval,ppustatus
|
|
||||||
EXTSYM C4VBlank,dsp1teststuff
|
|
||||||
EXTSYM ReturnFromSPCStall,SPCStallSetting,cycpb268,cycpb358,HIRQSkip,scanlines
|
|
||||||
EXTSYM smallscreenon,ScreenScale
|
|
||||||
EXTSYM MainLoop,NumberOfOpcodes,SfxCLSR,SfxSCMR,SfxPOR
|
|
||||||
EXTSYM sfx128lineloc,sfx160lineloc,sfx192lineloc,sfxobjlineloc,sfxclineloc
|
|
||||||
EXTSYM PLOTJmpa,PLOTJmpb,FxTable,FxTableb,FxTablec,FxTabled
|
|
||||||
EXTSYM SfxPBR,SCBRrel,SfxSCBR,SfxCOLR,hdmaearlstart,SFXCounter
|
|
||||||
EXTSYM fxbit01,fxbit01pcal,fxbit23,fxbit23pcal,fxbit45,fxbit45pcal,fxbit67,fxbit67pcal
|
|
||||||
EXTSYM SfxSFR,nosprincr
|
|
||||||
EXTSYM cpucycle,debstop,switchtovirqdeb,debstop3,switchtonmideb
|
|
||||||
EXTSYM MovieSeekBehind
|
|
||||||
EXTSYM statefileloc,CHIPBATT,SaveSramData,BackupCVFrame,RestoreCVFrame,loadstate
|
|
||||||
EXTSYM KeyInsrtChap,KeyNextChap,KeyPrevChap,MovieInsertChapter,MovieSeekAhead,ResetDuringMovie
|
|
||||||
EXTSYM EMUPauseKey,INCRFrameKey,MovieWaiting,NoInputRead
|
|
||||||
EXTSYM copyvid
|
|
||||||
|
|
||||||
%ifdef __MSDOS__
|
%ifdef __MSDOS__
|
||||||
EXTSYM dssel
|
EXTSYM dssel
|
||||||
@@ -433,10 +392,6 @@ NEWSYM start65816
|
|||||||
mov ecx,37518
|
mov ecx,37518
|
||||||
xor eax,eax
|
xor eax,eax
|
||||||
rep stosd
|
rep stosd
|
||||||
; mov edi,[vidbufferofsb]
|
|
||||||
; mov ecx,37518
|
|
||||||
; xor eax,eax
|
|
||||||
; rep stosd
|
|
||||||
cmp byte[romloadskip],1
|
cmp byte[romloadskip],1
|
||||||
je near StartGUI
|
je near StartGUI
|
||||||
|
|
||||||
@@ -614,15 +569,6 @@ reexecuteb2:
|
|||||||
jne .yeskeys
|
jne .yeskeys
|
||||||
.nokeys
|
.nokeys
|
||||||
|
|
||||||
; mov edi,memtabler8+40h*4
|
|
||||||
; mov ecx,30h
|
|
||||||
; mov eax,memaccessbankr848mb
|
|
||||||
; rep stosd
|
|
||||||
; mov edi,memtabler16+40h*4
|
|
||||||
; mov ecx,30h
|
|
||||||
; mov eax,memaccessbankr1648mb
|
|
||||||
; rep stosd
|
|
||||||
|
|
||||||
cmp byte[nextmenupopup],1
|
cmp byte[nextmenupopup],1
|
||||||
je near showmenu
|
je near showmenu
|
||||||
cmp byte[ReturnFromSPCStall],1
|
cmp byte[ReturnFromSPCStall],1
|
||||||
@@ -705,11 +651,6 @@ reexecuteb2:
|
|||||||
NEWSYM endprog
|
NEWSYM endprog
|
||||||
call deinitvideo
|
call deinitvideo
|
||||||
|
|
||||||
; mov eax,[opcd]
|
|
||||||
; mov eax,[numinst] ;Temporary
|
|
||||||
; mov eax,[NumBRRconv]
|
|
||||||
; call printnum
|
|
||||||
|
|
||||||
call SaveSramData
|
call SaveSramData
|
||||||
call createnewcfg
|
call createnewcfg
|
||||||
call GUISaveVars
|
call GUISaveVars
|
||||||
@@ -1143,16 +1084,6 @@ NEWSYM EMUPause, db 0
|
|||||||
NEWSYM INCRFrame, db 0
|
NEWSYM INCRFrame, db 0
|
||||||
SECTION .text
|
SECTION .text
|
||||||
|
|
||||||
|
|
||||||
%macro C4Paused 0
|
|
||||||
; cmp byte[C4Pause],0
|
|
||||||
; je %%notpaused
|
|
||||||
; inc esi
|
|
||||||
; xor dh,dh
|
|
||||||
; jmp cpuover
|
|
||||||
;%%notpaused
|
|
||||||
%endmacro
|
|
||||||
|
|
||||||
NEWSYM cpuover
|
NEWSYM cpuover
|
||||||
dec esi
|
dec esi
|
||||||
cmp byte[HIRQNextExe],0
|
cmp byte[HIRQNextExe],0
|
||||||
@@ -1383,7 +1314,6 @@ NEWSYM cpuover
|
|||||||
; mov ax,[resolutn]
|
; mov ax,[resolutn]
|
||||||
; cmp [curypos],ax
|
; cmp [curypos],ax
|
||||||
; jb .drawline
|
; jb .drawline
|
||||||
C4Paused
|
|
||||||
xor ebx,ebx
|
xor ebx,ebx
|
||||||
mov bl,[esi]
|
mov bl,[esi]
|
||||||
inc esi
|
inc esi
|
||||||
@@ -1463,7 +1393,6 @@ NEWSYM cpuover
|
|||||||
jne .yesexec
|
jne .yesexec
|
||||||
xor dh,dh
|
xor dh,dh
|
||||||
.yesexec
|
.yesexec
|
||||||
C4Paused
|
|
||||||
xor ebx,ebx
|
xor ebx,ebx
|
||||||
mov bl,[esi]
|
mov bl,[esi]
|
||||||
inc esi
|
inc esi
|
||||||
@@ -1668,7 +1597,6 @@ NEWSYM cpuover
|
|||||||
mov [oamaddr],ax
|
mov [oamaddr],ax
|
||||||
mov byte[nosprincr],0
|
mov byte[nosprincr],0
|
||||||
call showvideo
|
call showvideo
|
||||||
; call dsp1teststuff
|
|
||||||
xor ebx,ebx
|
xor ebx,ebx
|
||||||
mov byte[NMIEnab],81h
|
mov byte[NMIEnab],81h
|
||||||
test byte[INTEnab],80h
|
test byte[INTEnab],80h
|
||||||
@@ -1696,7 +1624,6 @@ NEWSYM cpuover
|
|||||||
mov dword[nmiprevaddrh],0
|
mov dword[nmiprevaddrh],0
|
||||||
mov byte[nmirept],1
|
mov byte[nmirept],1
|
||||||
mov byte[doirqnext],0
|
mov byte[doirqnext],0
|
||||||
C4Paused
|
|
||||||
jmp switchtonmi
|
jmp switchtonmi
|
||||||
.nocheck
|
.nocheck
|
||||||
cmp byte[nmirept],10
|
cmp byte[nmirept],10
|
||||||
@@ -1710,7 +1637,6 @@ NEWSYM cpuover
|
|||||||
mov [nmiprevaddrh],esi
|
mov [nmiprevaddrh],esi
|
||||||
.notgreater
|
.notgreater
|
||||||
inc byte[nmirept]
|
inc byte[nmirept]
|
||||||
C4Paused
|
|
||||||
jmp switchtonmi
|
jmp switchtonmi
|
||||||
.nextcheck
|
.nextcheck
|
||||||
mov eax,[nmiprevaddrh]
|
mov eax,[nmiprevaddrh]
|
||||||
@@ -1722,14 +1648,12 @@ NEWSYM cpuover
|
|||||||
cmp esi,[nmiprevaddrh]
|
cmp esi,[nmiprevaddrh]
|
||||||
ja .failcheck
|
ja .failcheck
|
||||||
mov byte[doirqnext],0
|
mov byte[doirqnext],0
|
||||||
C4Paused
|
|
||||||
jmp switchtonmi
|
jmp switchtonmi
|
||||||
.failcheck
|
.failcheck
|
||||||
mov byte[nmirept],0
|
mov byte[nmirept],0
|
||||||
mov dword[nmiprevaddrl],0FFFFFFFFh
|
mov dword[nmiprevaddrl],0FFFFFFFFh
|
||||||
mov dword[nmiprevaddrh],0
|
mov dword[nmiprevaddrh],0
|
||||||
mov byte[doirqnext],0
|
mov byte[doirqnext],0
|
||||||
C4Paused
|
|
||||||
jmp switchtonmi
|
jmp switchtonmi
|
||||||
.nonmi
|
.nonmi
|
||||||
cmp byte[intrset],1
|
cmp byte[intrset],1
|
||||||
@@ -1743,7 +1667,6 @@ NEWSYM cpuover
|
|||||||
jz .nowai
|
jz .nowai
|
||||||
or byte[INTEnab],80h
|
or byte[INTEnab],80h
|
||||||
.nowai
|
.nowai
|
||||||
C4Paused
|
|
||||||
xor ebx,ebx
|
xor ebx,ebx
|
||||||
xor ecx,ecx
|
xor ecx,ecx
|
||||||
mov bl,[esi]
|
mov bl,[esi]
|
||||||
@@ -1802,30 +1725,17 @@ NEWSYM cpuover
|
|||||||
mov dword[SPC700read],0
|
mov dword[SPC700read],0
|
||||||
mov dword[spc700read],0
|
mov dword[spc700read],0
|
||||||
.novblch
|
.novblch
|
||||||
|
|
||||||
mov byte[NMIEnab],01h
|
mov byte[NMIEnab],01h
|
||||||
|
|
||||||
; call cachevideo
|
|
||||||
call starthdma
|
call starthdma
|
||||||
; cmp byte[Offby1line],1
|
|
||||||
; je .noirqhack
|
|
||||||
; cmp byte[IRQHack],0
|
|
||||||
; je .noirqhack
|
|
||||||
; call exechdma
|
|
||||||
.noirqhack
|
.noirqhack
|
||||||
|
|
||||||
|
|
||||||
; check for VIRQ/HIRQ/NMI
|
; check for VIRQ/HIRQ/NMI
|
||||||
ProcessIRQStuff
|
ProcessIRQStuff
|
||||||
|
|
||||||
C4Paused
|
|
||||||
xor ebx,ebx
|
xor ebx,ebx
|
||||||
mov bl,[esi]
|
mov bl,[esi]
|
||||||
inc esi
|
inc esi
|
||||||
jmp execloop.startagain
|
jmp execloop.startagain
|
||||||
|
|
||||||
.virq
|
.virq
|
||||||
C4Paused
|
|
||||||
test byte[INTEnab],10h
|
test byte[INTEnab],10h
|
||||||
jz .skiphirq
|
jz .skiphirq
|
||||||
cmp word[HIRQLoc],0
|
cmp word[HIRQLoc],0
|
||||||
@@ -1885,7 +1795,6 @@ NEWSYM cpuover
|
|||||||
jmp switchtovirq
|
jmp switchtovirq
|
||||||
|
|
||||||
.hirq
|
.hirq
|
||||||
C4Paused
|
|
||||||
mov byte[HIRQNextExe],0
|
mov byte[HIRQNextExe],0
|
||||||
test byte[INTEnab],10h
|
test byte[INTEnab],10h
|
||||||
jz .hirqnotokay
|
jz .hirqnotokay
|
||||||
@@ -2092,8 +2001,6 @@ NEWSYM UpdateSFX
|
|||||||
call UpdateCLSR
|
call UpdateCLSR
|
||||||
ret
|
ret
|
||||||
|
|
||||||
EXTSYM SfxAC
|
|
||||||
|
|
||||||
NEWSYM StartSFX
|
NEWSYM StartSFX
|
||||||
push edx
|
push edx
|
||||||
push esi
|
push esi
|
||||||
@@ -2312,21 +2219,6 @@ NEWSYM execsingle
|
|||||||
jmp dword near [edi+ebx*4]
|
jmp dword near [edi+ebx*4]
|
||||||
.cpuover
|
.cpuover
|
||||||
|
|
||||||
; cmp byte[SA1Enable],0
|
|
||||||
; je .nosa1
|
|
||||||
; test byte[SA1Control],60h
|
|
||||||
; jnz .nosa1
|
|
||||||
; dec esi
|
|
||||||
; call SA1Swap
|
|
||||||
; mov bl,[esi]
|
|
||||||
; inc esi
|
|
||||||
; cmp byte[SA1Status],0
|
|
||||||
; je near .nosa1
|
|
||||||
; mov [pdh],dh
|
|
||||||
; xor dh,dh
|
|
||||||
; jmp cpuover
|
|
||||||
;.nosa1
|
|
||||||
|
|
||||||
cmp byte[SA1Enable],0
|
cmp byte[SA1Enable],0
|
||||||
je near .nosa1
|
je near .nosa1
|
||||||
mov byte[cycpl],150
|
mov byte[cycpl],150
|
||||||
@@ -2470,7 +2362,6 @@ NEWSYM execsingle
|
|||||||
jne .nointrset
|
jne .nointrset
|
||||||
mov byte[intrset],2
|
mov byte[intrset],2
|
||||||
.nointrset
|
.nointrset
|
||||||
; mov byte[debstop3],1
|
|
||||||
jmp switchtonmideb
|
jmp switchtonmideb
|
||||||
.nonmi
|
.nonmi
|
||||||
cmp byte[intrset],1
|
cmp byte[intrset],1
|
||||||
@@ -2527,7 +2418,6 @@ NEWSYM execsingle
|
|||||||
jne .nointrset2
|
jne .nointrset2
|
||||||
mov byte[intrset],2
|
mov byte[intrset],2
|
||||||
.nointrset2
|
.nointrset2
|
||||||
; mov byte[debstop3],1
|
|
||||||
jmp switchtovirqdeb
|
jmp switchtovirqdeb
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -18,17 +18,13 @@
|
|||||||
;along with this program; if not, write to the Free Software
|
;along with this program; if not, write to the Free Software
|
||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM flagnz,flago,flagc
|
EXTSYM flagnz,flago,flagc,SfxSCMR,curnmi,execloop,initaddrl,nmiv,snesmap2
|
||||||
EXTSYM SfxSCMR,curnmi,execloop,initaddrl,nmiv,snesmap2
|
EXTSYM snesmmap,stackand,stackor,xe,xirqb,xpb,xpc,xs,irqon,irqv,irqv8
|
||||||
EXTSYM snesmmap,stackand,stackor,wramdata
|
EXTSYM execloopdeb,nmiv8,membank0w8
|
||||||
EXTSYM xe,xirqb,xpb,xpc,xs
|
|
||||||
EXTSYM irqon,irqv
|
|
||||||
EXTSYM irqv8
|
|
||||||
EXTSYM execloopdeb
|
|
||||||
EXTSYM nmiv8
|
|
||||||
EXTSYM membank0r8,membank0w8
|
|
||||||
|
|
||||||
; NMI Hardware 00FFFA,B 00FFEA,B 3 -> 000108
|
; NMI Hardware 00FFFA,B 00FFEA,B 3 -> 000108
|
||||||
; RES Hardware 00FFFC.D 00FFFC,D 1
|
; RES Hardware 00FFFC.D 00FFFC,D 1
|
||||||
@@ -552,6 +548,3 @@ NEWSYM NMIemulmodedeb
|
|||||||
mov [initaddrl],esi
|
mov [initaddrl],esi
|
||||||
add esi,eax
|
add esi,eax
|
||||||
jmp execloopdeb
|
jmp execloopdeb
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -24,10 +24,9 @@ EXTSYM romdata,sramb4save,pressed,vidbuffer,oamram
|
|||||||
EXTSYM C4TransfWireFrame2
|
EXTSYM C4TransfWireFrame2
|
||||||
EXTSYM C4WFXVal,C4WFYVal,C4WFX2Val,C4WFY2Val,C4CalcWireFrame
|
EXTSYM C4WFXVal,C4WFYVal,C4WFX2Val,C4WFY2Val,C4CalcWireFrame
|
||||||
EXTSYM C4WFDist,C4WFScale,C4TransfWireFrame,C4WFZVal
|
EXTSYM C4WFDist,C4WFScale,C4TransfWireFrame,C4WFZVal
|
||||||
EXTSYM debstop3
|
|
||||||
EXTSYM C41FXVal,C41FYVal,C41FAngleRes,C41FDist,C4Op1F,C4Op15
|
EXTSYM C41FXVal,C41FYVal,C41FAngleRes,C41FDist,C4Op1F,C4Op15
|
||||||
EXTSYM C41FDistVal,C4Op0D,C4Op22,SinTable,CosTable
|
EXTSYM C41FDistVal,C4Op0D,C4Op22,SinTable,CosTable
|
||||||
EXTSYM SFXEnable,regptra,sfxramdata,snesmmap,wramdataa,debstop,C4Ram,C4Enable
|
EXTSYM SFXEnable,regptra,sfxramdata,snesmmap,wramdataa,C4Ram,C4Enable
|
||||||
EXTSYM C4RamR,C4RamW,snesmap2,SPC7110Enable
|
EXTSYM C4RamR,C4RamW,snesmap2,SPC7110Enable
|
||||||
EXTSYM DSP1Read16b
|
EXTSYM DSP1Read16b
|
||||||
EXTSYM DSP1Write8b,regptwa,writeon
|
EXTSYM DSP1Write8b,regptwa,writeon
|
||||||
@@ -42,7 +41,6 @@ EXTSYM DosExit,invalid,invopcd,previdmode,printhex8
|
|||||||
EXTSYM SA1Status,IRAM,CurBWPtr,SA1RAMArea
|
EXTSYM SA1Status,IRAM,CurBWPtr,SA1RAMArea
|
||||||
EXTSYM SA1Overflow,OBCEnable
|
EXTSYM SA1Overflow,OBCEnable
|
||||||
EXTSYM Sdd1Mode,Sdd1Bank,Sdd1Addr,Sdd1NewAddr,memtabler8,AddrNoIncr,SDD1BankA
|
EXTSYM Sdd1Mode,Sdd1Bank,Sdd1Addr,Sdd1NewAddr,memtabler8,AddrNoIncr,SDD1BankA
|
||||||
EXTSYM SPC7110Entries,spc7110romptr
|
|
||||||
|
|
||||||
; C4SprScale
|
; C4SprScale
|
||||||
|
|
||||||
@@ -2129,7 +2127,6 @@ C4activate:
|
|||||||
popad
|
popad
|
||||||
ret
|
ret
|
||||||
.dosprites
|
.dosprites
|
||||||
; mov byte[debstop3],0
|
|
||||||
push eax
|
push eax
|
||||||
mov eax,[C4Ram]
|
mov eax,[C4Ram]
|
||||||
cmp byte[eax+1F4Dh],0
|
cmp byte[eax+1F4Dh],0
|
||||||
@@ -2161,7 +2158,6 @@ C4activate:
|
|||||||
pop eax
|
pop eax
|
||||||
ret
|
ret
|
||||||
.dolines
|
.dolines
|
||||||
; mov byte[debstop3],0
|
|
||||||
ret
|
ret
|
||||||
.bitmap
|
.bitmap
|
||||||
call C4BitPlaneWave
|
call C4BitPlaneWave
|
||||||
@@ -2210,7 +2206,6 @@ C4activate:
|
|||||||
ret
|
ret
|
||||||
.transform
|
.transform
|
||||||
; 7F81,4,7,9,A,B,0,1,D
|
; 7F81,4,7,9,A,B,0,1,D
|
||||||
; mov byte[debstop3],0
|
|
||||||
pushad
|
pushad
|
||||||
; mov eax,[C4Ram]
|
; mov eax,[C4Ram]
|
||||||
call C4Transform
|
call C4Transform
|
||||||
@@ -2860,7 +2855,7 @@ NEWSYM regaccessbankr8mp
|
|||||||
; enter : BL = bank number, CX = address location
|
; enter : BL = bank number, CX = address location
|
||||||
; leave : AL = value read
|
; leave : AL = value read
|
||||||
|
|
||||||
EXTSYM BWShift,BWAndAddr,BWAnd,BWRAnd,SA1BWPtr
|
EXTSYM BWShift,SA1BWPtr
|
||||||
|
|
||||||
%macro BWCheck 0
|
%macro BWCheck 0
|
||||||
cmp byte[BWShift],0
|
cmp byte[BWShift],0
|
||||||
@@ -2877,7 +2872,6 @@ section .text
|
|||||||
.shift
|
.shift
|
||||||
cmp byte[SA1Status],0
|
cmp byte[SA1Status],0
|
||||||
je .nosa1
|
je .nosa1
|
||||||
; mov byte[debstop3],1
|
|
||||||
; value of 8Fh
|
; value of 8Fh
|
||||||
test byte[SA1Overflow+1],80h
|
test byte[SA1Overflow+1],80h
|
||||||
jnz .2bit
|
jnz .2bit
|
||||||
@@ -3920,7 +3914,6 @@ NEWSYM memaccessspc7110r8
|
|||||||
inc word[CurDecompSize]
|
inc word[CurDecompSize]
|
||||||
ret
|
ret
|
||||||
|
|
||||||
; mov byte[debstop3],1
|
|
||||||
mov ebx,[romdata]
|
mov ebx,[romdata]
|
||||||
add ebx,510000h
|
add ebx,510000h
|
||||||
mov al,[ebx+ecx]
|
mov al,[ebx+ecx]
|
||||||
@@ -3935,7 +3928,6 @@ NEWSYM memaccessspc7110r8
|
|||||||
xor ebx,ebx
|
xor ebx,ebx
|
||||||
ret
|
ret
|
||||||
NEWSYM memaccessspc7110r16
|
NEWSYM memaccessspc7110r16
|
||||||
; mov byte[debstop3],1
|
|
||||||
mov ebx,[romdata]
|
mov ebx,[romdata]
|
||||||
add ebx,510000h
|
add ebx,510000h
|
||||||
mov ax,[ebx+ecx]
|
mov ax,[ebx+ecx]
|
||||||
|
|||||||
@@ -19,23 +19,12 @@
|
|||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
EXTSYM SFXEnable,regptr,initsfxregsr,initSA1regs,SA1Enable,initSDD1regs
|
EXTSYM SFXEnable,regptr,initsfxregsr,initSA1regs,SA1Enable,initSDD1regs
|
||||||
EXTSYM SPC7110Enable,initSPC7110regs,RTCEnable,RTCReset
|
EXTSYM SPC7110Enable,initSPC7110regs,RTCEnable,RTCReset,curypos,cycpl
|
||||||
EXTSYM curypos,cycpl,debuggeron,pdh
|
EXTSYM debuggeron,pdh,vram,romispal,reg1read,spcnumread,spcon,reg2read,reg3read
|
||||||
EXTSYM vram
|
EXTSYM reg4read,JoyEOrig,JoyENow,snesmouse,cycphb,joycontren,totlines,DosExit
|
||||||
EXTSYM romispal
|
EXTSYM invalid,numinst,previdmode,printhex,printnum
|
||||||
EXTSYM reg1read,spcnumread,spchalted,spcon
|
|
||||||
EXTSYM reg2read
|
|
||||||
EXTSYM reg3read
|
|
||||||
EXTSYM reg4read
|
|
||||||
EXTSYM JoyEOrig,JoyENow
|
|
||||||
EXTSYM snesmouse
|
|
||||||
EXTSYM cycphb,joycontren,totlines
|
|
||||||
EXTSYM DosExit,invalid,numinst,previdmode,printhex,printnum
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
NEWSYM initregr
|
NEWSYM initregr
|
||||||
; Fill register pointer with invalid register accesses
|
; Fill register pointer with invalid register accesses
|
||||||
|
|||||||
@@ -20,11 +20,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
;*******************************************************
|
;*******************************************************
|
||||||
; InitReg Initializes Registers
|
; InitReg Initializes Registers
|
||||||
;*******************************************************
|
;*******************************************************
|
||||||
@@ -101,5 +96,3 @@
|
|||||||
mov al,bl
|
mov al,bl
|
||||||
.ny7
|
.ny7
|
||||||
%endmacro
|
%endmacro
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -19,25 +19,12 @@
|
|||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
EXTSYM initsfxregsw,reg420Bw,reg420Cw,regptw,initSA1regsw,SDD1Reset
|
EXTSYM initsfxregsw,reg420Bw,reg420Cw,regptw,initSA1regsw,SDD1Reset
|
||||||
EXTSYM SPC7110Reset,RTCReset2
|
EXTSYM SPC7110Reset,RTCReset2,debstop,NextLineCache,vidmemch2,vidmemch4
|
||||||
EXTSYM xat,xdbt,xdt,xpbt,xst,xxt,xyt
|
EXTSYM vidmemch8,vrama,nmirept,sndwrit,spcRam,HIRQCycNext,HIRQNextExe,HIRQSkip
|
||||||
EXTSYM DSPMem,WDSPReg0C,WDSPReg0D,WDSPReg0F,WDSPReg1C,WDSPReg1F
|
EXTSYM cycpb268,cycpb358,cycpbl,cycpblt,opexec268,opexec268cph,opexec358
|
||||||
EXTSYM WDSPReg2C,WDSPReg2F,WDSPReg3C,WDSPReg3D,WDSPReg3F,WDSPReg4F
|
EXTSYM opexec358cph,hdmarestart,printhex8
|
||||||
EXTSYM WDSPReg5F,WDSPReg6C,WDSPReg6F,WDSPReg7D,WDSPReg7F
|
|
||||||
EXTSYM debstop
|
|
||||||
EXTSYM cachesprites,curblank,processsprites,sprleftpr,sprlefttot,NextLineCache
|
|
||||||
EXTSYM vidmemch2,vidmemch4,vidmemch8,vrama
|
|
||||||
EXTSYM nmirept,sndwrit,spcRam
|
|
||||||
EXTSYM HIRQCycNext,HIRQNextExe,HIRQSkip
|
|
||||||
EXTSYM cycpb268,cycpb358,cycpbl,cycpblt,opexec268,opexec268cph
|
|
||||||
EXTSYM opexec358,opexec358cph
|
|
||||||
EXTSYM hdmarestart
|
|
||||||
EXTSYM printhex8
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SECTION .bss
|
SECTION .bss
|
||||||
NEWSYM testgfxv1, resb 1
|
NEWSYM testgfxv1, resb 1
|
||||||
@@ -1751,5 +1738,3 @@ SECTION .bss
|
|||||||
.invbank resb 1
|
.invbank resb 1
|
||||||
.invaddr resb 1
|
.invaddr resb 1
|
||||||
SECTION .text
|
SECTION .text
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -19,14 +19,9 @@
|
|||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
EXTSYM tableadc
|
EXTSYM tableadc
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
;*******************************************************
|
;*******************************************************
|
||||||
; InitRegW Initializes Write Registers
|
; InitRegW Initializes Write Registers
|
||||||
;*******************************************************
|
;*******************************************************
|
||||||
@@ -52,5 +47,3 @@ EXTSYM tableadc
|
|||||||
mov eax,%2
|
mov eax,%2
|
||||||
mov [edi],eax
|
mov [edi],eax
|
||||||
%endmacro
|
%endmacro
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -19,12 +19,12 @@
|
|||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
EXTSYM brkv,brkv8,copv,copv8,curexecstate,curnmi
|
EXTSYM brkv,brkv8,copv,copv8,curexecstate,curnmi,initaddrl
|
||||||
EXTSYM initaddrl,membank0r16,membank0r8
|
EXTSYM membank0r16,membank0r8,membank0w16,membank0w8
|
||||||
EXTSYM membank0w16,membank0w8,memtabler16,memtabler8,memtablew16,memtablew8
|
EXTSYM memtabler16,memtabler8,memtablew16,memtablew8
|
||||||
EXTSYM nmistatus,regaccessbankr8,snesmap2,snesmmap,stackand,stackor
|
EXTSYM regaccessbankr8,snesmap2,snesmmap,stackand,stackor
|
||||||
EXTSYM wramdata,SA1xa,SA1xd,SA1xdb,xe,xirqb,SA1xpb,xpc,SA1xs,SA1xx,SA1xy
|
EXTSYM wramdata,SA1xa,SA1xd,SA1xdb,xe,xirqb,SA1xpb,xpc,SA1xs,SA1xx,SA1xy
|
||||||
EXTSYM switchtovirq,cpuoverptr,debstop4,SA1RegP,nextopcode,debugsa1,skipdebugsa1
|
EXTSYM debstop4,SA1RegP,nextopcode,debugsa1,skipdebugsa1
|
||||||
|
|
||||||
|
|
||||||
sa1debug:
|
sa1debug:
|
||||||
|
|||||||
@@ -18,20 +18,17 @@
|
|||||||
;along with this program; if not, write to the Free Software
|
;along with this program; if not, write to the Free Software
|
||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM DSPMem,spcWptr,debstop,disablespcclr,SPCSkipXtraROM,SPC700sh
|
EXTSYM DSPMem,spcWptr,disablespcclr,SPCSkipXtraROM,SPC700sh,cycpbl,spcRptr
|
||||||
EXTSYM cycpbl,spcRptr
|
EXTSYM spc700read,dspWptr,curexecstate,tableadb
|
||||||
EXTSYM spc700read
|
|
||||||
EXTSYM dspWptr
|
|
||||||
EXTSYM curexecstate,SA1Enable,tableadb
|
|
||||||
|
|
||||||
%include "cpu/regsw.mac"
|
%include "cpu/regsw.mac"
|
||||||
%include "cpu/spcdef.inc"
|
%include "cpu/spcdef.inc"
|
||||||
%include "cpu/spcaddr.inc"
|
%include "cpu/spcaddr.inc"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
; SPC 700 Emulation by _Demo_
|
; SPC 700 Emulation by _Demo_
|
||||||
; Version 2.0
|
; Version 2.0
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
EXTSYM SA1tableA,SA1tableB,SA1tableC,SA1tableD,SA1tableE
|
EXTSYM SA1tableA,SA1tableB,SA1tableC,SA1tableD,SA1tableE
|
||||||
EXTSYM SA1tableF,SA1tableG,SA1tableH,SA1tablead
|
EXTSYM SA1tableF,SA1tableG,SA1tableH,SA1tablead
|
||||||
EXTSYM cpucycle, SA1UpdateDPage, intrset
|
EXTSYM cpucycle,SA1UpdateDPage,intrset
|
||||||
|
|
||||||
%include "cpu/s65816d.inc"
|
%include "cpu/s65816d.inc"
|
||||||
%include "cpu/saddress.inc"
|
%include "cpu/saddress.inc"
|
||||||
|
|||||||
@@ -18,20 +18,11 @@
|
|||||||
;along with this program; if not, write to the Free Software
|
;along with this program; if not, write to the Free Software
|
||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM eramaccessbankr16,eramaccessbankr8,eramaccessbankw16
|
EXTSYM tableAb,tableBb,tableCb,tableDb,tableEb,tableFb,tableGb,tableHb,tableadb
|
||||||
EXTSYM eramaccessbankw8,memaccessbankr16,memaccessbankr8
|
|
||||||
EXTSYM memaccessbankw16,memaccessbankw8
|
|
||||||
EXTSYM mosjmptab,mosdraw10,mosdraw11,mosdraw12,mosdraw13
|
|
||||||
EXTSYM mosdraw14,mosdraw15,mosdraw16,mosdraw2,mosdraw3
|
|
||||||
EXTSYM mosdraw4,mosdraw5,mosdraw6,mosdraw7,mosdraw8
|
|
||||||
EXTSYM mosdraw9,ngpalcon2b,ngpalcon4b
|
|
||||||
EXTSYM regaccessbankr16,regaccessbankw16,regaccessbankw8
|
|
||||||
EXTSYM sramaccessbankr16,sramaccessbankr8,sramaccessbankw16
|
|
||||||
EXTSYM sramaccessbankw8,tableAb,tableBb,tableCb,tableDb,tableEb
|
|
||||||
EXTSYM tableFb,tableGb,tableHb,wramaccessbankr16
|
|
||||||
EXTSYM wramaccessbankr8,wramaccessbankw16,wramaccessbankw8,tableadb
|
|
||||||
|
|
||||||
%include "cpu/65816db.inc"
|
%include "cpu/65816db.inc"
|
||||||
%include "cpu/address.inc"
|
%include "cpu/address.inc"
|
||||||
|
|||||||
@@ -18,20 +18,12 @@
|
|||||||
;along with this program; if not, write to the Free Software
|
;along with this program; if not, write to the Free Software
|
||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM eramaccessbankr16,eramaccessbankr8,eramaccessbankw16
|
EXTSYM tableAc,tableBc,tableCc,tableDc,tableEc
|
||||||
EXTSYM eramaccessbankw8,memaccessbankr16,memaccessbankr8
|
EXTSYM tableFc,tableGc,tableHc,tableadc
|
||||||
EXTSYM memaccessbankw16,memaccessbankw8
|
|
||||||
EXTSYM mosjmptab,mosdraw10,mosdraw11,mosdraw12,mosdraw13
|
|
||||||
EXTSYM mosdraw14,mosdraw15,mosdraw16,mosdraw2,mosdraw3
|
|
||||||
EXTSYM mosdraw4,mosdraw5,mosdraw6,mosdraw7,mosdraw8
|
|
||||||
EXTSYM mosdraw9,ngpalcon2b,ngpalcon4b
|
|
||||||
EXTSYM regaccessbankr16,regaccessbankw16,regaccessbankw8
|
|
||||||
EXTSYM sramaccessbankr16,sramaccessbankr8,sramaccessbankw16
|
|
||||||
EXTSYM sramaccessbankw8,tableAc,tableBc,tableCc,tableDc,tableEc
|
|
||||||
EXTSYM tableFc,tableGc,tableHc,wramaccessbankr16
|
|
||||||
EXTSYM wramaccessbankr8,wramaccessbankw16,wramaccessbankw8,tableadc
|
|
||||||
|
|
||||||
%include "cpu/65816dc.inc"
|
%include "cpu/65816dc.inc"
|
||||||
%include "cpu/address.inc"
|
%include "cpu/address.inc"
|
||||||
|
|||||||
@@ -18,44 +18,24 @@
|
|||||||
;along with this program; if not, write to the Free Software
|
;along with this program; if not, write to the Free Software
|
||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM DosExit,curblank,previdmode,start65816,wramdata,C4Ram,cnetplaybuf
|
EXTSYM DosExit,curblank,start65816,UpdateDPage,splitflags,joinflags,delay
|
||||||
EXTSYM UpdateDPage,SA1Enable,splitflags,joinflags,delay
|
EXTSYM Open_File,Read_File,Create_File,Write_File,Close_File,Check_Key,Get_Key
|
||||||
EXTSYM Open_File,Read_File,Create_File,Write_File,Close_File,romdata
|
EXTSYM LastLog,endprog,printhex,vesa2_rfull,vesa2_rtrcl,vesa2_gfull,vesa2_gtrcl
|
||||||
EXTSYM Check_Key,Get_Key
|
EXTSYM vesa2_bfull,vesa2_btrcl,BRRBuffer,DSPMem,ResetState,PHdspsave,printnum
|
||||||
EXTSYM LastLog
|
EXTSYM PHspcsave,ssdatst,timeron,timincr0,timincr1,timincr2,timinl0,timinl1
|
||||||
EXTSYM fulladdtab
|
EXTSYM timinl2,vram,spcnumread,Curtableaddr,statesaver,memtablew8,printhex8
|
||||||
EXTSYM DecompArray,DecompAPtr
|
EXTSYM writeon,curcyc,dmadata,execsingle,initaddrl,memtabler8,pdh,debugloadstate
|
||||||
EXTSYM endprog
|
EXTSYM regaccessbankr8,selcB800,snesmap2,snesmmap,ram7f,StringLength,exiter
|
||||||
EXTSYM printhex
|
EXTSYM CurrentCPU,SA1RegP,curypos,xa,xd,xdb,xe,xp,xpb,xpc,xs,xx,xy,SA1xpb,SA1xpc
|
||||||
EXTSYM vesa2_rpos,vesa2_rfull,vesa2_rtrcl,vesa2_rtrcla
|
EXTSYM SA1xa,SA1xx,SA1xy,SA1xd,SA1xdb,SA1xs,cycpbl,debugbuf,soundon,spcA,spcNZ
|
||||||
EXTSYM vesa2_gpos,vesa2_gfull,vesa2_gtrcl,vesa2_gtrcla
|
EXTSYM spcP,spcPCRam,spcRam,spcS,spcX,spcY
|
||||||
EXTSYM vesa2_bpos,vesa2_bfull,vesa2_btrcl,vesa2_btrcla
|
|
||||||
EXTSYM BRRBuffer,DSPMem,ResetState,PHdspsave,printnum,PHspcsave
|
|
||||||
EXTSYM ssdatst,timeron,timincr0,timincr1,timincr2,timinl0
|
|
||||||
EXTSYM timinl1,timinl2,vram
|
|
||||||
EXTSYM spcnumread
|
|
||||||
EXTSYM Curtableaddr,fnamest,procexecloop,stateloader,tableA
|
|
||||||
EXTSYM vidmemch2
|
|
||||||
EXTSYM statesaver
|
|
||||||
EXTSYM memtablew8,printhex8,writeon
|
|
||||||
EXTSYM curcyc,dmadata,execsingle,initaddrl,memtabler8,pdh
|
|
||||||
EXTSYM regaccessbankr8,selcB800,snesmap2,snesmmap
|
|
||||||
EXTSYM ram7f
|
|
||||||
EXTSYM StringLength
|
|
||||||
EXTSYM exiter
|
|
||||||
EXTSYM SA1Status,CurrentCPU,SA1RegP
|
|
||||||
EXTSYM curypos,xa,xd,xdb,xe,xp,xpb,xpc,xs,xx,xy
|
|
||||||
EXTSYM SA1xpb,SA1xpc,SA1xa,SA1xx,SA1xy,SA1xd,SA1xdb,SA1xs
|
|
||||||
EXTSYM cycpbl,debugbuf,soundon,spcA,spcNZ,spcP,spcPCRam
|
|
||||||
EXTSYM spcRam,spcRamDP,spcS,spcX,spcY
|
|
||||||
EXTSYM CurPtrVal,SPC7110Enable
|
|
||||||
EXTSYM debugloadstate
|
|
||||||
|
|
||||||
; debstop at regsw.asm 2118/2119
|
; debstop at regsw.asm 2118/2119
|
||||||
|
|
||||||
|
|
||||||
NEWSYM startdebugger
|
NEWSYM startdebugger
|
||||||
mov byte[curblank],40h
|
mov byte[curblank],40h
|
||||||
mov byte[debuggeron],1
|
mov byte[debuggeron],1
|
||||||
@@ -4354,5 +4334,3 @@ NEWSYM ArgumentTable
|
|||||||
; F0 F1 F2 F3 F4 F5 F6 F7 F8 F9 FA FB FC FD FE FF
|
; F0 F1 F2 F3 F4 F5 F6 F7 F8 F9 FA FB FC FD FE FF
|
||||||
db 14,01,02,03,15,16,17,18,35,64,09,65,31,66,67,00
|
db 14,01,02,03,15,16,17,18,35,64,09,65,31,66,67,00
|
||||||
SECTION .text
|
SECTION .text
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -18,62 +18,30 @@
|
|||||||
;along with this program; if not, write to the Free Software
|
;along with this program; if not, write to the Free Software
|
||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM selcA000,selcB800,selc0040,previdmode,DosExit,ZFileSystemInit
|
EXTSYM selcA000,selcB800,selc0040,previdmode,DosExit,ZFileSystemInit,getcmdline
|
||||||
EXTSYM getcmdline,GUIRestoreVars,getcfg,obtaindir,ConvertJoyMap,tparms
|
EXTSYM GUIRestoreVars,getcfg,obtaindir,ConvertJoyMap,tparms,preparedir,V8Mode
|
||||||
EXTSYM preparedir,getblaster,Force8b,SBHDMA
|
EXTSYM getblaster,Force8b,SBHDMA,ccmdline,InitDir,InitDrive,DOScreatenewcfg
|
||||||
EXTSYM ccmdline
|
EXTSYM ExecGUISaveVars,allocptr,ZOpenFile,ZOpenMode,CurrentHandle,ZFileSeek
|
||||||
EXTSYM InitDir,InitDrive
|
EXTSYM ZOpenFileName,ZFileSeekMode,ZFileSeekPos,ZFileSeekHandle,ZFileWriteHandle
|
||||||
EXTSYM DOScreatenewcfg,ExecGUISaveVars
|
EXTSYM ZFileWriteSize,ZFileWriteBlock,ZFileWrite,ZFileReadHandle,ZFileReadSize
|
||||||
EXTSYM allocptr
|
EXTSYM ZFileReadBlock,ZFileRead,ZFileDelFName,ZFileDelete,ZCloseFileHandle
|
||||||
EXTSYM ZOpenFile,ZOpenMode,CurrentHandle,ZFileSeek,ZOpenFileName,ZFileSeekMode
|
EXTSYM ZCloseFile,ZFileTellHandle,ZFileTell,GetTime,GetDate,ZFFTimeFName,ZFTime
|
||||||
EXTSYM ZFileSeekPos,ZFileSeekHandle
|
EXTSYM ZFDate,ZFileGetFTime,ZFileMKDir,ZFileCHDir,ZFileRMDir,CHPath,MKPath
|
||||||
EXTSYM ZFileWriteHandle,ZFileWriteSize,ZFileWriteBlock,ZFileWrite
|
EXTSYM RMPath,ZFileGetDir,DirName,pressed,DTALoc,DTALocPos,ZFileFindATTRIB
|
||||||
EXTSYM ZFileReadHandle,ZFileReadSize,ZFileReadBlock,ZFileRead
|
EXTSYM ZFileFindFirst,ZFileFindNext,ZFileFindPATH,oldhand9s,oldhand9o,interror
|
||||||
EXTSYM ZFileDelFName,ZFileDelete
|
EXTSYM oldhand8s,oldhand8o,oldhandSBs,oldhandSBo,NoSoundReinit,soundon
|
||||||
EXTSYM ZCloseFileHandle,ZCloseFile
|
EXTSYM DSPDisable,SBInt,NoSoundReinit,PICMaskP,SBIrq,SBHandler,InitSB,handler8h
|
||||||
EXTSYM ZFileTellHandle,ZFileTell
|
EXTSYM handler9h,init60hz,Interror,init18_2hz,DeInitSPC,GUIinit36_4hz
|
||||||
EXTSYM GetTime
|
EXTSYM GUIoldhand9s,GUIoldhand9o,GUIoldhand8s,GUIoldhand8o,GUIhandler9h
|
||||||
EXTSYM GetDate
|
EXTSYM GUIhandler8h,GUIinit18_2hz,dosmakepal,doschangepal,dosinitvideo
|
||||||
EXTSYM ZFFTimeFName,ZFTime,ZFDate,ZFileGetFTime
|
EXTSYM dosinitvideo2,DosDrawScreen,cvidmode,vidbuffer,GUICPC,DosDrawScreenB
|
||||||
EXTSYM pressed
|
EXTSYM DOSClearScreen,DosUpdateDevices,DOSJoyRead,pl1contrl,pl2contrl,pl3contrl
|
||||||
EXTSYM ZFileMKDir,ZFileCHDir,ZFileRMDir,CHPath,MKPath,RMPath
|
EXTSYM pl4contrl,pl5contrl,BufferSizeW,BufferSizeB,ProcessSoundBuffer
|
||||||
EXTSYM ZFileGetDir,DriveNumber,DirName
|
EXTSYM GrayscaleMode
|
||||||
EXTSYM DTALoc,DTALocPos,ZFileFindATTRIB,ZFileFindFirst,ZFileFindNext,ZFileFindPATH
|
|
||||||
EXTSYM oldhand9s,oldhand9o,interror,oldhand8s,oldhand8o,oldhandSBs,oldhandSBo
|
|
||||||
EXTSYM NoSoundReinit,soundon,DSPDisable,SBInt,NoSoundReinit,PICMaskP,SBIrq
|
|
||||||
EXTSYM SBHandler,InitSB,handler8h,handler9h,init60hz,Interror,init18_2hz,DeInitSPC
|
|
||||||
EXTSYM GUIinit36_4hz,GUIoldhand9s,GUIoldhand9o,GUIoldhand8s,GUIoldhand8o
|
|
||||||
EXTSYM GUIhandler9h,GUIhandler8h,GUIinit18_2hz
|
|
||||||
EXTSYM dosmakepal
|
|
||||||
EXTSYM doschangepal
|
|
||||||
EXTSYM dosinitvideo, dosinitvideo2
|
|
||||||
EXTSYM DosDrawScreen,dosvidpastecopyscr,cvidmode,vidbuffer,GUICPC,DosDrawScreenB
|
|
||||||
EXTSYM DOSClearScreen
|
|
||||||
EXTSYM DosUpdateDevices
|
|
||||||
EXTSYM DOSJoyRead
|
|
||||||
EXTSYM pl1contrl,pl2contrl,pl3contrl,pl4contrl,pl5contrl
|
|
||||||
EXTSYM BufferSizeW,BufferSizeB,ProcessSoundBuffer
|
|
||||||
EXTSYM TCPIPPortNum
|
|
||||||
EXTSYM V8Mode,GrayscaleMode
|
|
||||||
; EXTSYM InitTCP
|
|
||||||
; EXTSYM StartServer
|
|
||||||
; EXTSYM InitTCP
|
|
||||||
EXTSYM TCPIPAddress
|
|
||||||
; EXTSYM ConnectServer
|
|
||||||
; EXTSYM SendData
|
|
||||||
; EXTSYM GetData
|
|
||||||
; EXTSYM DeInitTCP
|
|
||||||
; EXTSYM StopServer
|
|
||||||
; EXTSYM Disconnect
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
; NOTE: For timing, Game60hzcall should be called at 50hz or 60hz (depending
|
; NOTE: For timing, Game60hzcall should be called at 50hz or 60hz (depending
|
||||||
; on romispal) after a call to InitPreGame and before DeInitPostGame are
|
; on romispal) after a call to InitPreGame and before DeInitPostGame are
|
||||||
@@ -1809,5 +1777,3 @@ NEWSYM GetTimeInSeconds
|
|||||||
div ebx
|
div ebx
|
||||||
pop es
|
pop es
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -18,12 +18,12 @@
|
|||||||
;along with this program; if not, write to the Free Software
|
;along with this program; if not, write to the Free Software
|
||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM AddSub256,InitVesa2,cbitmode,cvidmode,makepal
|
EXTSYM InitVesa2,cbitmode,cvidmode,makepal,scanlines,selcA000,vesa2_bits
|
||||||
EXTSYM scanlines,selcA000,vesa2_bits,vesa2_bpos,vesa2_clbit
|
EXTSYM vesa2_x,vesa2_y,vesa2selec,InitVesa12,videotroub
|
||||||
EXTSYM vesa2_gpos,vesa2_rpos,vesa2_usbit,vesa2_x,vesa2_y
|
|
||||||
EXTSYM vesa2selec,InitVesa12,videotroub
|
|
||||||
|
|
||||||
%ifdef __MSDOS__
|
%ifdef __MSDOS__
|
||||||
EXTSYM cscopymodeq,cscopymodex
|
EXTSYM cscopymodeq,cscopymodex
|
||||||
@@ -572,5 +572,3 @@ NEWSYM dosinitvideo
|
|||||||
mov ecx,6144
|
mov ecx,6144
|
||||||
pop es
|
pop es
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -18,20 +18,14 @@
|
|||||||
;along with this program; if not, write to the Free Software
|
;along with this program; if not, write to the Free Software
|
||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM JoyAC,JoyBC,JoyLC,JoyRC,JoySelec,JoyStart,JoyXC,JoyYC,WhichSW,_SW1
|
EXTSYM WhichSW,_SW1,_SW2,_readSideWinder,_SWCount,_SW3,_SW4,delay,pl1contrl
|
||||||
EXTSYM _SW2,_readSideWinder,delay,numjoy,pl1Ak,pl1Bk,pl1Lk,pl1Rk,pl1Xk
|
EXTSYM pl2contrl,pl1p209,pl2p209,pl3p209,pl4p209,pl3contrl,pl4contrl,pressed
|
||||||
EXTSYM pl1Yk,pl1contrl,pl1downk,pl1leftk,pl1rightk,pl1selk,pl1startk
|
EXTSYM read_gpp,pl5contrl,pl5p209,CalibXmin,CalibYmin,CalibXmax,CalibYmax
|
||||||
EXTSYM pl1upk,pl2Ak,pl2Bk,pl2Lk,pl2Rk,pl2Xk,pl2Yk,pl2contrl,pl2downk
|
EXTSYM CalibXmin209,CalibYmin209,CalibXmax209,CalibYmax209
|
||||||
EXTSYM pl2leftk,pl2rightk,pl2selk,pl2startk,pl2upk,_SWCount,_SW3,_SW4
|
|
||||||
EXTSYM pl3Ak,pl3Bk,pl3Lk,pl3Rk,pl3Xk,pl1p209,pl2p209,pl3p209,pl4p209
|
|
||||||
EXTSYM pl3Yk,pl3contrl,pl3downk,pl3leftk,pl3rightk,pl3selk,pl3startk
|
|
||||||
EXTSYM pl3upk,pl4Ak,pl4Bk,pl4Lk,pl4Rk,pl4Xk,pl4Yk,pl4contrl,pl4downk
|
|
||||||
EXTSYM pl4leftk,pl4rightk,pl4selk,pl4startk,pl4upk,pressed,read_gpp
|
|
||||||
EXTSYM pl5contrl,pl5p209
|
|
||||||
EXTSYM CalibXmin, CalibYmin, CalibXmax, CalibYmax, CalibXmin209
|
|
||||||
EXTSYM CalibYmin209, CalibXmax209, CalibYmax209
|
|
||||||
|
|
||||||
SECTION .data
|
SECTION .data
|
||||||
NEWSYM JoyAltrn2, db 2
|
NEWSYM JoyAltrn2, db 2
|
||||||
@@ -1678,7 +1672,5 @@ NEWSYM SetInputDevice209
|
|||||||
mov dword[eax+44],1cBh
|
mov dword[eax+44],1cBh
|
||||||
ret
|
ret
|
||||||
.nopp5
|
.nopp5
|
||||||
|
|
||||||
.exit
|
.exit
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|||||||
@@ -18,13 +18,11 @@
|
|||||||
;along with this program; if not, write to the Free Software
|
;along with this program; if not, write to the Free Software
|
||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM ComNum, ComIRQ, BaudRate
|
EXTSYM ComNum,ComIRQ,BaudRate,FossilUse,delay
|
||||||
EXTSYM FossilUse
|
|
||||||
EXTSYM GUIinit18_2hz,GUIinit36_4hz
|
|
||||||
EXTSYM GUIMenuItem
|
|
||||||
EXTSYM delay
|
|
||||||
|
|
||||||
%ifdef __MSDOS__
|
%ifdef __MSDOS__
|
||||||
EXTSYM dssel
|
EXTSYM dssel
|
||||||
@@ -453,5 +451,3 @@ NEWSYM DeInitModemC
|
|||||||
out dx,al
|
out dx,al
|
||||||
sti
|
sti
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -18,18 +18,16 @@
|
|||||||
;along with this program; if not, write to the Free Software
|
;along with this program; if not, write to the Free Software
|
||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM vesa2_usbit,vesa2_clbit,vesa2_clbitng,vesa2_clbitng2,vesa2_clbitng3
|
EXTSYM vesa2_usbit,vesa2_clbit,vesa2_clbitng,vesa2_clbitng2,vesa2_clbitng3
|
||||||
EXTSYM vesa2_x,vesa2_y,vesa2selec,vesa2_bits,vesa2_rpos,vesa2_gpos,vesa2_bpos
|
EXTSYM vesa2_x,vesa2_y,vesa2_bits,vesa2_rpos,vesa2_gpos,vesa2_bpos,vesa2_rposng
|
||||||
EXTSYM vesa2_rposng,vesa2_gposng,vesa2_bposng,vesa2_rtrcl,vesa2_rtrcla,vesa2_rfull
|
EXTSYM vesa2_gposng,vesa2_bposng,vesa2_rtrcl,vesa2_rtrcla,vesa2_rfull,InitDrive
|
||||||
EXTSYM vesa2_gtrcl,vesa2_gtrcla,vesa2_gfull,vesa2_btrcl,vesa2_btrcla,vesa2_bfull
|
EXTSYM vesa2_gtrcl,vesa2_gtrcla,vesa2_gfull,vesa2_btrcl,vesa2_btrcla,vesa2_bfull
|
||||||
EXTSYM vesa2red10,dcolortab,videotroub,Change_Dir
|
EXTSYM vesa2red10,videotroub,Change_Dir,genfulladdtab,DosExit,InitDir,noblocks
|
||||||
EXTSYM genfulladdtab,genfulladdtabng,DosExit
|
EXTSYM bytesperscanline,vesamode,VESAmodelist
|
||||||
EXTSYM InitDrive,gotoroot,InitDir,fulladdtab
|
|
||||||
; EXTSYM printnum,DosExit
|
|
||||||
EXTSYM LFBpointer,noblocks,bytesperscanline,vesamode,VESAmodelist
|
|
||||||
|
|
||||||
|
|
||||||
; add 0214h video mode
|
; add 0214h video mode
|
||||||
|
|
||||||
@@ -542,5 +540,3 @@ RMREGS
|
|||||||
.sp resw 1
|
.sp resw 1
|
||||||
.ss resw 1
|
.ss resw 1
|
||||||
.spare times 20 resd 1
|
.spare times 20 resd 1
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -18,18 +18,13 @@
|
|||||||
;along with this program; if not, write to the Free Software
|
;along with this program; if not, write to the Free Software
|
||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM printnum
|
EXTSYM DosExit,ZSNESBase,Change_Dir,PrintStr,newengen,HalfTransB,HalfTransC
|
||||||
EXTSYM DosExit,ZSNESBase,Change_Dir,PrintStr,newengen
|
EXTSYM InitDrive,InitDir,fulladdtab,UnusedBit,HalfTrans,UnusedBitXor
|
||||||
EXTSYM HalfTransB,HalfTransC
|
EXTSYM ngrposng,nggposng,ngbposng,Init_2xSaIMMX
|
||||||
EXTSYM InitDrive,gotoroot,InitDir,fulladdtab
|
|
||||||
; EXTSYM printhex
|
|
||||||
; EXTSYM printhex
|
|
||||||
EXTSYM UnusedBit,HalfTrans,UnusedBitXor,ngrposng,nggposng,ngbposng
|
|
||||||
; EXTSYM printhex
|
|
||||||
|
|
||||||
EXTSYM Init_2xSaIMMX
|
|
||||||
|
|
||||||
SECTION .data
|
SECTION .data
|
||||||
; add 0214h video mode
|
; add 0214h video mode
|
||||||
@@ -324,27 +319,6 @@ NEWSYM InitVesa2
|
|||||||
test word[fs:0000h],1b
|
test word[fs:0000h],1b
|
||||||
jz near .loopcheckmodes ; If mode is not available
|
jz near .loopcheckmodes ; If mode is not available
|
||||||
|
|
||||||
;
|
|
||||||
; xor eax,eax
|
|
||||||
; mov ax,[fs:12h]
|
|
||||||
; call printnum
|
|
||||||
; mov ah,02h
|
|
||||||
; mov dl,'x'
|
|
||||||
; int 21h
|
|
||||||
; mov ax,[fs:14h]
|
|
||||||
; call printnum
|
|
||||||
; mov ah,02h
|
|
||||||
; mov dl,'x'
|
|
||||||
; int 21h
|
|
||||||
; xor ah,ah
|
|
||||||
; mov al,[fs:19h]
|
|
||||||
; call printnum
|
|
||||||
; mov ah,02h
|
|
||||||
; mov dl,13
|
|
||||||
; int 21h
|
|
||||||
; mov dl,10
|
|
||||||
; int 21h
|
|
||||||
|
|
||||||
mov eax,[vesa2_x]
|
mov eax,[vesa2_x]
|
||||||
cmp [fs:12h],ax ; Check that the height matches
|
cmp [fs:12h],ax ; Check that the height matches
|
||||||
jnz near .loopcheckmodes
|
jnz near .loopcheckmodes
|
||||||
@@ -355,29 +329,13 @@ NEWSYM InitVesa2
|
|||||||
cmp [fs:19h],al ; Check bits/pixel for match
|
cmp [fs:19h],al ; Check bits/pixel for match
|
||||||
jnz near .loopcheckmodes
|
jnz near .loopcheckmodes
|
||||||
|
|
||||||
; mov ax,3
|
|
||||||
; int 10h
|
|
||||||
; xor eax,eax
|
|
||||||
; mov ax,[fs:0h]
|
|
||||||
; call printnum
|
|
||||||
; jmp DosExit
|
|
||||||
|
|
||||||
mov byte[TripBufAvail],1
|
mov byte[TripBufAvail],1
|
||||||
test word[fs:0000h],400h
|
test word[fs:0000h],400h
|
||||||
jz .notbuf
|
jz .notbuf
|
||||||
mov byte[TripBufAvail],1
|
mov byte[TripBufAvail],1
|
||||||
.notbuf
|
.notbuf
|
||||||
|
|
||||||
; jz .notvesa3
|
|
||||||
; xor eax,eax
|
|
||||||
; mov ax,[fs:0000h]
|
|
||||||
; call printhex
|
|
||||||
; jmp DosExit
|
|
||||||
.notvesa3
|
.notvesa3
|
||||||
|
|
||||||
; mov ah,07h
|
|
||||||
; int 21h
|
|
||||||
|
|
||||||
; D0 = Window supported
|
; D0 = Window supported
|
||||||
; 0 = Window is not supported
|
; 0 = Window is not supported
|
||||||
; 1 = Window is supported
|
; 1 = Window is supported
|
||||||
@@ -407,43 +365,39 @@ NEWSYM InitVesa2
|
|||||||
mov ax,[ebp]
|
mov ax,[ebp]
|
||||||
mov [vesamode],ax ; Store vesa 2 mode number
|
mov [vesamode],ax ; Store vesa 2 mode number
|
||||||
|
|
||||||
; call printhex
|
mov ax,[fs:10h]
|
||||||
; jmp DosExit
|
mov byte[vesa2red10],0
|
||||||
|
mov byte[vesa2_rposng],11
|
||||||
mov ax,[fs:10h]
|
mov byte[vesa2_gposng],6
|
||||||
mov byte[vesa2red10],0
|
mov byte[vesa2_bposng],0
|
||||||
mov byte[vesa2_rposng],11
|
mov dword[vesa2_clbitng],1111011111011110b
|
||||||
mov byte[vesa2_gposng],6
|
mov dword[vesa2_clbitng2],11110111110111101111011111011110b
|
||||||
mov byte[vesa2_bposng],0
|
mov dword[vesa2_clbitng2+4],11110111110111101111011111011110b
|
||||||
mov dword[vesa2_clbitng],1111011111011110b
|
mov dword[vesa2_clbitng3],0111101111101111b
|
||||||
mov dword[vesa2_clbitng2],11110111110111101111011111011110b
|
mov [bytesperscanline],ax ; Store bytes per scan line
|
||||||
mov dword[vesa2_clbitng2+4],11110111110111101111011111011110b
|
cmp byte[fs:20h],10
|
||||||
mov dword[vesa2_clbitng3],0111101111101111b
|
jne near .nored10
|
||||||
mov [bytesperscanline],ax ; Store bytes per scan line
|
mov byte[fs:20h],11
|
||||||
cmp byte[fs:20h],10
|
mov byte[vesa2red10],1
|
||||||
jne near .nored10
|
mov byte[vesa2_rposng],10
|
||||||
mov byte[fs:20h],11
|
mov byte[vesa2_gposng],5
|
||||||
mov byte[vesa2red10],1
|
mov dword[vesa2_clbitng],0111101111011110b
|
||||||
mov byte[vesa2_rposng],10
|
mov dword[vesa2_clbitng2],01111011110111100111101111011110b
|
||||||
mov byte[vesa2_gposng],5
|
mov dword[vesa2_clbitng2+4],01111011110111100111101111011110b
|
||||||
mov dword[vesa2_clbitng],0111101111011110b
|
mov dword[vesa2_clbitng3],0011110111101111b
|
||||||
mov dword[vesa2_clbitng2],01111011110111100111101111011110b
|
mov dword[UnusedBit], 10000000000000001000000000000000b
|
||||||
mov dword[vesa2_clbitng2+4],01111011110111100111101111011110b
|
mov dword[HalfTrans], 01111011110111100111101111011110b
|
||||||
mov dword[vesa2_clbitng3],0011110111101111b
|
mov dword[UnusedBitXor], 01111111111111110111111111111111b
|
||||||
|
mov dword[UnusedBit+4], 10000000000000001000000000000000b
|
||||||
mov dword[UnusedBit], 10000000000000001000000000000000b
|
mov dword[HalfTrans+4], 01111011110111100111101111011110b
|
||||||
mov dword[HalfTrans], 01111011110111100111101111011110b
|
mov dword[UnusedBitXor+4],01111111111111110111111111111111b
|
||||||
mov dword[UnusedBitXor], 01111111111111110111111111111111b
|
mov dword[HalfTransB], 00000100001000010000010000100001b
|
||||||
mov dword[UnusedBit+4], 10000000000000001000000000000000b
|
mov dword[HalfTransB+4], 00000100001000010000010000100001b
|
||||||
mov dword[HalfTrans+4], 01111011110111100111101111011110b
|
mov dword[HalfTransC], 01111011110111100111101111011110b
|
||||||
mov dword[UnusedBitXor+4],01111111111111110111111111111111b
|
mov dword[HalfTransC+4], 01111011110111100111101111011110b
|
||||||
mov dword[HalfTransB], 00000100001000010000010000100001b
|
mov dword[ngrposng],10
|
||||||
mov dword[HalfTransB+4], 00000100001000010000010000100001b
|
mov dword[nggposng],5
|
||||||
mov dword[HalfTransC], 01111011110111100111101111011110b
|
mov dword[ngbposng],0
|
||||||
mov dword[HalfTransC+4], 01111011110111100111101111011110b
|
|
||||||
mov dword[ngrposng],10
|
|
||||||
mov dword[nggposng],5
|
|
||||||
mov dword[ngbposng],0
|
|
||||||
|
|
||||||
.nored10
|
.nored10
|
||||||
; fix up bit lengths
|
; fix up bit lengths
|
||||||
|
|||||||
@@ -67,122 +67,55 @@
|
|||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM curblank,vidpastecopyscr,frameskip,newengen,vsyncon
|
EXTSYM curblank,vidpastecopyscr,frameskip,newengen,vsyncon,cvidmode,antienab
|
||||||
EXTSYM cvidmode,antienab, smallscreenon, smallscreence
|
EXTSYM smallscreenon,soundon,StereoSound,SoundQuality,MusicRelVol,endprog
|
||||||
EXTSYM soundon,StereoSound,SoundQuality,MusicRelVol
|
EXTSYM continueprog,spcBuffera,spcRamcmp,cbitmode,makepal,t1cc,LoadDir,LoadDrive
|
||||||
EXTSYM endprog,continueprog,spcBuffera,spcRamcmp,cbitmode,makepal
|
EXTSYM SRAMDir,SRAMChdir,SRAMDirCurDir,initsnes,fname,makeextension,sram
|
||||||
EXTSYM t1cc,LoadDir,LoadDrive,SRAMDir,SRAMChdir,SRAMDirCurDir,initsnes
|
EXTSYM loadfileGUI,GUIloadfailed,romloadskip,SetupROM,romdata,ramsize
|
||||||
EXTSYM fname,makeextension,sram,loadfileGUI,GUIloadfailed,romloadskip
|
EXTSYM cfgloadsdir,init65816,procexecloop,spcRam,spcPCRam,spcS,spcRamDP,spcA
|
||||||
EXTSYM SetupROM,romdata,ForcePal,ramsize,ramsizeand,curromsize
|
EXTSYM spcX,spcY,spcP,spcNZ,Voice0Status,Voice1Status,Voice2Status,Voice3Status
|
||||||
EXTSYM romispal,totlines,cfgloadsdir,init65816,procexecloop
|
EXTSYM Voice4Status,Voice5Status,Voice6Status,Voice7Status,ClearScreen
|
||||||
EXTSYM spcRam,spcPCRam,spcS,spcRamDP,spcA,spcX,spcY,spcP,spcNZ
|
EXTSYM statesaver,loadstate2,vidbuffer,ASCII2Font,hirestiledat,showallext
|
||||||
EXTSYM Voice0Status,Voice1Status,Voice2Status,Voice3Status,Voice4Status
|
EXTSYM scanlines,statefileloc,pl1selk,pl2selk,fnamest,sprlefttot,spritetablea
|
||||||
EXTSYM Voice5Status,Voice6Status,Voice7Status,romtype
|
EXTSYM fnames,CHIPBATT,sfxramdata,setaramdata,SETAEnable,cgram,srama,tempco0
|
||||||
EXTSYM ClearScreen,statesaver,loadstate2,vidbuffer,ASCII2Font,hirestiledat
|
EXTSYM prevbright,maxbr,prevpal,coladdr,coladdg,coladdb,scaddtype,ScreenScale
|
||||||
EXTSYM showallext,ROMTypeNOTFound,scanlines,statefileloc,pl1selk,pl2selk
|
EXTSYM vesa2red10,initvideo2,initvideo,pressed,UpdateDevices,memtabler8
|
||||||
EXTSYM fnamest,sprlefttot,spritetablea,fnames,CHIPBATT,sfxramdata,setaramdata,SETAEnable,cgram,srama
|
EXTSYM memtablew8,writeon,pl1contrl,pl2contrl,JoyRead,SetInputDevice,delay
|
||||||
EXTSYM tempco0,prevbright,maxbr,prevpal,coladdr,coladdg,coladdb
|
EXTSYM SetInputDevice209,FPSOn,RevStereo,WDSPReg0C,WDSPReg1C,pl12s34,resolutn
|
||||||
EXTSYM scaddtype,ScreenScale,vesa2red10,initvideo2,initvideo,pressed,UpdateDevices
|
EXTSYM InitDrive,InitDir,createnewcfg,Makemode7Table,vidbufferofsb,ZipSupport
|
||||||
EXTSYM memtabler8,memtablew8,writeon,pl1contrl,pl2contrl,JoyRead,SetInputDevice
|
EXTSYM wramdata,bgfixer,cfgnewgfx,cfgdontsave,videotroub,Open_File,Read_File
|
||||||
EXTSYM SetInputDevice209,FPSOn,RevStereo,WDSPReg0C,WDSPReg1C,WDSPReg2C
|
EXTSYM Close_File,Write_File,Create_File,File_Seek,File_Seek_End,Get_Date
|
||||||
EXTSYM WDSPReg3C,pl12s34,resolutn,delay,chaton,chatstrL,chatLpos,chatstrR,chatRTL
|
EXTSYM Check_Key,Get_Key,Change_Drive,Change_Single_Dir,Change_Dir,Get_Dir
|
||||||
EXTSYM InitDrive,InitDir,createnewcfg,Makemode7Table,SnowOn
|
EXTSYM Get_First_Entry,Get_Next_Entry,Set_DTA_Address,curexecstate,TripBufAvail
|
||||||
EXTSYM vidbufferofsb,ZipSupport,wramdata,bgfixer,cfgnewgfx
|
EXTSYM nmiprevaddrl,nmiprevaddrh,nmirept,nmiprevline,nmistatus,spcnumread
|
||||||
EXTSYM cfgdontsave,videotroub,Open_File,Read_File,Close_File,Write_File,Create_File
|
EXTSYM spchalted,NextLineCache,ResetTripleBuf,GUINGVID,ScanCodeListing
|
||||||
EXTSYM File_Seek,File_Seek_End,Open_File_Write,Get_Date,Check_Key,Get_Key
|
EXTSYM AdjustFrequency,GUISaveVars,Init_Mouse,Get_MouseData,Set_MouseXMax
|
||||||
EXTSYM Change_Drive,Change_Single_Dir,Change_Dir,Get_Dir,Get_First_Entry
|
EXTSYM Set_MouseYMax,Set_MousePosition,Get_MousePositionDisplacement,GUIInit
|
||||||
EXTSYM Get_Next_Entry,Set_DTA_Address,timer2upd,curexecstate,TripBufAvail
|
EXTSYM GUIDeInit,SpecialLine,DrawWater,DrawBurn,SA1Enable,SA1RAMArea,GUIFName
|
||||||
EXTSYM nmiprevaddrl,nmiprevaddrh,nmirept,nmiprevline,nmistatus,spcnumread,spchalted
|
EXTSYM GUICName,MMXCheck,SaveCombFile,showinfogui,WinErrorA,WinErrorB
|
||||||
EXTSYM versionNumber
|
EXTSYM ErrorPointer,MessageOn,GetHostName,GetTime,sndrot,regsbackup,GetScreen
|
||||||
EXTSYM NextLineCache,VidStartDraw,ResetTripleBuf,GUINGVID
|
EXTSYM GUITBWVID,Clear2xSaIBuffer,MouseWindow,GotoHomepage,cfgcvidmode
|
||||||
EXTSYM ScanCodeListing,AdjustFrequency,GUISaveVars,Init_Mouse
|
EXTSYM ExitFromGUI,GUIWFVID,cfgvsync,newgfx16b,cfgscanline,cfginterp
|
||||||
EXTSYM Get_MouseData,Set_MouseXMax,Set_MouseYMax,Set_MousePosition,Get_MousePositionDisplacement
|
EXTSYM NumVideoModes,cfgvolume,MusicVol,DSPMem,NumInputDevices,GUIInputNames
|
||||||
EXTSYM GUIInit,GUIDeInit,SpecialLine
|
EXTSYM GUIVideoModeNames,GUISLVID,GUIINVID,GUIEAVID,GUIIEVID,GUIFSVID,GUIWSVID
|
||||||
EXTSYM DrawWater,DrawBurn,RemoteDisconnect,loadstate3
|
EXTSYM GUISSVID,GUITBVID,GUIHSVID,GUI2xVID,GUII2VID,GUIM7VID,cfgsoundon
|
||||||
EXTSYM SA1Enable,SA1RAMArea
|
EXTSYM cfgSoundQuality,cfgStereoSound,cfgforce8b,convertnum,converthex,snesmouse
|
||||||
EXTSYM GUIFName,GUICName
|
EXTSYM pl1upk,pl1downk,pl1leftk,pl1rightk,pl1Lk,pl1Rk,pl1Ak,pl1Bk,outofmemfix
|
||||||
EXTSYM printnum
|
EXTSYM yesoutofmemory,JoyX,JoyY,JoyMinX,JoyMinY,JoyMaxX,JoyMaxY,JoyMinX209
|
||||||
EXTSYM MMXCheck
|
EXTSYM JoyMaxX209,JoyMinY209,JoyMaxY209,GetCoords,GetCoords3,MultiTap,SFXEnable
|
||||||
EXTSYM SaveCombFile
|
EXTSYM RestoreSystemVars,GUIBIFIL,GUIHQ2X,GUIHQ3X,GUIHQ4X,firstsaveinc,nssdip1
|
||||||
EXTSYM valuea
|
EXTSYM nssdip2,nssdip3,nssdip4,nssdip5,nssdip6,SkipMovie,MovieStop,MoviePlay
|
||||||
EXTSYM showinfogui
|
EXTSYM MovieRecord,MovieInsertChapter,MovieSeekAhead,MovieSeekBehind
|
||||||
EXTSYM BackupCVFrame, tempedx, tempesi, tempedi, tempebp
|
EXTSYM ResetDuringMovie
|
||||||
EXTSYM Wait1SecWin,ClearUDPStuff
|
|
||||||
EXTSYM DisableSUDPPacket,EnableSUDPPacket
|
|
||||||
EXTSYM BackStateSize
|
|
||||||
EXTSYM ResetExecStuff
|
|
||||||
EXTSYM RestoreCVFrame
|
|
||||||
EXTSYM clearSPCRAM
|
|
||||||
EXTSYM CurRecv,BackState,CBackupPos,PBackupPos,PPValue,DPValue
|
|
||||||
EXTSYM LatencyV
|
|
||||||
EXTSYM LatencyRecvPtr,LatencySendPtr
|
|
||||||
EXTSYM NumofBanks
|
|
||||||
EXTSYM WinErrorA,WinErrorB,WinErrorC
|
|
||||||
EXTSYM ErrorPointer
|
|
||||||
EXTSYM MessageOn,Msgptr,MsgCount
|
|
||||||
EXTSYM PJoyAOrig,PJoyBOrig,PJoyCOrig,PJoyDOrig,PJoyEOrig
|
|
||||||
EXTSYM GetHostName,GetTime
|
|
||||||
EXTSYM vramaddr,curypos,ClearRegs,vram,sndrot,regsbackup
|
|
||||||
EXTSYM GetScreen,GUITBWVID
|
|
||||||
EXTSYM Clear2xSaIBuffer
|
|
||||||
EXTSYM MouseWindow
|
|
||||||
EXTSYM GotoHomepage
|
|
||||||
EXTSYM cfgcvidmode, ExitFromGUI
|
|
||||||
EXTSYM GUIWFVID
|
|
||||||
EXTSYM cfgvsync,newgfx16b
|
|
||||||
EXTSYM cfgscanline,cfginterp
|
|
||||||
EXTSYM NumVideoModes
|
|
||||||
EXTSYM cfgvolume, MusicVol, DSPMem
|
|
||||||
EXTSYM NumInputDevices,GUIInputNames
|
|
||||||
EXTSYM GUIVideoModeNames
|
|
||||||
EXTSYM GUISLVID,GUIINVID,GUIEAVID,GUIIEVID,GUIFSVID,GUIWSVID
|
|
||||||
EXTSYM GUISSVID,GUITBVID,GUIHSVID,GUI2xVID,GUII2VID,GUIM7VID
|
|
||||||
EXTSYM cfgsoundon,cfgSoundQuality,cfgStereoSound,cfgforce8b
|
|
||||||
EXTSYM Force8b,convertnum,converthex
|
|
||||||
EXTSYM per2exec
|
|
||||||
EXTSYM hostname
|
|
||||||
EXTSYM UDPConfig
|
|
||||||
EXTSYM snesmouse
|
|
||||||
EXTSYM pl1upk,pl1downk,pl1leftk,pl1rightk,pl1Lk,pl1Rk,pl1Ak,pl1Bk
|
|
||||||
EXTSYM outofmemfix,yesoutofmemory
|
|
||||||
EXTSYM JoyX,JoyY,JoyMinX,JoyMinY,JoyMaxX,JoyMaxY,JoyMinX209,JoyMaxX209
|
|
||||||
EXTSYM JoyMinY209,JoyMaxY209,GetCoords,GetCoords3
|
|
||||||
EXTSYM MultiTap,SFXEnable
|
|
||||||
EXTSYM RestoreSystemVars
|
|
||||||
EXTSYM TCPIPStartServer
|
|
||||||
EXTSYM TCPIPInitConnectToServer
|
|
||||||
EXTSYM TCPIPWaitForConnection
|
|
||||||
EXTSYM tcperr
|
|
||||||
EXTSYM TCPIPConnectToServer
|
|
||||||
EXTSYM TCPIPConnectToServerW
|
|
||||||
EXTSYM selc0040
|
|
||||||
EXTSYM TCPIPPreparePacket
|
|
||||||
EXTSYM TCPIPSendPacket,TCPIPSendPacketUDP
|
|
||||||
EXTSYM TCPIPDisconnect,TCPIPStatus
|
|
||||||
EXTSYM TCPIPStoreByte
|
|
||||||
EXTSYM TCPIPGetByte,GUIBIFIL
|
|
||||||
EXTSYM GUIHQ2X
|
|
||||||
EXTSYM GUIHQ3X
|
|
||||||
EXTSYM GUIHQ4X
|
|
||||||
EXTSYM firstsaveinc
|
|
||||||
EXTSYM nssdip1,nssdip2,nssdip3,nssdip4,nssdip5,nssdip6
|
|
||||||
EXTSYM SkipMovie,MovieStop,MoviePlay,MovieRecord,MovieInsertChapter
|
|
||||||
EXTSYM MovieSeekAhead,MovieSeekBehind,ResetDuringMovie
|
|
||||||
|
|
||||||
%ifdef __LINUX__
|
%ifdef __LINUX__
|
||||||
EXTSYM numlockptr
|
EXTSYM numlockptr
|
||||||
%endif
|
%endif
|
||||||
%ifdef __WIN32__
|
%ifdef __WIN32__
|
||||||
EXTSYM initDirectDraw
|
EXTSYM initDirectDraw,reInitSound
|
||||||
EXTSYM reInitSound
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%ifdef __MSDOS__
|
%ifdef __MSDOS__
|
||||||
EXTSYM dssel, cantinitmodem, ModemClearBuffer, ModemGetChar
|
EXTSYM dssel
|
||||||
EXTSYM InitModem, DeInitModem, ModemCheckRing, ModemCheckDCD
|
|
||||||
EXTSYM DeInitModemC, ModemSendChar, UartType
|
|
||||||
EXTSYM deinitipx, IPXSearchval, ipxlookforconnect, initipx
|
|
||||||
EXTSYM PreparePacketIPX,SendPacketIPX,ipxgetchar,ipxsendchar
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%include "gui/guitools.inc"
|
%include "gui/guitools.inc"
|
||||||
@@ -195,8 +128,6 @@ EXTSYM PreparePacketIPX,SendPacketIPX,ipxgetchar,ipxsendchar
|
|||||||
%include "gui/guicombo.inc"
|
%include "gui/guicombo.inc"
|
||||||
%include "gui/guiload.inc"
|
%include "gui/guiload.inc"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SECTION .data
|
SECTION .data
|
||||||
|
|
||||||
NEWSYM WaterOn, db 1
|
NEWSYM WaterOn, db 1
|
||||||
|
|||||||
@@ -18,25 +18,23 @@
|
|||||||
;along with this program; if not, write to the Free Software
|
;along with this program; if not, write to the Free Software
|
||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM DSPMem,FPSOn,Makemode7Table,MessageOn,vesa2red10,scanlines,smallscreenon
|
EXTSYM DSPMem,FPSOn,Makemode7Table,MessageOn,vesa2red10,scanlines,smallscreenon
|
||||||
EXTSYM MsgCount,Msgptr,OutputGraphicString,OutputGraphicString16b
|
EXTSYM MsgCount,Msgptr,OutputGraphicString,OutputGraphicString16b,vidbuffer
|
||||||
EXTSYM PrepareSaveState,ResetState,breakatsignb,breakatsignc,cvidmode
|
EXTSYM PrepareSaveState,ResetState,breakatsignb,cvidmode,cbitmode,copyvid
|
||||||
EXTSYM cbitmode,copyvid,curblank,drawhline,drawhline16b,drawvline
|
EXTSYM curblank,drawhline,drawhline16b,drawvline,drawvline16b,fnames,frameskip
|
||||||
EXTSYM drawvline16b,fnames,frameskip,mode7tab,pressed,spcA
|
EXTSYM mode7tab,pressed,spcA,spcBuffera,spcNZ,spcP,spcPCRam,spcRam,spcS,spcX
|
||||||
EXTSYM spcBuffera,spcNZ,spcP,spcPCRam,spcRam,spcRamDP,spcS,spcX,spcY
|
EXTSYM spcY,spcon,vesa2_bpos,vesa2_clbit,vesa2_gpos,vesa2_rpos,vesa2selec
|
||||||
EXTSYM spcon,vesa2_bpos,vesa2_clbit,vesa2_gpos,vesa2_rpos,vesa2selec
|
EXTSYM spritetablea,sprlefttot,newengen,spcextraram,resolutn,Open_File
|
||||||
EXTSYM vidbuffer,spritetablea,sprlefttot,newengen,spcextraram,resolutn
|
EXTSYM Close_File,Write_File,Create_File,Get_Key,Get_Date,continueprognokeys
|
||||||
EXTSYM Open_File,Close_File,Read_File,Write_File,Create_File,Get_Key,Get_Date
|
EXTSYM ForceNonTransp,GUIOn,Check_Key,JoyRead,GetScreen,SSKeyPressed
|
||||||
EXTSYM continueprognokeys,ForceNonTransp,GUIOn,Check_Key,JoyRead
|
EXTSYM SPCKeyPressed,StopSound,StartSound,ExecExitOkay,t1cc,Clear2xSaIBuffer
|
||||||
EXTSYM GetScreen,SSKeyPressed,SPCKeyPressed,StopSound,StartSound
|
EXTSYM romdata,romtype,ScreenShotFormat,Voice0Disable,Voice1Disable
|
||||||
EXTSYM ExecExitOkay,t1cc
|
EXTSYM Voice2Disable,Voice3Disable,Voice4Disable,Voice5Disable,Voice6Disable
|
||||||
EXTSYM Clear2xSaIBuffer
|
EXTSYM Voice7Disable,SRAMChdir,SPCPath,SnapPath,CHPath,ZFileCHDir
|
||||||
EXTSYM romdata,romtype,ScreenShotFormat
|
|
||||||
EXTSYM Voice0Disable,Voice1Disable,Voice2Disable,Voice3Disable
|
|
||||||
EXTSYM Voice4Disable,Voice5Disable,Voice6Disable,Voice7Disable
|
|
||||||
EXTSYM SRAMChdir, SPCPath, SnapPath, Change_Dir, CHPath, ZFileCHDir
|
|
||||||
%ifndef NO_PNG
|
%ifndef NO_PNG
|
||||||
EXTSYM Grab_PNG_Data
|
EXTSYM Grab_PNG_Data
|
||||||
%endif
|
%endif
|
||||||
@@ -384,25 +382,13 @@ NEWSYM showmenu
|
|||||||
.start_dump
|
.start_dump
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
; cmp byte[newengen],1
|
|
||||||
; je .unablespc
|
|
||||||
mov dword[Msgptr],.search
|
mov dword[Msgptr],.search
|
||||||
mov eax,[MsgCount]
|
mov eax,[MsgCount]
|
||||||
mov [MessageOn],eax
|
mov [MessageOn],eax
|
||||||
; mov al,[newengen]
|
|
||||||
; mov byte[newengen],0
|
|
||||||
; push eax
|
|
||||||
call copyvid
|
call copyvid
|
||||||
; pop eax
|
|
||||||
; mov [newengen],al
|
|
||||||
; call breakatsignc
|
|
||||||
; cmp byte[prbreak],1
|
|
||||||
; je .yesesc
|
|
||||||
mov byte[SPCSave],1
|
mov byte[SPCSave],1
|
||||||
call breakatsignb
|
call breakatsignb
|
||||||
mov byte[SPCSave],0
|
mov byte[SPCSave],0
|
||||||
; cmp byte[prbreak],1
|
|
||||||
; je .yesesc
|
|
||||||
call savespcdata
|
call savespcdata
|
||||||
|
|
||||||
mov byte[curblank],40h
|
mov byte[curblank],40h
|
||||||
@@ -1617,4 +1603,3 @@ restore16b:
|
|||||||
mov byte[vesa2_gpos],6
|
mov byte[vesa2_gpos],6
|
||||||
.nored
|
.nored
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|||||||
@@ -18,84 +18,45 @@
|
|||||||
;along with this program; if not, write to the Free Software
|
;along with this program; if not, write to the Free Software
|
||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM DosExit,UpdateDevices,InitSPC,Makemode7Table,MusicRelVol,MusicVol
|
EXTSYM DosExit,UpdateDevices,Makemode7Table,MusicRelVol,MusicVol,makesprprtable
|
||||||
EXTSYM makesprprtable,romloadskip,start65816,startdebugger,SfxR0
|
EXTSYM romloadskip,start65816,startdebugger,SfxR0,showinfogui,inittable
|
||||||
EXTSYM showinfogui
|
EXTSYM SA1inittable,MessageOn,Msgptr,MsgCount,sndrot,SnowTimer,inittableb
|
||||||
EXTSYM filefound,inittable,SA1inittable
|
EXTSYM inittablec,newgfx16b,cfgreinittime,Open_File,Read_File,Write_File
|
||||||
EXTSYM MessageOn,Msgptr,MsgCount,sndrot,SnowTimer
|
EXTSYM Close_File,Output_Text,Change_Dir,Create_File,SPCDisable,osm2dis
|
||||||
EXTSYM inittableb,inittablec,newgfx16b,cfgreinittime
|
EXTSYM BackupSystemVars,SnowData,SnowVelDist,cvidmode,newengen,cfgnewgfx
|
||||||
EXTSYM Open_File,Read_File,Write_File,Close_File,Output_Text,Get_Key
|
EXTSYM GUI16VID,NewEngEnForce,TextFile,Setper2exec,JoyRead,pressed,pl3Ak,pl3Bk
|
||||||
EXTSYM Delete_File,Get_First_Entry,Get_Next_Entry,Change_Dir,InitDSP
|
EXTSYM pl3Lk,pl3Rk,pl3Xk,pl3Yk,pl3contrl,pl3downk,pl3leftk,pl3rightk,pl3selk
|
||||||
EXTSYM Remove_Dir,Change_Single_Dir,Create_Dir,Get_Memfree,Create_File
|
EXTSYM pl3startk,pl3upk,pl4Ak,pl4Bk,pl4Lk,pl4Rk,pl4Xk,pl4Yk,pl4contrl,pl4downk
|
||||||
EXTSYM SPCDisable,osm2dis,CurRecv,BackupSystemVars
|
EXTSYM pl4leftk,pl4rightk,pl4selk,pl4startk,pl4upk,mousebuttons,mousexdir,pl5Ak
|
||||||
EXTSYM SnowData,SnowVelDist
|
EXTSYM pl5Bk,pl5Lk,pl5Rk,pl5Xk,pl5Yk,pl5contrl,pl5downk,pl5leftk,pl5rightk
|
||||||
EXTSYM cvidmode,newengen,cfgnewgfx,GUI16VID,NewEngEnForce
|
EXTSYM pl5selk,pl5startk,pl5upk,mouseydir,mousexpos,mouseypos,snesmouse,sram
|
||||||
EXTSYM PrintChar,TextFile
|
EXTSYM processmouse,ssautosw,GUIDelayB,pl12s34,pl1Xtk,pl1Ytk,pl1Atk,pl1Btk
|
||||||
EXTSYM Setper2exec,per2exec
|
EXTSYM pl2Xtk,pl2Ytk,pl2Atk,pl2Btk,pl3Xtk,pl3Ytk,pl3Atk,pl3Btk,pl4Xtk,pl4Ytk
|
||||||
EXTSYM JoyRead,JoyReadControl,joy4218,joy4219,joy421A,joy421B,pressed
|
EXTSYM pl4Atk,pl4Btk,pl1ULk,pl1URk,pl1DLk,pl1DRk,pl2ULk,pl2URk,pl2DLk,pl2DRk
|
||||||
EXTSYM pl3Ak,pl3Bk,pl3Lk,pl3Rk,pl3Xk,pl1p209,pl2p209,pl3p209,pl4p209
|
EXTSYM pl3ULk,pl3URk,pl3DLk,pl3DRk,pl4ULk,pl4URk,pl4DLk,pl4DRk,pl5ULk,pl5URk
|
||||||
EXTSYM pl3Yk,pl3contrl,pl3downk,pl3leftk,pl3rightk,pl3selk,pl3startk
|
EXTSYM pl5DLk,pl5DRk,pl5Xtk,pl5Ytk,pl5Atk,pl5Btk,pl1Ltk,pl1Rtk,pl2Ltk,pl2Rtk
|
||||||
EXTSYM pl3upk,pl4Ak,pl4Bk,pl4Lk,pl4Rk,pl4Xk,pl4Yk,pl4contrl,pl4downk
|
EXTSYM pl3Ltk,pl3Rtk,pl4Ltk,pl4Rtk,pl5Ltk,pl5Rtk,Turbo30hz,NumComboLocl
|
||||||
EXTSYM pl4leftk,pl4rightk,pl4selk,pl4startk,pl4upk,mousebuttons,mousexdir
|
EXTSYM ComboBlHeader,ComboHeader,CombinDataLocl,CombinDataGlob,NumCombo
|
||||||
EXTSYM pl5Ak,pl5Bk,pl5Lk,pl5Rk,pl5Xk,pl5Yk,pl5contrl,pl5downk
|
EXTSYM GUIComboGameSpec,mousexloc,mouseyloc,extlatch,FIRTAPVal0,FIRTAPVal1
|
||||||
EXTSYM pl5leftk,pl5rightk,pl5selk,pl5startk,pl5upk
|
EXTSYM FIRTAPVal2,FIRTAPVal3,FIRTAPVal4,FIRTAPVal5,FIRTAPVal6,FIRTAPVal7,INTEnab
|
||||||
EXTSYM mouseydir,mousexpos,mouseypos,snesmouse,processmouse,ssautosw
|
EXTSYM JoyAPos,JoyBPos,NMIEnab,SPCROM,VIRQLoc,coladdb,coladdg,coladdr,doirqnext
|
||||||
EXTSYM GUIDelayB,pl12s34
|
EXTSYM forceblnk,nmiprevaddrh,nmiprevaddrl,nmiprevline,nmirept,nmistatus
|
||||||
EXTSYM pl1Xtk,pl1Ytk,pl1Atk,pl1Btk,pl2Xtk,pl2Ytk,pl2Atk,pl2Btk
|
EXTSYM opexec268,opexec268b,opexec268cph,opexec268cphb,opexec358,opexec358b
|
||||||
EXTSYM pl3Xtk,pl3Ytk,pl3Atk,pl3Btk,pl4Xtk,pl4Ytk,pl4Atk,pl4Btk
|
EXTSYM opexec358cph,spcextraram,opexec358cphb,prevoamptr,reg1read,reg2read
|
||||||
EXTSYM pl1ULk,pl1URk,pl1DLk,pl1DRk,pl2ULk,pl2URk,pl2DLk,pl2DRk
|
EXTSYM reg3read,reg4read,resolutn,romdata,scrndis,spcP,spcRam,spcnumread
|
||||||
EXTSYM pl3ULk,pl3URk,pl3DLk,pl3DRk,pl4ULk,pl4URk,pl4DLk,pl4DRk
|
EXTSYM spchalted,tableD,timeron,vidbright,SPC700read,SPC700write,spc700read
|
||||||
EXTSYM pl5ULk,pl5URk,pl5DLk,pl5DRk,pl5Xtk,pl5Ytk,pl5Atk,pl5Btk
|
EXTSYM GUIReset,InitC4,SA1Reset,SetAddressingModesSA1,SDD1BankA,SPC7110init
|
||||||
EXTSYM pl1Ltk,pl1Rtk,pl2Ltk,pl2Rtk,pl3Ltk,pl3Rtk,pl4Ltk,pl4Rtk,pl5Ltk,pl5Rtk
|
EXTSYM RTCinit,InitOBC,memaccessspc7110r8,memaccessspc7110r16,memaccessspc7110w8
|
||||||
EXTSYM Turbo30hz
|
EXTSYM memaccessspc7110w16,ram7f,snesmap2,snesmmap,MultiTap,memaccessbankr848mb
|
||||||
EXTSYM NumComboLocl,ComboBlHeader,ComboHeader,CombinDataLocl
|
EXTSYM memaccessbankr1648mb,procexecloop,ram7fa,wramdata,wramdataa,fname,fnames
|
||||||
EXTSYM CombinDataGlob,NumCombo,GUIComboGameSpec
|
EXTSYM GetCurDir,SRAMChdir,cfgloadsdir,fnamest,statefileloc,InitDir,InitDrive
|
||||||
EXTSYM mousexloc,mouseyloc
|
EXTSYM curromspace,infoloc,patchfile,romispal,initregr,initregw,memtabler16
|
||||||
EXTSYM extlatch,BackState
|
EXTSYM memtabler8,memtablew16,memtablew8,sfxramdata,ScrDispl,wramreadptr
|
||||||
EXTSYM FIRTAPVal0,FIRTAPVal1,FIRTAPVal2,FIRTAPVal3,FIRTAPVal4
|
EXTSYM wramwriteptr,loadstate2,CMovieExt,MoviePlay
|
||||||
EXTSYM FIRTAPVal5,FIRTAPVal6,FIRTAPVal7,INTEnab,JoyAPos,JoyBPos
|
|
||||||
EXTSYM NMIEnab,SPCROM,VIRQLoc,coladdb,coladdg,coladdr,doirqnext
|
|
||||||
EXTSYM forceblnk,nmiprevaddrh,nmiprevaddrl,nmiprevline
|
|
||||||
EXTSYM nmirept,nmistatus,opexec268,opexec268b,opexec268cph
|
|
||||||
EXTSYM opexec268cphb,opexec358,opexec358b,opexec358cph,spcextraram
|
|
||||||
EXTSYM opexec358cphb,prevoamptr,reg1read,reg2read,reg3read
|
|
||||||
EXTSYM reg4read,resolutn,romdata,scrndis,spcP,spcRam
|
|
||||||
EXTSYM spcnumread,spchalted,tableD,timeron,vidbright,OldGfxMode2
|
|
||||||
EXTSYM SPC700read,SPC700write,GUIDoReset,spc700read,GUIReset
|
|
||||||
EXTSYM InitC4,SA1Reset,SetAddressingModesSA1,SDD1BankA
|
|
||||||
EXTSYM SPC7110init,RTCinit,InitOBC
|
|
||||||
EXTSYM memaccessspc7110r8,memaccessspc7110r16
|
|
||||||
EXTSYM memaccessspc7110w8,memaccessspc7110w16
|
|
||||||
EXTSYM ram7f,snesmap2,snesmmap,sram,MultiTap
|
|
||||||
EXTSYM memaccessbankr848mb,memaccessbankr1648mb
|
|
||||||
EXTSYM cpuover,execloop,procexecloop,curexecstate,debugdisble,vidbuffer
|
|
||||||
EXTSYM Sup16mbit,Sup48mbit,debugbufa,pal16b,pal16bcl,pal16bclha
|
|
||||||
EXTSYM pal16bxcl,ram7fa,regptra,regptwa,srama,vidmemch2,vidmemch4
|
|
||||||
EXTSYM vidmemch8,vcache2b,vcache4b,vcache8b,vram,wramdata,wramdataa
|
|
||||||
EXTSYM fname,fnames,GetCurDir,GUIcurrentdir,PrintStr
|
|
||||||
;STUB DDOI
|
|
||||||
;EXTSYM GUIcurrentdir,PrintStr
|
|
||||||
EXTSYM DTALoc,spc7110romptr,allocspc7110
|
|
||||||
EXTSYM SRAMChdir,cfgloadsdir,fnamest,statefileloc,frameskip
|
|
||||||
EXTSYM ForcePal,ForceROMTiming,ForceHiLoROM,InitDir,InitDrive,enterpress
|
|
||||||
EXTSYM maxromspace,curromspace,infoloc,patchfile
|
|
||||||
EXTSYM gotoroot,headdata,printnum,romispal
|
|
||||||
EXTSYM InitFxTables,SfxR1,SfxR2,SfxSCMR,SfxSFR,finterleave
|
|
||||||
EXTSYM initregr,initregw,memtabler16,DSP1Read16b3F,memaccessbankr16
|
|
||||||
EXTSYM memtabler8,DSP1Read8b3F,memaccessbankr8,memtablew16,DSP1Write16b
|
|
||||||
EXTSYM memaccessbankw16,memtablew8,DSP1Write8b,memaccessbankw8,DSP1Write16b3F
|
|
||||||
EXTSYM regaccessbankr16,regaccessbankr8,regaccessbankw16,regaccessbankw8
|
|
||||||
EXTSYM sfxaccessbankr16,sfxaccessbankr16b,sfxaccessbankr16c,DSP1Write8b3F
|
|
||||||
EXTSYM sfxaccessbankr16d,sfxaccessbankr8,sfxaccessbankr8b,sfxaccessbankr8c
|
|
||||||
EXTSYM sfxaccessbankr8d,sfxaccessbankw16,sfxaccessbankw16b,sfxaccessbankw16c
|
|
||||||
EXTSYM sfxaccessbankw16d,sfxaccessbankw8,sfxaccessbankw8b,sfxaccessbankw8c
|
|
||||||
EXTSYM sfxaccessbankw8d,sfxramdata
|
|
||||||
EXTSYM sramaccessbankr16,sramaccessbankr16s,sramaccessbankr8,sramaccessbankr8s
|
|
||||||
EXTSYM sramaccessbankw16,sramaccessbankw16s,sramaccessbankw8,sramaccessbankw8s
|
|
||||||
EXTSYM ScrDispl,wramreadptr,wramwriteptr
|
|
||||||
EXTSYM loadstate2,CMovieExt,MoviePlay
|
|
||||||
|
|
||||||
;initc.c
|
;initc.c
|
||||||
EXTSYM clearmem,clearSPCRAM,PatchUsingIPS,ZOpenFileName,loadROM,SPC7110IndexSize
|
EXTSYM clearmem,clearSPCRAM,PatchUsingIPS,ZOpenFileName,loadROM,SPC7110IndexSize
|
||||||
|
|||||||
@@ -18,18 +18,16 @@
|
|||||||
;along with this program; if not, write to the Free Software
|
;along with this program; if not, write to the Free Software
|
||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
ALIGN 32
|
|
||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM vesa2selec,vidbuffer,GUIOn,MMXSupport,resolutn,En2xSaI,antienab,scanlines
|
EXTSYM vidbuffer,GUIOn,MMXSupport,resolutn,En2xSaI,antienab,scanlines
|
||||||
EXTSYM hirestiledat,res512switch,curblank,spritetablea
|
EXTSYM hirestiledat,res512switch,curblank,spritetablea,lineleft,_2xSaILineW
|
||||||
EXTSYM lineleft,_2xSaILineW,_2xSaISuperEagleLineW, _2xSaISuper2xSaILineW
|
EXTSYM _2xSaISuperEagleLineW, _2xSaISuper2xSaILineW,newengen,cfield,HalfTrans
|
||||||
EXTSYM newengen,cfield,HalfTrans
|
EXTSYM GUIOn2,FilteredGUI,SpecialLine,vidbufferofsb,HalfTransB,HalfTransC
|
||||||
EXTSYM GUIOn2,FilteredGUI
|
|
||||||
EXTSYM SpecialLine
|
ALIGN32
|
||||||
EXTSYM vidbufferofsb
|
|
||||||
EXTSYM HalfTransB,HalfTransC
|
|
||||||
|
|
||||||
SECTION .bss
|
SECTION .bss
|
||||||
NEWSYM AddEndBytes, resd 1 ; Number of bytes between each line
|
NEWSYM AddEndBytes, resd 1 ; Number of bytes between each line
|
||||||
@@ -1563,5 +1561,4 @@ NEWSYM interpolate640x480x16bwin
|
|||||||
|
|
||||||
SECTION .data
|
SECTION .data
|
||||||
InterPtr dd 0
|
InterPtr dd 0
|
||||||
|
SECTION .text
|
||||||
|
|
||||||
|
|||||||
@@ -20,109 +20,33 @@
|
|||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM DosExit,ZFileSystemInit
|
EXTSYM DosExit,ZFileSystemInit,getcmdline,GUIRestoreVars,getcfg,obtaindir
|
||||||
EXTSYM getcmdline,GUIRestoreVars,getcfg,obtaindir,ConvertJoyMap,tparms
|
EXTSYM ConvertJoyMap,tparms,SBHDMA,spcon,cfgsoundon,cfgcvidmode,InitDir
|
||||||
EXTSYM SBHDMA
|
EXTSYM InitDrive,SRAMChdir,DOScreatenewcfg,ExecGUISaveVars,allocptr,putchar
|
||||||
EXTSYM ccmdline
|
EXTSYM getchar,ZOpenFile,ZOpenMode,ZFileSeek,ZOpenFileName,ZFileSeekMode
|
||||||
EXTSYM FilenameStart
|
EXTSYM ZFileSeekPos,ZFileSeekHandle,ZFileWriteHandle,ZFileWriteSize
|
||||||
EXTSYM spcon
|
EXTSYM ZFileWriteBlock,ZFileWrite,ZFileReadHandle,ZFileReadSize,ZFileReadBlock
|
||||||
EXTSYM cfgsoundon
|
EXTSYM ZFileRead,ZFileDelFName,ZFileDelete,ZCloseFileHandle,ZCloseFile
|
||||||
EXTSYM cfgcvidmode
|
EXTSYM ZFileTellHandle,ZFileTell,ZFFTimeFName,ZFTime,ZFDate,ZFileGetFTime
|
||||||
EXTSYM pl1contrl,pl2contrl
|
EXTSYM GetTime,GetDate,GUIkeydelay2,ZFileMKDir,ZFileCHDir,ZFileRMDir,CHPath
|
||||||
EXTSYM InitDir,InitDrive,SRAMChdir
|
EXTSYM MKPath,RMPath,ZFileGetDir,DirName,DTALoc,DTALocPos,ZFileFindATTRIB
|
||||||
EXTSYM DOScreatenewcfg,ExecGUISaveVars
|
EXTSYM ZFileFindFirst,ZFileFindNext,ZFileFindPATH,soundon,DSPDisable,Start60HZ
|
||||||
EXTSYM allocptr
|
EXTSYM pressed,RaisePitch,AdjustFrequency,vidbufferofsb,vidbuffer,clearwin
|
||||||
EXTSYM putchar
|
EXTSYM Stop60HZ,initwinvideo,vesa2_rpos,vesa2_gpos,vesa2_bpos,vesa2_rposng
|
||||||
EXTSYM getchar
|
EXTSYM vesa2_gposng,vesa2_bposng,vesa2_usbit,vesa2_clbit,vesa2_clbitng
|
||||||
EXTSYM exit
|
EXTSYM vesa2_clbitng2,vesa2_clbitng3,vesa2red10,res640,res480,cbitmode,cvidmode
|
||||||
EXTSYM ZOpenFile,ZOpenMode,CurrentHandle,ZFileSeek,ZOpenFileName,ZFileSeekMode
|
EXTSYM vesa2_bits,vesa2_x,vesa2_y,genfulladdtab,GUICPC,drawscreenwin
|
||||||
EXTSYM ZFileSeekPos,ZFileSeekHandle
|
EXTSYM ConvertToAFormat,UnusedBit,HalfTrans,UnusedBitXor,UnusedBit,UnusedBitXor
|
||||||
EXTSYM ZFileWriteHandle,ZFileWriteSize,ZFileWriteBlock,ZFileWrite
|
EXTSYM ngrposng,nggposng,ngbposng,HalfTransB,HalfTransC,UpdateVFrame,GetMouseX
|
||||||
EXTSYM ZFileReadHandle,ZFileReadSize,ZFileReadBlock,ZFileRead
|
EXTSYM GetMouseY,GetMouseMoveX,GetMouseMoveY,GetMouseButton,T36HZEnabled
|
||||||
EXTSYM ZFileDelFName,ZFileDelete
|
EXTSYM MouseButton,Start36HZ,Stop36HZ,BufferSizeW,BufferSizeB,ProcessSoundBuffer
|
||||||
EXTSYM ZCloseFileHandle,ZCloseFile
|
EXTSYM CheckTimers,vesa2_rfull,vesa2_rtrcl,vesa2_rtrcla,vesa2_gfull,vesa2_gtrcl
|
||||||
EXTSYM ZFileTellHandle,ZFileTell
|
EXTSYM vesa2_gtrcla,vesa2_bfull,vesa2_btrcl,vesa2_btrcla,Init_2xSaIMMXW,InitTCP
|
||||||
EXTSYM ZFFTimeFName,ZFTime,ZFDate,ZFileGetFTime
|
EXTSYM StartServerCycle,ServerCheckNewClient,acceptzuser,ConnectServer
|
||||||
EXTSYM GetTime
|
EXTSYM WaitForServer,SendDataNop,SendDataUDPNop,GetDataNop,DeInitTCP,StopServer
|
||||||
EXTSYM GetDate
|
EXTSYM Disconnect,UDPDisableMode,UDPEnableMode,UDPClearVars,UDPWait1Sec
|
||||||
EXTSYM GUIkeydelay2
|
EXTSYM WinErrorA2,WinErrorB2,WinErrorC2,GetLocalTime,V8Mode,GrayscaleMode
|
||||||
EXTSYM ZFileMKDir,ZFileCHDir,ZFileRMDir,CHPath,MKPath,RMPath
|
EXTSYM PrevWinMode,PrevFSMode,sem_sleep,ZsnesPage
|
||||||
EXTSYM ZFileGetDir,DriveNumber,DirName
|
|
||||||
EXTSYM DTALoc,DTALocPos,ZFileFindATTRIB,ZFileFindFirst,ZFileFindNext,ZFileFindPATH
|
|
||||||
EXTSYM oldhand9s,oldhand9o,interror,oldhand8s,oldhand8o
|
|
||||||
EXTSYM NoSoundReinit,soundon,DSPDisable,NoSoundReinit
|
|
||||||
EXTSYM SBHandler,InitSB,handler8h,handler9h,init60hz,Interror,init18_2hz,DeInitSPC
|
|
||||||
EXTSYM Start60HZ
|
|
||||||
EXTSYM pressed
|
|
||||||
EXTSYM RaisePitch,AdjustFrequency
|
|
||||||
EXTSYM vidbufferofsb,vidbuffer
|
|
||||||
EXTSYM clearwin
|
|
||||||
EXTSYM Stop60HZ
|
|
||||||
EXTSYM initwinvideo
|
|
||||||
EXTSYM vesa2_rpos
|
|
||||||
EXTSYM vesa2_gpos
|
|
||||||
EXTSYM vesa2_bpos
|
|
||||||
EXTSYM vesa2_rposng
|
|
||||||
EXTSYM vesa2_gposng
|
|
||||||
EXTSYM vesa2_bposng
|
|
||||||
EXTSYM vesa2_usbit
|
|
||||||
EXTSYM vesa2_clbit
|
|
||||||
EXTSYM vesa2_clbitng
|
|
||||||
EXTSYM vesa2_clbitng2
|
|
||||||
EXTSYM vesa2_clbitng3
|
|
||||||
EXTSYM genfulladdtabng
|
|
||||||
EXTSYM vesa2red10
|
|
||||||
EXTSYM res640
|
|
||||||
EXTSYM res480
|
|
||||||
EXTSYM AddSub256,InitVesa2,cbitmode,cvidmode
|
|
||||||
EXTSYM scanlines,vesa2_bits
|
|
||||||
EXTSYM vesa2_x,vesa2_y
|
|
||||||
EXTSYM vesa2selec,InitVesa12,videotroub
|
|
||||||
EXTSYM genfulladdtab
|
|
||||||
EXTSYM GUICPC
|
|
||||||
EXTSYM drawscreenwin
|
|
||||||
EXTSYM ConvertToAFormat
|
|
||||||
EXTSYM UnusedBit,HalfTrans,UnusedBitXor,UnusedBit,UnusedBitXor
|
|
||||||
EXTSYM ngrposng,nggposng,ngbposng,HalfTransB,HalfTransC
|
|
||||||
EXTSYM UpdateVFrame
|
|
||||||
EXTSYM GetMouseX
|
|
||||||
EXTSYM GetMouseY
|
|
||||||
EXTSYM GetMouseMoveX
|
|
||||||
EXTSYM GetMouseMoveY
|
|
||||||
EXTSYM GetMouseButton
|
|
||||||
EXTSYM SetMouseMinX,SetMouseMaxX
|
|
||||||
EXTSYM SetMouseMinY,SetMouseMaxY
|
|
||||||
EXTSYM SetMouseX,SetMouseY
|
|
||||||
EXTSYM T36HZEnabled
|
|
||||||
EXTSYM MouseButton
|
|
||||||
EXTSYM Start36HZ
|
|
||||||
EXTSYM Stop36HZ
|
|
||||||
EXTSYM BufferSizeW,BufferSizeB,ProcessSoundBuffer
|
|
||||||
EXTSYM CheckTimers
|
|
||||||
EXTSYM vesa2_rfull,vesa2_rtrcl,vesa2_rtrcla
|
|
||||||
EXTSYM vesa2_gfull,vesa2_gtrcl,vesa2_gtrcla
|
|
||||||
EXTSYM vesa2_bfull,vesa2_btrcl,vesa2_btrcla
|
|
||||||
EXTSYM Init_2xSaIMMXW
|
|
||||||
EXTSYM TCPIPPortNum
|
|
||||||
EXTSYM InitTCP
|
|
||||||
EXTSYM StartServerCycle
|
|
||||||
EXTSYM ServerCheckNewClient
|
|
||||||
EXTSYM acceptzuser
|
|
||||||
EXTSYM TCPIPAddress
|
|
||||||
EXTSYM ConnectServer
|
|
||||||
EXTSYM WaitForServer
|
|
||||||
EXTSYM SendDataNop
|
|
||||||
EXTSYM SendDataUDPNop
|
|
||||||
EXTSYM GetDataNop
|
|
||||||
EXTSYM DeInitTCP
|
|
||||||
EXTSYM StopServer
|
|
||||||
EXTSYM Disconnect
|
|
||||||
EXTSYM UDPDisableMode,UDPEnableMode,UDPClearVars,UDPWait1Sec
|
|
||||||
EXTSYM WinErrorA2,WinErrorB2,WinErrorC2
|
|
||||||
EXTSYM GetLocalTime
|
|
||||||
EXTSYM V8Mode,GrayscaleMode
|
|
||||||
EXTSYM PrevWinMode,PrevFSMode
|
|
||||||
EXTSYM sem_sleep,ZsnesPage
|
|
||||||
|
|
||||||
; NOTE: For timing, Game60hzcall should be called at 50hz or 60hz (depending
|
; NOTE: For timing, Game60hzcall should be called at 50hz or 60hz (depending
|
||||||
; on romispal) after a call to InitPreGame and before DeInitPostGame are
|
; on romispal) after a call to InitPreGame and before DeInitPostGame are
|
||||||
@@ -1741,5 +1665,3 @@ NEWSYM GetTimeInSeconds
|
|||||||
movzx ebx,word[SystemTimewSecond]
|
movzx ebx,word[SystemTimewSecond]
|
||||||
add eax,ebx
|
add eax,ebx
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -18,36 +18,22 @@
|
|||||||
;along with this program; if not, write to the Free Software
|
;along with this program; if not, write to the Free Software
|
||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM getcfg,SBHDMA,StereoSound,init,GUIRestoreVars,GUIClick,MouseDis
|
EXTSYM PrintStr,WaitForKey,PrintChar,ram7fa,wramdataa,malloc,free,MMXSupport
|
||||||
EXTSYM ConvertJoyMap,ConvertJoyMap1,ConvertJoyMap2,printhex
|
EXTSYM MMXextSupport,statefileloc,LatestSave,firstsaveinc,Open_File
|
||||||
EXTSYM StartUp,PrintStr,WaitForKey,PrintChar,ZFileSystemInit
|
EXTSYM Get_File_Date,Close_File,Change_Dir,Get_Dir,romloadskip,cfgloadgdir
|
||||||
EXTSYM SystemInit,allocmem
|
EXTSYM cfgloadsdir,init18_2hz,OSExit,SRAMDirCurDir,SRAMChdir,SRAMChdirFail
|
||||||
EXTSYM cfgsoundon
|
EXTSYM BitConv32Ptr,spcBuffera,spritetablea,vcache2bs,vcache4bs,vcache8bs
|
||||||
EXTSYM xa
|
EXTSYM RGBtoYUVPtr,newgfx16b,vidbuffer,vidbufferofsa,vidbufferofsmos,ngwinptr
|
||||||
EXTSYM ram7fa,wramdataa
|
EXTSYM vidbufferofsb,headdata,romdata,sfxramdata,setaramdata,wramdata,ram7f,vram
|
||||||
EXTSYM malloc,free
|
EXTSYM sram,debugbuf,regptr,regptw,vcache2b,vcache4b,vcache8b,fname,fnames
|
||||||
EXTSYM MMXSupport,MMXextSupport,ScreenScale,SoundQuality
|
EXTSYM fnamest,filefound,vidbufferofsc,Sup48mbit,Sup16mbit,guioff
|
||||||
EXTSYM debugger,pl1contrl,pl2contrl,romtype,smallscreence
|
|
||||||
EXTSYM smallscreenon,spcon
|
|
||||||
EXTSYM statefileloc,LatestSave,firstsaveinc
|
|
||||||
EXTSYM Create_File,Delete_File,Open_File,Get_File_Date,Close_File,Change_Dir,Get_Dir
|
|
||||||
EXTSYM romloadskip
|
|
||||||
EXTSYM cfgloadgdir,cfgloadsdir
|
|
||||||
EXTSYM init18_2hz
|
|
||||||
EXTSYM OSExit,GUIOn2
|
|
||||||
EXTSYM SRAMDirCurDir,SRAMChdir,SRAMChdirFail
|
|
||||||
EXTSYM frameskip,BitConv32Ptr,spcBuffera,spritetablea,vcache2bs
|
|
||||||
EXTSYM vcache4bs,vcache8bs,RGBtoYUVPtr,newgfx16b,vidbuffer,vidbufferofsa
|
|
||||||
EXTSYM vidbufferofsmos,ngwinptr,vidbufferofsb,headdata,romdata,sfxramdata
|
|
||||||
EXTSYM setaramdata,wramdata,ram7f,vram,sram,debugbuf,regptr,regptw,vcache2b
|
|
||||||
EXTSYM vcache4b,vcache8b,fname,fnames,fnamest,filefound,vidbufferofsc
|
|
||||||
EXTSYM Sup48mbit,Sup16mbit,guioff
|
|
||||||
|
|
||||||
%ifdef __LINUX__
|
%ifdef __LINUX__
|
||||||
EXTSYM LinuxExit
|
EXTSYM LinuxExit,GetFilename
|
||||||
EXTSYM GetFilename
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
; Function 0501h
|
; Function 0501h
|
||||||
@@ -1002,5 +988,3 @@ NEWSYM MMXCheck
|
|||||||
.noprintstr
|
.noprintstr
|
||||||
.nommx
|
.nommx
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -18,6 +18,8 @@
|
|||||||
;along with this program; if not, write to the Free Software
|
;along with this program; if not, write to the Free Software
|
||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM MessageOn,MsgCount,Msgptr,Voice0Disable,Voice0Status,Voice1Disable
|
EXTSYM MessageOn,MsgCount,Msgptr,Voice0Disable,Voice0Status,Voice1Disable
|
||||||
@@ -27,36 +29,27 @@ EXTSYM Voice6Status,Voice7Disable,Voice7Status,bgcmsung,bgmode,cbackofsaddr
|
|||||||
EXTSYM cbitmode,cgmod,debuggeron,disableeffects,frameskip,frskipper,newgfxerror2
|
EXTSYM cbitmode,cgmod,debuggeron,disableeffects,frameskip,frskipper,newgfxerror2
|
||||||
EXTSYM maxbr,modeused,mousexloc,mouseyloc,newengen,newgfx16b,newgfxerror
|
EXTSYM maxbr,modeused,mousexloc,mouseyloc,newengen,newgfx16b,newgfxerror
|
||||||
EXTSYM nextdrawallng,oamaddr,pal16b,pal16bxcl,pressed,prevbright,prevpal
|
EXTSYM nextdrawallng,oamaddr,pal16b,pal16bxcl,pressed,prevbright,prevpal
|
||||||
EXTSYM scaddsngb,scaddtngb,scaddtngbx,scfbl,scrndis,snesmouse,sprprdrn
|
EXTSYM scaddsngb,scaddtngb,scaddtngbx,scfbl,scrndis,snesmouse,sprprdrn,t1cc
|
||||||
EXTSYM t1cc,vidbright,vidbuffer,vidbufferm,vidbufferofsa,vidbufferofsb
|
EXTSYM vidbright,vidbuffer,vidbufferm,vidbufferofsa,vidbufferofsb,vidmemch2
|
||||||
EXTSYM vidmemch2,statefileloc,fnamest,GUIClick,MousePRClick,ngmsdraw,cvidmode
|
EXTSYM statefileloc,fnamest,GUIClick,MousePRClick,ngmsdraw,cvidmode
|
||||||
EXTSYM KeyDisableSC0,KeyDisableSC1,KeyDisableSC2,KeyDisableSC3,KeyDisableSC4
|
EXTSYM KeyDisableSC0,KeyDisableSC1,KeyDisableSC2,KeyDisableSC3,KeyDisableSC4
|
||||||
EXTSYM KeyDisableSC5,KeyDisableSC6,KeyDisableSC7,KeyFastFrwrd,SRAMSave5Sec
|
EXTSYM KeyDisableSC5,KeyDisableSC6,KeyDisableSC7,KeyFastFrwrd,SRAMSave5Sec
|
||||||
EXTSYM KeyBGDisble0,KeyBGDisble1,KeyBGDisble2,KeyBGDisble3,KeySprDisble
|
EXTSYM KeyBGDisble0,KeyBGDisble1,KeyBGDisble2,KeyBGDisble3,KeySprDisble
|
||||||
EXTSYM KeyResetAll,KeyExtraEnab,KeyWinDisble,KeyNewGfxSwt,KeyOffsetMSw
|
EXTSYM KeyResetAll,KeyExtraEnab,KeyWinDisble,KeyNewGfxSwt,KeyOffsetMSw
|
||||||
EXTSYM KeyStateSlc0,KeyStateSlc1,KeyStateSlc2,KeyStateSlc3,KeyStateSlc4
|
EXTSYM KeyStateSlc0,KeyStateSlc1,KeyStateSlc2,KeyStateSlc3,KeyStateSlc4
|
||||||
EXTSYM KeyStateSlc5,KeyStateSlc6,KeyStateSlc7,KeyStateSlc8,KeyStateSlc9
|
EXTSYM KeyStateSlc5,KeyStateSlc6,KeyStateSlc7,KeyStateSlc8,KeyStateSlc9
|
||||||
EXTSYM KeyIncStateSlot,KeyDecStateSlot,KeyUsePlayer1234
|
EXTSYM KeyIncStateSlot,KeyDecStateSlot,KeyUsePlayer1234,maxskip,DSPMem,dsp1ptr
|
||||||
EXTSYM maxskip,DSPMem,SprValAdd,dsp1ptr,dsp1array,FastFwdToggle,SaveSramData
|
EXTSYM dsp1array,FastFwdToggle,SaveSramData,ngextbg,Mode7HiRes,Check60hz
|
||||||
EXTSYM ngextbg,Mode7HiRes,Check60hz,Get_MouseData,Get_MousePositionDisplacement
|
EXTSYM Get_MouseData,Get_MousePositionDisplacement,WindowDisables,scanlines
|
||||||
EXTSYM WindowDisables,scanlines,romispal
|
EXTSYM romispal,MusicRelVol,MusicVol,WDSPReg0C,WDSPReg1C,Op02AAS,Op02AZS,Op02CX
|
||||||
EXTSYM MusicRelVol,MusicVol,WDSPReg0C,WDSPReg1C
|
EXTSYM Op02CY,Op02FX,Op02FY,Op02FZ,Op02LES,Op02LFE,Op02VOF,Op02VVA,KeySlowDown
|
||||||
EXTSYM DSPOp02,Op02AAS,Op02AZS,Op02CX,Op02CY,Op02FX,Op02FY
|
EXTSYM genfulladdtab,KeyFRateDown,KeyFRateUp,KeyVolUp,KeyVolDown,KeyDisplayFPS
|
||||||
EXTSYM Op02FZ,Op02LES,Op02LFE,Op02VOF,Op02VVA
|
EXTSYM FPSOn,pl12s34,bg1ptr,bg2ptr,bg3ptr,bg4ptr,cachebg1,resolutn,curypos
|
||||||
EXTSYM KeySlowDown
|
EXTSYM oamram,objhipr,objptr,objptrn,objsize1,objsize2,spritetablea,sprleftpr
|
||||||
EXTSYM genfulladdtab
|
EXTSYM sprlefttot,vcache4b,objadds1,objadds2,objmovs1,objmovs2,tltype4b
|
||||||
EXTSYM KeyFRateDown,KeyFRateUp,KeyVolUp,KeyVolDown,KeyDisplayFPS,FPSOn,pl12s34
|
EXTSYM vidmemch4,vram,bgptr,bgptrc,bgptrd,curtileptr,vcache2b,vcache8b,vidmemch8
|
||||||
EXTSYM bg1ptr,bg2ptr,bg3ptr,bg4ptr,cachebg1,resolutn
|
EXTSYM offsetmshl,NextLineCache,tltype2b,tltype8b,objwlrpos,snesinputdefault
|
||||||
EXTSYM curypos,oamram,objhipr,objptr,objptrn,objsize1,objsize2
|
EXTSYM cycleinputdevice,Change_Dir,LoadDrive,LoadDir
|
||||||
EXTSYM spritetablea,sprleftpr,sprlefttot,vcache4b
|
|
||||||
EXTSYM objadds1,objadds2,objmovs1,objmovs2,tltype4b,vidmemch4,vram
|
|
||||||
EXTSYM bgptr,bgptrc,bgptrd,curtileptr,vcache2b
|
|
||||||
EXTSYM vcache8b,vidmemch8
|
|
||||||
EXTSYM offsetmshl,NextLineCache
|
|
||||||
EXTSYM tltype2b
|
|
||||||
EXTSYM tltype8b,objwlrpos
|
|
||||||
EXTSYM snesinputdefault,cycleinputdevice
|
|
||||||
EXTSYM Change_Dir,LoadDrive,LoadDir
|
|
||||||
|
|
||||||
; Process stuff & Cache sprites
|
; Process stuff & Cache sprites
|
||||||
|
|
||||||
@@ -79,7 +72,7 @@ NEWSYM cmovietimeint, dd 0
|
|||||||
NEWSYM overalltimer, dd 0
|
NEWSYM overalltimer, dd 0
|
||||||
mousecheck db 0
|
mousecheck db 0
|
||||||
|
|
||||||
section .text
|
SECTION .text
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -3893,5 +3886,3 @@ NEWSYM cachesingle8bng
|
|||||||
pop edi
|
pop edi
|
||||||
pop esi
|
pop esi
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -23,17 +23,13 @@
|
|||||||
; Copyright (C) 2003 MaxSt ( maxst@hiend3d.com )
|
; Copyright (C) 2003 MaxSt ( maxst@hiend3d.com )
|
||||||
;----------------------------------------------------------
|
;----------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM vidbuffer,curblank,MMXSupport,GUIOn,GUIOn2,
|
EXTSYM vidbuffer,curblank,MMXSupport,GUIOn,GUIOn2,vidbufferofsb,FilteredGUI
|
||||||
EXTSYM vidbufferofsb
|
EXTSYM resolutn,lineleft,cfield,hirestiledat,newengen,SpecialLine,HalfTrans
|
||||||
EXTSYM FilteredGUI,resolutn,lineleft,cfield
|
EXTSYM hqFilter,AddEndBytes,NumBytesPerLine,WinVidMemStart,BitConv32Ptr
|
||||||
EXTSYM hirestiledat,newengen,SpecialLine,HalfTrans
|
|
||||||
EXTSYM hqFilter
|
|
||||||
EXTSYM AddEndBytes
|
|
||||||
EXTSYM NumBytesPerLine
|
|
||||||
EXTSYM WinVidMemStart
|
|
||||||
EXTSYM BitConv32Ptr
|
|
||||||
EXTSYM RGBtoYUVPtr
|
EXTSYM RGBtoYUVPtr
|
||||||
|
|
||||||
SECTION .bss
|
SECTION .bss
|
||||||
@@ -2165,5 +2161,3 @@ FuncTable2
|
|||||||
SECTION .bss
|
SECTION .bss
|
||||||
InterPtr resd 1
|
InterPtr resd 1
|
||||||
SECTION .text
|
SECTION .text
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -23,21 +23,15 @@
|
|||||||
;Copyright (C) 2003 MaxSt ( maxst@hiend3d.com )
|
;Copyright (C) 2003 MaxSt ( maxst@hiend3d.com )
|
||||||
;----------------------------------------------------------
|
;----------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM vidbuffer,curblank,MMXSupport,GUIOn,GUIOn2,
|
EXTSYM vidbuffer,curblank,MMXSupport,GUIOn,GUIOn2,vidbufferofsb,FilteredGUI
|
||||||
EXTSYM vidbufferofsb
|
EXTSYM resolutn,lineleft,cfield,hirestiledat,newengen,SpecialLine,hqFilter
|
||||||
EXTSYM FilteredGUI,resolutn,lineleft,cfield
|
EXTSYM AddEndBytes,NumBytesPerLine,WinVidMemStart,BitConv32Ptr,RGBtoYUVPtr
|
||||||
EXTSYM hirestiledat,newengen,SpecialLine
|
EXTSYM prevline,nextline,deltaptr,xcounter,w1,w2,w3,w4,w5,w6,w7,w8,w9
|
||||||
EXTSYM hqFilter
|
EXTSYM reg_blank,const3,const5,const6,const14,cross,threshold
|
||||||
EXTSYM AddEndBytes
|
|
||||||
EXTSYM NumBytesPerLine
|
|
||||||
EXTSYM WinVidMemStart
|
|
||||||
EXTSYM BitConv32Ptr
|
|
||||||
EXTSYM RGBtoYUVPtr
|
|
||||||
EXTSYM prevline, nextline, deltaptr, xcounter
|
|
||||||
EXTSYM w1, w2, w3, w4, w5, w6, w7, w8, w9
|
|
||||||
EXTSYM reg_blank, const3, const5, const6, const14, cross, threshold
|
|
||||||
|
|
||||||
SECTION .bss
|
SECTION .bss
|
||||||
NEWSYM c1, resd 1
|
NEWSYM c1, resd 1
|
||||||
@@ -2138,5 +2132,3 @@ FuncTable2
|
|||||||
SECTION .bss
|
SECTION .bss
|
||||||
InterPtr resd 1
|
InterPtr resd 1
|
||||||
SECTION .text
|
SECTION .text
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -23,21 +23,15 @@
|
|||||||
; Copyright (C) 2003 MaxSt ( maxst@hiend3d.com )
|
; Copyright (C) 2003 MaxSt ( maxst@hiend3d.com )
|
||||||
;----------------------------------------------------------
|
;----------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM vidbuffer,curblank,MMXSupport,GUIOn,GUIOn2,
|
EXTSYM vidbuffer,curblank,MMXSupport,GUIOn,GUIOn2,vidbufferofsb,FilteredGUI
|
||||||
EXTSYM vidbufferofsb
|
EXTSYM resolutn,lineleft,cfield,hirestiledat,newengen,SpecialLine,HalfTrans
|
||||||
EXTSYM FilteredGUI,resolutn,lineleft,cfield
|
EXTSYM hqFilter,AddEndBytes,NumBytesPerLine,WinVidMemStart,BitConv32Ptr
|
||||||
EXTSYM hirestiledat,newengen,SpecialLine,HalfTrans
|
EXTSYM RGBtoYUVPtr,prevline,nextline,deltaptr,xcounter,w1,w2,w3,w4,w5,w6,w7,w8
|
||||||
EXTSYM hqFilter
|
EXTSYM w9,reg_blank,const7,cross,threshold
|
||||||
EXTSYM AddEndBytes
|
|
||||||
EXTSYM NumBytesPerLine
|
|
||||||
EXTSYM WinVidMemStart
|
|
||||||
EXTSYM BitConv32Ptr
|
|
||||||
EXTSYM RGBtoYUVPtr
|
|
||||||
EXTSYM prevline, nextline, deltaptr, xcounter
|
|
||||||
EXTSYM w1, w2, w3, w4, w5, w6, w7, w8, w9
|
|
||||||
EXTSYM reg_blank, const7, cross, threshold
|
|
||||||
|
|
||||||
SECTION .text
|
SECTION .text
|
||||||
|
|
||||||
@@ -2754,5 +2748,3 @@ FuncTable2
|
|||||||
SECTION .bss
|
SECTION .bss
|
||||||
InterPtr resd 1
|
InterPtr resd 1
|
||||||
SECTION .text
|
SECTION .text
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -23,22 +23,15 @@
|
|||||||
;Copyright (C) 2003 MaxSt ( maxst@hiend3d.com )
|
;Copyright (C) 2003 MaxSt ( maxst@hiend3d.com )
|
||||||
;----------------------------------------------------------
|
;----------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM vidbuffer,curblank,MMXSupport,GUIOn,GUIOn2,
|
EXTSYM vidbuffer,curblank,MMXSupport,GUIOn,GUIOn2,vidbufferofsb,FilteredGUI
|
||||||
EXTSYM vidbufferofsb
|
EXTSYM resolutn,lineleft,cfield,hirestiledat,newengen,SpecialLine,hqFilter
|
||||||
EXTSYM FilteredGUI,resolutn,lineleft,cfield
|
EXTSYM AddEndBytes,NumBytesPerLine,WinVidMemStart,BitConv32Ptr,RGBtoYUVPtr
|
||||||
EXTSYM hirestiledat,newengen,SpecialLine
|
EXTSYM prevline,nextline,deltaptr,xcounter,w1,w2,w3,w4,w5,w6,w7,w8,w9,c1,c2,c3
|
||||||
EXTSYM hqFilter
|
EXTSYM c4,c6,c7,c8,c9,reg_blank,const7,cross,threshold
|
||||||
EXTSYM AddEndBytes
|
|
||||||
EXTSYM NumBytesPerLine
|
|
||||||
EXTSYM WinVidMemStart
|
|
||||||
EXTSYM BitConv32Ptr
|
|
||||||
EXTSYM RGBtoYUVPtr
|
|
||||||
EXTSYM prevline, nextline, deltaptr, xcounter
|
|
||||||
EXTSYM w1, w2, w3, w4, w5, w6, w7, w8, w9
|
|
||||||
EXTSYM c1, c2, c3, c4, c5, c6, c7, c8, c9
|
|
||||||
EXTSYM reg_blank, const7, cross, threshold
|
|
||||||
|
|
||||||
SECTION .text
|
SECTION .text
|
||||||
|
|
||||||
@@ -2817,5 +2810,3 @@ FuncTable2
|
|||||||
SECTION .bss
|
SECTION .bss
|
||||||
InterPtr resd 1
|
InterPtr resd 1
|
||||||
SECTION .text
|
SECTION .text
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -23,21 +23,15 @@
|
|||||||
; Copyright (C) 2003 MaxSt ( maxst@hiend3d.com )
|
; Copyright (C) 2003 MaxSt ( maxst@hiend3d.com )
|
||||||
;----------------------------------------------------------
|
;----------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM vidbuffer,curblank,MMXSupport,GUIOn,GUIOn2,
|
EXTSYM vidbuffer,curblank,MMXSupport,GUIOn,GUIOn2,vidbufferofsb,FilteredGUI
|
||||||
EXTSYM vidbufferofsb
|
EXTSYM resolutn,lineleft,cfield,hirestiledat,newengen,SpecialLine,HalfTrans
|
||||||
EXTSYM FilteredGUI,resolutn,lineleft,cfield
|
EXTSYM hqFilter,AddEndBytes,NumBytesPerLine,WinVidMemStart,BitConv32Ptr
|
||||||
EXTSYM hirestiledat,newengen,SpecialLine,HalfTrans
|
EXTSYM RGBtoYUVPtr,prevline,nextline,deltaptr,xcounter,w1,w2,w3,w4,w5,w6,w7,w8
|
||||||
EXTSYM hqFilter
|
EXTSYM w9,reg_blank,const3,const5,const6,const7,cross,threshold
|
||||||
EXTSYM AddEndBytes
|
|
||||||
EXTSYM NumBytesPerLine
|
|
||||||
EXTSYM WinVidMemStart
|
|
||||||
EXTSYM BitConv32Ptr
|
|
||||||
EXTSYM RGBtoYUVPtr
|
|
||||||
EXTSYM prevline, nextline, deltaptr, xcounter
|
|
||||||
EXTSYM w1, w2, w3, w4, w5, w6, w7, w8, w9
|
|
||||||
EXTSYM reg_blank, const3, const5, const6, const7, cross, threshold
|
|
||||||
|
|
||||||
SECTION .text
|
SECTION .text
|
||||||
|
|
||||||
@@ -4281,5 +4275,3 @@ FuncTable
|
|||||||
SECTION .bss
|
SECTION .bss
|
||||||
InterPtr resd 1
|
InterPtr resd 1
|
||||||
SECTION .text
|
SECTION .text
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -23,22 +23,15 @@
|
|||||||
;Copyright (C) 2003 MaxSt ( maxst@hiend3d.com )
|
;Copyright (C) 2003 MaxSt ( maxst@hiend3d.com )
|
||||||
;----------------------------------------------------------
|
;----------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM vidbuffer,curblank,MMXSupport,GUIOn,GUIOn2,
|
EXTSYM vidbuffer,curblank,MMXSupport,GUIOn,GUIOn2,vidbufferofsb,FilteredGUI
|
||||||
EXTSYM vidbufferofsb
|
EXTSYM resolutn,lineleft,cfield,hirestiledat,newengen,SpecialLine,hqFilter
|
||||||
EXTSYM FilteredGUI,resolutn,lineleft,cfield
|
EXTSYM AddEndBytes,NumBytesPerLine,WinVidMemStart,BitConv32Ptr,RGBtoYUVPtr
|
||||||
EXTSYM hirestiledat,newengen,SpecialLine
|
EXTSYM prevline,nextline,deltaptr,xcounter,w1,w2,w3,w4,w5,w6,w7,w8,w9,c1,c2,c3
|
||||||
EXTSYM hqFilter
|
EXTSYM c4,c6,c7,c8,c9,reg_blank,const3,const5,const6,const7,cross,threshold
|
||||||
EXTSYM AddEndBytes
|
|
||||||
EXTSYM NumBytesPerLine
|
|
||||||
EXTSYM WinVidMemStart
|
|
||||||
EXTSYM BitConv32Ptr
|
|
||||||
EXTSYM RGBtoYUVPtr
|
|
||||||
EXTSYM prevline, nextline, deltaptr, xcounter
|
|
||||||
EXTSYM w1, w2, w3, w4, w5, w6, w7, w8, w9
|
|
||||||
EXTSYM c1, c2, c3, c4, c5, c6, c7, c8, c9
|
|
||||||
EXTSYM reg_blank, const3, const5, const6, const7, cross, threshold
|
|
||||||
|
|
||||||
SECTION .text
|
SECTION .text
|
||||||
|
|
||||||
@@ -4205,6 +4198,3 @@ FuncTable
|
|||||||
SECTION .bss
|
SECTION .bss
|
||||||
InterPtr resd 1
|
InterPtr resd 1
|
||||||
SECTION .text
|
SECTION .text
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -18,14 +18,14 @@
|
|||||||
;along with this program; if not, write to the Free Software
|
;along with this program; if not, write to the Free Software
|
||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM coladdr,curmosaicsz,curvidoffset,domosaic16b,mode7A,drawmode7dcolor
|
EXTSYM coladdr,curmosaicsz,curvidoffset,domosaic16b,mode7A,mode7B,mode7C,mode7D
|
||||||
EXTSYM mode7B,mode7C,mode7D,mode7X0,mode7Y0,mode7set,mode7tab
|
EXTSYM mode7X0,mode7Y0,mode7set,mode7tab,pal16b,pal16bcl,pal16bxcl,scaddtype
|
||||||
EXTSYM pal16b,pal16bcl,pal16bxcl,scaddtype,scrnon,transpbuf
|
EXTSYM scrnon,transpbuf,vesa2_clbit,vram,vrama,winon,xtravbuf,winptrref
|
||||||
EXTSYM vesa2_clbit,vram,vrama,winon,xtravbuf,winptrref,scaddset
|
EXTSYM fulladdtab,cwinptr
|
||||||
EXTSYM fulladdtab
|
|
||||||
EXTSYM cwinptr
|
|
||||||
|
|
||||||
;*******************************************************
|
;*******************************************************
|
||||||
; Processes & Draws Mode 7
|
; Processes & Draws Mode 7
|
||||||
@@ -996,6 +996,3 @@ extbg2sub:
|
|||||||
cmp dh,1
|
cmp dh,1
|
||||||
jne near domosaic16b
|
jne near domosaic16b
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -18,48 +18,31 @@
|
|||||||
;along with this program; if not, write to the Free Software
|
;along with this program; if not, write to the Free Software
|
||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM cursprloc,curypos,scrndis,scrnon,winon,winonsp,drawmode716extbg,drawmode716extbg2,SA1Enable
|
EXTSYM cursprloc,curypos,scrndis,scrnon,winon,winonsp,drawmode716extbg
|
||||||
EXTSYM alreadydrawn,bg1cachloc,bg1tdabloc,bg1tdatloc,bg1vbufloc,bg1xposloc
|
EXTSYM drawmode716extbg2,SA1Enable,alreadydrawn,bg1cachloc,bg1tdabloc,bg1tdatloc
|
||||||
EXTSYM bg1yaddval,bgcoloradder,bgmode,bgtilesz,curbgnum,drawn,makewindow
|
EXTSYM bg1vbufloc,bg1xposloc,bg1yaddval,bgcoloradder,bgmode,bgtilesz,curbgnum
|
||||||
EXTSYM winbg1en,winenabs
|
EXTSYM drawn,makewindow,winbg1en,winenabs,mosaicon,winenabm,vidbuffer,bg3high2
|
||||||
EXTSYM mosaicon,winenabm
|
EXTSYM colormodedef,colormodeofs,curbgpr,curblank,currentobjptr,curvidoffset
|
||||||
EXTSYM vidbuffer
|
EXTSYM cwinenabm,drawline16t,forceblnk,makewindowsp,maxbr,newengen,newengine16b
|
||||||
EXTSYM bg3high2,colormodedef,colormodeofs,curbgpr,curblank
|
EXTSYM preparesprpr,procbackgrnd,scaddset,scaddtype,spritetablea,sprleftpr
|
||||||
EXTSYM currentobjptr,curvidoffset,cwinenabm,drawline16t,forceblnk
|
EXTSYM ForceNewGfxOff,bg1scrolx,bg1scroly,drawmode716b,mode7set,mosaicsz
|
||||||
EXTSYM makewindowsp,maxbr,newengen,newengine16b,preparesprpr
|
EXTSYM sprleftpr1,sprleftpr2,sprleftpr3,sprlefttot,sprprifix,interlval,extbgdone
|
||||||
EXTSYM procbackgrnd,scaddset,scaddtype,spritetablea,sprleftpr,ForceNewGfxOff
|
EXTSYM coladdb,coladdg,coladdr,pal16b,vesa2_bpos,V8Mode,doveg,pal16bcl,pal16bxcl
|
||||||
EXTSYM bg1scrolx,bg1scroly,drawmode716b,mode7set,mosaicsz,sprleftpr1
|
EXTSYM prevbright,prevpal,vesa2_clbit,vesa2_gpos,vesa2_rpos,vidbright,cgmod
|
||||||
EXTSYM sprleftpr2,sprleftpr3,sprlefttot,sprprifix,interlval
|
EXTSYM cgram,gammalevel16b,dovegrest,winspdata,csprbit,csprprlft,sprclprio
|
||||||
EXTSYM extbgdone
|
EXTSYM sprsingle,sprpriodata,bgofwptr,bgsubby,bshifter,curmosaicsz,cwinptr
|
||||||
EXTSYM FPUZero,coladdb,coladdg,coladdr,pal16b,vesa2_bpos
|
EXTSYM osm2dis,temp,tempcach,temptile,winptrref,xtravbuf,yadder,yrevadder
|
||||||
EXTSYM V8Mode,doveg,pal16bcl,pal16bxcl,prevbright,prevpal,vesa2_clbit
|
EXTSYM vcache2ba,vcache4ba,vcache8ba,hirestiledat,res512switch,numwin,windowdata
|
||||||
EXTSYM vesa2_gpos,vesa2_rpos,vesa2_usbit,vidbright
|
EXTSYM bg1objptr,bg1ptr,bg3ptr,bg3scrolx,bg3scroly,vidmemch4,vram,ofsmcptr
|
||||||
EXTSYM cgmod,cgram,gammalevel16b,dovegrest
|
EXTSYM ofsmady,ofsmadx,yposngom,flipyposngom,ofsmtptr,ofsmmptr,ofsmcyps,bgtxadd
|
||||||
EXTSYM winspdata
|
EXTSYM bg1ptrx,bg1ptry,a16x16xinc,a16x16yinc
|
||||||
EXTSYM csprbit,csprprlft,sprclprio,sprsingle,sprpriodata
|
|
||||||
EXTSYM bgofwptr,bgsubby,bshifter,curmosaicsz,cwinptr,osm2dis,temp
|
|
||||||
EXTSYM tempcach,temptile,winptrref,vcache2b,vcache4b,vcache8b
|
|
||||||
EXTSYM xtravbuf,yadder,yrevadder
|
|
||||||
EXTSYM vcache2ba,vcache4ba,vcache8ba
|
|
||||||
EXTSYM hirestiledat,res512switch
|
|
||||||
EXTSYM numwin,windowdata
|
|
||||||
EXTSYM bg1objptr,bg1ptr,bg1ptrc,bg3ptr,bg3scrolx,bg3scroly,cachesingle
|
|
||||||
EXTSYM colormoded2,offsetenab,offsetmclr,offsetmcol,offsetmodeptr
|
|
||||||
EXTSYM offsetmptr,offsetmshl,offsetmtst,offsetptra,offsetptrb,posyscroll
|
|
||||||
EXTSYM prevoffsetdat,prevtempcache,tempoffset,vidmemch2,vidmemch4
|
|
||||||
EXTSYM vidmemch8,vram
|
|
||||||
EXTSYM ofsmcptr,ofsmady,ofsmadx,yposng,yposngom,flipyposng,flipyposngom
|
|
||||||
EXTSYM ofsmtptr,ofsmmptr,ofsmcyps,bgtxadd,bg1ptrx,bg1ptry
|
|
||||||
EXTSYM a16x16xinc,a16x16yinc
|
|
||||||
|
|
||||||
%include "video/vidmacro.mac"
|
%include "video/vidmacro.mac"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
;drawspritesprio
|
;drawspritesprio
|
||||||
|
|
||||||
SECTION .bss
|
SECTION .bss
|
||||||
@@ -3087,6 +3070,3 @@ draw16x1616bwinon:
|
|||||||
cmp dh,1
|
cmp dh,1
|
||||||
jne near domosaic16b
|
jne near domosaic16b
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -18,50 +18,32 @@
|
|||||||
;along with this program; if not, write to the Free Software
|
;along with this program; if not, write to the Free Software
|
||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM cwinptr,dualstartprocess,dualwinbg,dualwinsp,dwinptrproc,pwinbgenab
|
EXTSYM cwinptr,dualstartprocess,dualwinbg,dualwinsp,dwinptrproc,pwinbgenab
|
||||||
EXTSYM pwinbgtype,pwinspenab,pwinsptype,winbgdata,winlogicb,winonbtype
|
EXTSYM pwinbgtype,pwinspenab,pwinsptype,winbgdata,winlogicb,winonbtype
|
||||||
EXTSYM winonstype,winspdata,interlval,MMXSupport
|
EXTSYM winonstype,winspdata,interlval,MMXSupport,bg1scrolx,bg1scroly,curmosaicsz
|
||||||
EXTSYM bg1scrolx,bg1scroly,curmosaicsz,curypos,drawmode716t,makewindow
|
EXTSYM curypos,drawmode716t,makewindow,mode7set,mosaicon,mosaicsz,scrnon
|
||||||
EXTSYM mode7set,mosaicon,mosaicsz,scrnon,winbg1en,winenabm
|
EXTSYM winbg1en,winenabm,drawmode716textbg,drawmode716textbg2,extbgdone
|
||||||
EXTSYM drawmode716textbg,drawmode716textbg2
|
EXTSYM drawmode716tb,drawmode716b,drawmode716extbg,drawmode716extbg2,cursprloc
|
||||||
EXTSYM extbgdone
|
EXTSYM drawsprites16b,scrndis,sprprifix,winonsp,bgfixer,bgfixer2,scaddtype
|
||||||
EXTSYM drawmode716tb,drawmode716b,drawmode716extbg,drawmode716extbg2
|
|
||||||
EXTSYM cursprloc,drawsprites16b,scrndis,sprprifix,winonsp,bgfixer,bgfixer2
|
|
||||||
EXTSYM scaddtype
|
|
||||||
EXTSYM alreadydrawn,bg1cachloc,bg1tdabloc,bg1tdatloc,bg1vbufloc,bg1xposloc
|
EXTSYM alreadydrawn,bg1cachloc,bg1tdabloc,bg1tdatloc,bg1vbufloc,bg1xposloc
|
||||||
EXTSYM bg1yaddval,bgcoloradder,bgmode,bgtilesz,colormodeofs,curbgnum
|
EXTSYM bg1yaddval,bgcoloradder,bgmode,bgtilesz,colormodeofs,curbgnum
|
||||||
EXTSYM draw16x1616b,draw8x816b,drawn,winenabs
|
EXTSYM draw16x1616b,draw8x816b,drawn,winenabs,curbgpr,draw16x1616tms
|
||||||
EXTSYM curbgpr,draw16x1616tms,draw8x816tms
|
EXTSYM draw8x816tms,bg3high2,currentobjptr,curvidoffset,cwinenabm,makewindowsp
|
||||||
EXTSYM bg3high2,currentobjptr,curvidoffset,cwinenabm,makewindowsp
|
EXTSYM preparesprpr,procbackgrnd,setpalette16b,spritetablea,sprleftpr,sprlefttot
|
||||||
EXTSYM preparesprpr,procbackgrnd,setpalette16b,spritetablea
|
EXTSYM numwin,scaddset,wincolen,windowdata,winl1,winl2,winon,winr1,winr2
|
||||||
EXTSYM sprleftpr,sprlefttot
|
EXTSYM vidbuffer,coladdb,coladdg,coladdr,vesa2_bpos,vesa2_gpos,vesa2_rpos
|
||||||
EXTSYM numwin,scaddset,wincolen,windowdata,winl1,winl2
|
EXTSYM vidbright,winptrref,fulladdtab,pal16b,vesa2_clbit,csprbit,sprclprio
|
||||||
EXTSYM winon,winr1,winr2
|
EXTSYM csprprlft,sprsingle,sprpriodata,pal16bcl,pal16bxcl,bgofwptr,bgsubby
|
||||||
EXTSYM vidbuffer
|
EXTSYM bshifter,domosaic16b,temp,tempcach,temptile,tileleft16b,xtravbuf,yadder
|
||||||
EXTSYM FPUZero,coladdb,coladdg,coladdr,vesa2_bpos,vesa2_gpos,vesa2_rpos
|
EXTSYM yrevadder,vcache2ba,vcache4ba,vcache8ba,draw8x816boffset,osm2dis
|
||||||
EXTSYM vidbright
|
EXTSYM hirestiledat,res512switch,bg1objptr,bg1ptr,bg3ptr,bg3scrolx,bg3scroly
|
||||||
EXTSYM winptrref
|
EXTSYM vidmemch4,vram,ofsmcptr,ofsmady,ofsmadx,yposngom,flipyposngom,ofsmtptr
|
||||||
EXTSYM fulladdtab,pal16b,vesa2_clbit
|
EXTSYM ofsmmptr,ofsmcyps,bgtxadd,bg1ptrx,bg1ptry,a16x16xinc,a16x16yinc
|
||||||
EXTSYM csprbit
|
|
||||||
EXTSYM sprclprio
|
|
||||||
EXTSYM csprprlft,sprsingle,sprpriodata
|
|
||||||
EXTSYM pal16bcl,pal16bxcl
|
|
||||||
EXTSYM bgofwptr,bgsubby,bshifter,domosaic16b,temp,tempcach,temptile
|
|
||||||
EXTSYM tileleft16b,xtravbuf,yadder
|
|
||||||
EXTSYM yrevadder,vcache2b,vcache4b,vcache8b
|
|
||||||
EXTSYM vcache2ba,vcache4ba,vcache8ba,draw8x816boffset
|
|
||||||
EXTSYM osm2dis,draw16x816
|
|
||||||
EXTSYM hirestiledat,res512switch
|
|
||||||
EXTSYM bg1objptr,bg1ptr,bg1ptrc,bg3ptr,bg3scrolx,bg3scroly,cachesingle
|
|
||||||
EXTSYM colormoded2,offsetenab,offsetmclr,offsetmcol,offsetmodeptr
|
|
||||||
EXTSYM offsetmptr,offsetmshl,offsetmtst,offsetptra,offsetptrb,posyscroll
|
|
||||||
EXTSYM prevoffsetdat,prevtempcache,tempoffset,vidmemch2,vidmemch4
|
|
||||||
EXTSYM vidmemch8,vram
|
|
||||||
EXTSYM ofsmcptr,ofsmady,ofsmadx,yposng,yposngom,flipyposng,flipyposngom
|
|
||||||
EXTSYM ofsmtptr,ofsmmptr,ofsmcyps,bgtxadd,bg1ptrx,bg1ptry
|
|
||||||
EXTSYM a16x16xinc,a16x16yinc
|
|
||||||
|
|
||||||
%include "video/vidmacro.mac"
|
%include "video/vidmacro.mac"
|
||||||
|
|
||||||
@@ -5320,5 +5302,3 @@ NEWSYM draw16x1616tswinon
|
|||||||
dec byte[tileleft16b]
|
dec byte[tileleft16b]
|
||||||
jnz near .loopa
|
jnz near .loopa
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -18,38 +18,26 @@
|
|||||||
;along with this program; if not, write to the Free Software
|
;along with this program; if not, write to the Free Software
|
||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM disableeffects,winl1,winl2,winbgdata,winr1,winr2,winspdata
|
EXTSYM disableeffects,winl1,winl2,winbgdata,winr1,winr2,winspdata,winlogica
|
||||||
EXTSYM winlogica
|
EXTSYM winenabm,winobjen,winlogicb,scrndis,scrnon,bgmode,bgtilesz,winbg1en
|
||||||
EXTSYM winenabm,winobjen
|
EXTSYM winenabs,bg1objptr,bg1ptr,bg1ptrb,bg1ptrc,bg1ptrd,bg1scrolx,bg1scroly
|
||||||
EXTSYM winlogicb
|
EXTSYM cachebg1,curbgofs1,curcolbg1,vcache2b,vcache4b,vcache8b,vcache2ba
|
||||||
EXTSYM scrndis,scrnon
|
EXTSYM vcache4ba,vcache8ba,vidbuffer,bg3highst,cbitmode,colormodedef
|
||||||
EXTSYM bgmode,bgtilesz,winbg1en,winenabs
|
EXTSYM colormodeofs,drawline16b,forceblnk,newengine8b,preparesprpr,scaddset
|
||||||
EXTSYM bg1objptr,bg1ptr,bg1ptrb,bg1ptrc,bg1ptrd,bg1scrolx,bg1scroly
|
EXTSYM spritetablea,sprleftpr,vidbright,ForceNewGfxOff,curypos,drawmode7
|
||||||
EXTSYM cachebg1,curbgofs1,curcolbg1,vcache2b,vcache4b,vcache8b
|
EXTSYM mode7set,mosaicon,mosaicsz,sprleftpr1,sprleftpr2,sprleftpr3,sprlefttot
|
||||||
EXTSYM vcache2ba,vcache4ba,vcache8ba
|
EXTSYM sprprifix,drawmode7extbg,interlval,drawmode7extbg2,sprclprio,sprpriodata
|
||||||
EXTSYM vidbuffer
|
EXTSYM sprsingle,cachetile2b,cachetile4b,cachetile8b,vram,CacheCheckSkip
|
||||||
EXTSYM bg3highst,cbitmode,colormodedef,colormodeofs,drawline16b
|
EXTSYM cachetile2b16x16,cachetile4b16x16,cachetile8b16x16,osm2dis,xtravbuf
|
||||||
EXTSYM forceblnk,newengine8b,preparesprpr,scaddset,spritetablea
|
EXTSYM bg3ptr,bg3scrolx,bg3scroly,vidmemch4,ofsmcptr,ofsmady,ofsmadx,yposngom
|
||||||
EXTSYM sprleftpr,vidbright,ForceNewGfxOff
|
EXTSYM flipyposngom,ofsmtptr,ofsmmptr,ofsmcyps,bgtxadd,bg1ptrx,bg1ptry
|
||||||
EXTSYM curypos,drawmode7,mode7set,mosaicon,mosaicsz,sprleftpr1,sprleftpr2
|
|
||||||
EXTSYM sprleftpr3,sprlefttot,sprprifix,drawmode7extbg,interlval,drawmode7extbg2
|
|
||||||
EXTSYM sprclprio,sprpriodata,sprsingle
|
|
||||||
EXTSYM cachetile2b,cachetile4b,cachetile8b,vram,CacheCheckSkip
|
|
||||||
EXTSYM cachetile2b16x16,cachetile4b16x16,cachetile8b16x16
|
|
||||||
EXTSYM osm2dis,xtravbuf
|
|
||||||
EXTSYM bg3ptr,bg3scrolx,bg3scroly,cachesingle,colormoded2
|
|
||||||
EXTSYM tempoffset,vidmemch2,vidmemch4,vidmemch8
|
|
||||||
EXTSYM ofsmcptr,ofsmady,ofsmadx,yposng,yposngom,flipyposng,flipyposngom
|
|
||||||
EXTSYM ofsmtptr,ofsmmptr,ofsmcyps,bgtxadd,bg1ptrx,bg1ptry
|
|
||||||
|
|
||||||
%include "video/vidmacro.mac"
|
%include "video/vidmacro.mac"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
;drawspritesprio
|
;drawspritesprio
|
||||||
|
|
||||||
SECTION .bss
|
SECTION .bss
|
||||||
@@ -4412,6 +4400,4 @@ NEWSYM temp, resb 1
|
|||||||
NEWSYM bshifter, resb 1
|
NEWSYM bshifter, resb 1
|
||||||
NEWSYM a16x16xinc, resb 1
|
NEWSYM a16x16xinc, resb 1
|
||||||
NEWSYM a16x16yinc, resb 1
|
NEWSYM a16x16yinc, resb 1
|
||||||
|
SECTION .text
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -18,23 +18,17 @@
|
|||||||
;along with this program; if not, write to the Free Software
|
;along with this program; if not, write to the Free Software
|
||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM mode7tab,winptrref,nglogicval,winlogicaval
|
EXTSYM mode7tab,winptrref,nglogicval,winlogicaval,curmosaicsz,curvidoffset
|
||||||
EXTSYM curmosaicsz,curvidoffset,cwinptr,domosaic,mode7A,mode7B
|
EXTSYM cwinptr,domosaic,mode7A,mode7B,mode7C,mode7D,mode7X0,mode7Y0,mode7set
|
||||||
EXTSYM mode7C,mode7D,mode7X0,mode7Y0,mode7set,vram,vrama,winon,xtravbuf
|
EXTSYM vram,vrama,winon,xtravbuf,ngwinen,winbg1enval,BuildWindow,ngwintable
|
||||||
EXTSYM ngwinen, winbg1enval, BuildWindow, ngwintable, ngcwinptr, domosaicng
|
EXTSYM ngcwinptr,domosaicng,pesimpng,mode7hr,BGMA,mode7ab,mode7cd,BG1SYl,BG1SXl
|
||||||
EXTSYM pesimpng
|
|
||||||
EXTSYM mode7hr
|
|
||||||
EXTSYM BGMA, mode7ab, mode7cd, BG1SYl, BG1SXl, mosenng, mosszng
|
|
||||||
|
|
||||||
%include "video/mode7.mac"
|
%include "video/mode7.mac"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
;*******************************************************
|
;*******************************************************
|
||||||
; Processes & Draws Mode 7
|
; Processes & Draws Mode 7
|
||||||
;*******************************************************
|
;*******************************************************
|
||||||
@@ -826,5 +820,3 @@ NEWSYM processmode7hires
|
|||||||
pop esi
|
pop esi
|
||||||
.nogo
|
.nogo
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -18,19 +18,15 @@
|
|||||||
;along with this program; if not, write to the Free Software
|
;along with this program; if not, write to the Free Software
|
||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM mode7tab,winptrref,nglogicval,winlogicaval
|
EXTSYM mode7tab,winptrref,nglogicval,winlogicaval,curmosaicsz,curvidoffset
|
||||||
EXTSYM curmosaicsz,curvidoffset,cwinptr,domosaic,mode7A,mode7B
|
EXTSYM cwinptr,mode7A,mode7B,mode7C,mode7D,mode7X0,mode7Y0,mode7set,vram,vrama
|
||||||
EXTSYM mode7C,mode7D,mode7X0,mode7Y0,mode7set,vram,vrama,winon,xtravbuf
|
EXTSYM xtravbuf,ngwleft,ngwleftb,mode7xpos,mode7ypos,mode7xrpos,mode7yrpos
|
||||||
EXTSYM ngwleft,ngwleftb,mode7xpos,mode7ypos,mode7xrpos,mode7yrpos
|
EXTSYM mode7xadder,mode7yadder,mode7hr,dcolortab,UnusedBitXor,UnusedBit,scrndis
|
||||||
EXTSYM mode7xadder,mode7yadder,mode7hr,drawmode7winhr,dcolortab
|
EXTSYM vidbright,prevbrightdc,Gendcolortable,mode7ab,mode7cd,BGMA,BG1SXl,BG1SYl
|
||||||
EXTSYM UnusedBitXor,UnusedBit
|
|
||||||
EXTSYM scrndis
|
|
||||||
EXTSYM vidbright,prevbrightdc,Gendcolortable
|
|
||||||
EXTSYM mode7ab,mode7cd,BGMA
|
|
||||||
EXTSYM BG1SXl,BG1SYl
|
|
||||||
EXTSYM processmode7hires
|
|
||||||
|
|
||||||
%include "video/mode716.mac"
|
%include "video/mode716.mac"
|
||||||
|
|
||||||
@@ -687,5 +683,3 @@ NEWSYM processmode7hires16bd
|
|||||||
pop esi
|
pop esi
|
||||||
.nogo
|
.nogo
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -20,9 +20,9 @@
|
|||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM curmosaicsz,curvidoffset,domosaic16b,winptrref,scaddset
|
EXTSYM curmosaicsz,curvidoffset,domosaic16b,winptrref,mode7A,mode7B,mode7C
|
||||||
EXTSYM mode7A,mode7B,mode7C,mode7D,mode7X0,mode7Y0,mode7set,cwinptr
|
EXTSYM mode7D,mode7X0,mode7Y0,mode7set,cwinptr,vram,vrama,winon,mode7tab
|
||||||
EXTSYM pal16b,vram,vrama,winon,mode7tab,xtravbuf,dcolortab,vidbright
|
EXTSYM xtravbuf,dcolortab,vidbright
|
||||||
|
|
||||||
%include "video/mode7.mac"
|
%include "video/mode7.mac"
|
||||||
|
|
||||||
@@ -232,5 +232,3 @@ SECTION .text
|
|||||||
Mode7Process Mode7Window, domosaic16b, 2
|
Mode7Process Mode7Window, domosaic16b, 2
|
||||||
.nextval3w
|
.nextval3w
|
||||||
Mode7ProcessB Mode7Window, domosaic16b, 2
|
Mode7ProcessB Mode7Window, domosaic16b, 2
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -18,11 +18,12 @@
|
|||||||
;along with this program; if not, write to the Free Software
|
;along with this program; if not, write to the Free Software
|
||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM curmosaicsz,curvidoffset,domosaic16b,winptrref,scaddset
|
EXTSYM curmosaicsz,curvidoffset,domosaic16b,winptrref,mode7A,mode7B,mode7C
|
||||||
EXTSYM mode7A,mode7B,mode7C,mode7D,mode7X0,mode7Y0,mode7set
|
EXTSYM mode7D,mode7X0,mode7Y0,mode7set,pal16b,vram,vrama,winon,mode7tab,xtravbuf
|
||||||
EXTSYM pal16b,vram,vrama,winon,mode7tab,xtravbuf,drawmode7dcolor
|
|
||||||
EXTSYM cwinptr
|
EXTSYM cwinptr
|
||||||
|
|
||||||
;*******************************************************
|
;*******************************************************
|
||||||
@@ -1262,5 +1263,3 @@ NEWSYM drawmode716extbg2
|
|||||||
cmp dh,1
|
cmp dh,1
|
||||||
jne near domosaic16b
|
jne near domosaic16b
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -18,25 +18,18 @@
|
|||||||
;along with this program; if not, write to the Free Software
|
;along with this program; if not, write to the Free Software
|
||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM bgcoloradder,bgofwptr,bgsubby,bshifter,curbgpr,curmosaicsz
|
EXTSYM bgcoloradder,bgofwptr,bgsubby,bshifter,curbgpr,curmosaicsz,curvidoffset
|
||||||
EXTSYM curvidoffset,cwinptr,domosaic16b,drawn,pal16b,scaddtype
|
EXTSYM cwinptr,domosaic16b,drawn,pal16b,scaddtype,scrnon,temp,tempcach,temptile
|
||||||
EXTSYM scrnon,temp,tempcach,temptile,tileleft16b,transpbuf,vcache2b
|
EXTSYM tileleft16b,transpbuf,winon,winptrref,xtravbuf,yadd,yadder,yrevadder
|
||||||
EXTSYM vcache4b,vcache8b,winon,winptrref,xtravbuf,yadd,yadder
|
EXTSYM draw16x816t,bgmode,vcache2ba,vcache4ba,vcache8ba,fulladdtab,pal16bcl
|
||||||
EXTSYM yrevadder,draw16x816t,bgmode
|
EXTSYM pal16bxcl,coadder16,a16x16xinc,a16x16yinc,curypos,yflipadd
|
||||||
EXTSYM vcache2ba,vcache4ba,vcache8ba
|
|
||||||
EXTSYM fulladdtab,pal16bcl
|
|
||||||
EXTSYM pal16bxcl
|
|
||||||
EXTSYM coadder16
|
|
||||||
EXTSYM a16x16xinc,a16x16yinc,curypos,yflipadd
|
|
||||||
|
|
||||||
%include "video/vidmacro.mac"
|
%include "video/vidmacro.mac"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
;*******************************************************
|
;*******************************************************
|
||||||
; Processes & Draws 8x8 tiles in 2, 4, & 8 bit mode
|
; Processes & Draws 8x8 tiles in 2, 4, & 8 bit mode
|
||||||
;*******************************************************
|
;*******************************************************
|
||||||
@@ -1502,5 +1495,3 @@ NEWSYM draw16x1616tswinonms
|
|||||||
dec byte[tileleft16b]
|
dec byte[tileleft16b]
|
||||||
jnz near .loopa
|
jnz near .loopa
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -18,35 +18,26 @@
|
|||||||
;along with this program; if not, write to the Free Software
|
;along with this program; if not, write to the Free Software
|
||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM ngwintable,ngwinen,ngcwinptr,ngcpixleft,ngcwinmode
|
EXTSYM ngwintable,ngwinen,ngcwinptr,ngcpixleft,ngcwinmode,tleftn,ng16bprval
|
||||||
EXTSYM tleftn, ng16bprval, vrama, bg1drwng, ng16bbgval, bg1totng
|
EXTSYM vrama,bg1drwng,ng16bbgval,bg1totng,bgtxadd,taddnfy16x16,taddfy16x16
|
||||||
EXTSYM bgtxadd, taddnfy16x16, taddfy16x16, switch16x16, curmosaicsz, domosaicng16b
|
EXTSYM switch16x16,curmosaicsz,domosaicng16b,vidmemch2,vidmemch4,vidmemch8
|
||||||
EXTSYM vidmemch4,vidmemch2,vidmemch8,mode0add,vcache4b,vcache2b,vcache8b
|
EXTSYM mode0add,vcache4b,vcache2b,vcache8b,cachesingle2bng,cachesingle8bng
|
||||||
EXTSYM cachesingle2bng,cachesingle8bng,ngpalcon4b,ngpalcon8b
|
EXTSYM ngpalcon4b,ngpalcon8b,ngpalcon2b,tleftnb,tltype2b,tltype4b,tltype8b
|
||||||
EXTSYM ngpalcon2b,tleftnb,tltype2b,tltype4b,tltype8b,yposng,flipyposng
|
EXTSYM yposng,flipyposng,ofsmcptr,ofsmtptr,ofsmmptr,ofsmcyps,ofsmady,ofsmadx
|
||||||
EXTSYM ofsmcptr,ofsmtptr,ofsmmptr,ofsmcyps,ofsmady,ofsmadx,FillSubScr,UnusedBitXor
|
EXTSYM FillSubScr,UnusedBitXor,yposngom,flipyposngom,cbgval,ofsmval,ofsmvalh
|
||||||
EXTSYM yposngom,flipyposngom,cbgval,ofsmval,ofsmvalh,vram,CPalPtrng,BGMS1,scadtng
|
EXTSYM vram,CPalPtrng,BGMS1,scadtng,CMainWinScr,CSubWinScr,UnusedBit,res640
|
||||||
EXTSYM CMainWinScr,CSubWinScr,UnusedBit,res640,mosclineval,mostranspval
|
EXTSYM mosclineval,mostranspval,vcache2bs,vcache4bs,vcache8bs,vidmemch2s
|
||||||
EXTSYM vcache2bs,vcache4bs,vcache8bs
|
EXTSYM vidmemch4s,vidmemch8s,cpalval,bgtxadd2,SpecialLine
|
||||||
EXTSYM vidmemch2s,vidmemch4s,vidmemch8s
|
|
||||||
EXTSYM cpalval,bgtxadd2
|
|
||||||
EXTSYM SpecialLine
|
|
||||||
|
|
||||||
%include "video/vidmacro.mac"
|
%include "video/vidmacro.mac"
|
||||||
%include "video/newg162.mac"
|
%include "video/newg162.mac"
|
||||||
%include "video/newgfx16.mac"
|
%include "video/newgfx16.mac"
|
||||||
%include "video/newg16wn.mac"
|
%include "video/newg16wn.mac"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
;******************************************
|
;******************************************
|
||||||
; 16bitng caching functions
|
; 16bitng caching functions
|
||||||
;******************************************
|
;******************************************
|
||||||
@@ -1403,5 +1394,3 @@ drawlineng4b16bmsom16x16:
|
|||||||
drawline16bmacroom16x16 tltype4b,preparet4ba,cachesingle4bng,ngpalcon4b,test4ba,0Fh,procpixelsmst,procpixelstmst
|
drawline16bmacroom16x16 tltype4b,preparet4ba,cachesingle4bng,ngpalcon4b,test4ba,0Fh,procpixelsmst,procpixelstmst
|
||||||
drawlineng4b16bmsntom16x16
|
drawlineng4b16bmsntom16x16
|
||||||
drawline16bmacroom16x16 tltype4b,preparet4ba,cachesingle4bng,ngpalcon4b,test4ba,0Fh,procpixelsmsnt,procpixelstmsnt
|
drawline16bmacroom16x16 tltype4b,preparet4ba,cachesingle4bng,ngpalcon4b,test4ba,0Fh,procpixelsmsnt,procpixelstmsnt
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
; Finish up parttile
|
; Finish up parttile
|
||||||
|
|
||||||
%macro procpixels16x8 3
|
%macro procpixels16x8 3
|
||||||
@@ -887,5 +888,3 @@
|
|||||||
add word[ofsmtptr],bx
|
add word[ofsmtptr],bx
|
||||||
jmp %%nextb
|
jmp %%nextb
|
||||||
%endmacro
|
%endmacro
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -20,12 +20,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%macro procpixelstw 3
|
%macro procpixelstw 3
|
||||||
dec dword[ngcpixleft]
|
dec dword[ngcpixleft]
|
||||||
jnz %%notzero
|
jnz %%notzero
|
||||||
@@ -1191,5 +1185,3 @@ Nextwinmode:
|
|||||||
add word[ofsmtptr],bx
|
add word[ofsmtptr],bx
|
||||||
jmp %%next
|
jmp %%next
|
||||||
%endmacro
|
%endmacro
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -18,46 +18,39 @@
|
|||||||
;along with this program; if not, write to the Free Software
|
;along with this program; if not, write to the Free Software
|
||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM BG116x16t,BG1SXl,BG1SYl,BG216x16t,BG2SXl,BG2SYl,BG316x16t,BG3PRI
|
EXTSYM BG116x16t,BG1SXl,BG1SYl,BG216x16t,BG2SXl,BG2SYl,BG316x16t,BG3PRI,BG3SXl
|
||||||
EXTSYM BG3SXl,BG3SYl,BG416x16t,BG4SXl,BG4SYl,BGFB,BGMA,BGMS1,BGOPT1,BGOPT2
|
EXTSYM BG3SYl,BG416x16t,BG4SXl,BG4SYl,BGFB,BGMA,BGMS1,BGOPT1,BGOPT2,BGOPT3
|
||||||
EXTSYM BGOPT3,BGOPT4,BGPT1,BGPT1X,BGPT1Y,BGPT2,BGPT2X,BGPT2Y,BGPT3,BGPT3X
|
EXTSYM BGOPT4,BGPT1,BGPT1X,BGPT1Y,BGPT2,BGPT2X,BGPT2Y,BGPT3,BGPT3X,BGPT3Y,BGPT4
|
||||||
EXTSYM BGPT3Y,BGPT4,BGPT4X,BGPT4Y,StartDrawNewGfx16b,bg1objptr,bg1ptr
|
EXTSYM BGPT4X,BGPT4Y,StartDrawNewGfx16b,bg1objptr,bg1ptr,bg1ptrx,bg1ptry
|
||||||
EXTSYM bg1ptrx,bg1ptry,bg1scrolx,bg1scroly,bg2objptr,bg2ptr,bg2ptrx
|
EXTSYM bg1scrolx,bg1scroly,bg2objptr,bg2ptr,bg2ptrx,bg2ptry,bg2scrolx,bg2scroly
|
||||||
EXTSYM bg2ptry,bg2scrolx,bg2scroly,bg3highst,bg3objptr,bg3ptr,bg3ptrx
|
EXTSYM bg3highst,bg3objptr,bg3ptr,bg3ptrx,bg3ptry,bg3scrolx,bg3scroly,bg4objptr
|
||||||
EXTSYM bg3ptry,bg3scrolx,bg3scroly,bg4objptr,bg4ptr,bg4ptrx,bg4ptry
|
EXTSYM bg4ptr,bg4ptrx,bg4ptry,bg4scrolx,bg4scroly,bgmode,bgtxad,cachesingle2bng
|
||||||
EXTSYM bg4scrolx,bg4scroly,bgmode,bgtxad,cachesingle2bng
|
|
||||||
EXTSYM cachesingle8bng,cbitmode,cfield,colormodedef,csprbit,curmosaicsz
|
EXTSYM cachesingle8bng,cbitmode,cfield,colormodedef,csprbit,curmosaicsz
|
||||||
EXTSYM curvidoffset,curypos,drawmode716b,forceblnk,interlval,intrlng,mode7A
|
EXTSYM curvidoffset,curypos,drawmode716b,forceblnk,interlval,intrlng,mode7A
|
||||||
EXTSYM mode7C,mode7X0,mode7ab,mode7cd,mode7set,mode7st,mode7xy,mosaicon
|
EXTSYM mode7C,mode7X0,mode7ab,mode7cd,mode7set,mode7st,mode7xy,mosaicon,mosaicsz
|
||||||
EXTSYM mosaicsz,mosenng,mosszng,ngceax,ngcedi,ngpalcon2b,ngpalcon4b
|
EXTSYM mosenng,mosszng,ngceax,ngcedi,ngpalcon2b,ngpalcon8b,ngptrdat,prdata
|
||||||
EXTSYM ngpalcon8b,ngptrdat,prdata,prdatb,prdatc,res640,resolutn,scrndis
|
EXTSYM prdatb,prdatc,res640,resolutn,scrndis,scrnon,spritetablea,sprleftpr
|
||||||
EXTSYM scrnon,spritetablea,sprleftpr,sprlefttot,sprpriodata,sprtbng,sprtlng
|
EXTSYM sprlefttot,sprpriodata,sprtbng,sprtlng,t16x161,t16x162,t16x163,t16x164
|
||||||
EXTSYM t16x161,t16x162,t16x163,t16x164,tltype2b,tltype4b,tltype8b,vcache2b
|
EXTSYM tltype2b,tltype8b,vcache2b,vcache4b,vcache8b,vidbuffer,vidmemch2
|
||||||
EXTSYM vcache4b,vcache8b,vidbuffer,vidmemch2,vidmemch4,vidmemch8,vram,vrama
|
EXTSYM vidmemch4,vidmemch8,vram,vrama,winon,xtravbuf,ng16bbgval,ng16bprval
|
||||||
EXTSYM winon,xtravbuf,ng16bbgval,ng16bprval,bgwinchange,res480
|
EXTSYM bgwinchange,res480,drawtileng2b,drawtileng4b,drawtileng8b,drawmode7win
|
||||||
EXTSYM drawtileng2b,drawtileng4b,drawtileng8b,drawmode7win,hdmaearlstart
|
EXTSYM hdmaearlstart,drawtileng16x162b,drawtileng16x164b,drawtileng16x168b
|
||||||
EXTSYM drawtileng16x162b,drawtileng16x164b,drawtileng16x168b,osm2dis
|
EXTSYM osm2dis,drawlineng2b,drawlineng4b,drawlineng8b,processmode7hires
|
||||||
EXTSYM drawlineng2b,drawlineng4b,drawlineng8b,processmode7hires
|
EXTSYM drawlineng16x162b,drawlineng16x164b,drawlineng16x168b,winboundary
|
||||||
EXTSYM drawlineng16x162b,drawlineng16x164b,drawlineng16x168b,mode7hr
|
EXTSYM winbg1enval,winbg2enval,winbg3enval,winbg4enval,winbgobjenval
|
||||||
EXTSYM winboundary,winbg1enval,winbg2enval,winbg3enval,winbg4enval
|
EXTSYM winlogicaval,disableeffects,winenabs,scanlines,winl1,winbg1en,winobjen
|
||||||
EXTSYM winbgobjenval,winlogicaval,disableeffects,winenabs,scanlines
|
EXTSYM winlogica,winenabm,bgallchange,bg1change,bg2change,bg3change,bg4change
|
||||||
EXTSYM winl1,winbg1en,winbg2en,winbg3en,winbg4en,winobjen,winlogica,winenabm
|
EXTSYM hiresstuff,drawlineng16x84b,drawlineng16x82b,drawlinengom4b,WindowRedraw
|
||||||
EXTSYM bgallchange,bg1change,bg2change,bg3change,bg4change,hiresstuff
|
EXTSYM WindowDisables,winlogicb,ngwinptr,objwlrpos,objwen,objclineptr,CSprWinPtr
|
||||||
EXTSYM drawlineng16x84b,drawlineng16x82b,drawlinengom4b,WindowDisables
|
|
||||||
EXTSYM winlogicb
|
|
||||||
EXTSYM ngwinptr,objwlrpos,objwen,objclineptr,CSprWinPtr
|
|
||||||
EXTSYM WindowRedraw
|
|
||||||
|
|
||||||
%include "video/vidmacro.mac"
|
%include "video/vidmacro.mac"
|
||||||
%include "video/newgfx2.mac"
|
%include "video/newgfx2.mac"
|
||||||
%include "video/newgfx.mac"
|
%include "video/newgfx.mac"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
; vidbufferofsmos pointer to mosaic buffer
|
; vidbufferofsmos pointer to mosaic buffer
|
||||||
|
|
||||||
%macro WinBGCheck 1
|
%macro WinBGCheck 1
|
||||||
@@ -2354,5 +2347,4 @@ NEWSYM preparesprpr
|
|||||||
SECTION .bss
|
SECTION .bss
|
||||||
NEWSYM sprclprio, resd 1
|
NEWSYM sprclprio, resd 1
|
||||||
NEWSYM sprsingle, resd 1
|
NEWSYM sprsingle, resd 1
|
||||||
|
SECTION .text
|
||||||
|
|
||||||
|
|||||||
@@ -19,15 +19,9 @@
|
|||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
EXTSYM mode7B, mode7D
|
|
||||||
EXTSYM drawmode7ngextbg,drawmode7ngextbg2
|
EXTSYM drawmode7ngextbg,drawmode7ngextbg2
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%macro Procbgpr0 5
|
%macro Procbgpr0 5
|
||||||
; Draw BG 2
|
; Draw BG 2
|
||||||
; Start line by line drawing/check
|
; Start line by line drawing/check
|
||||||
@@ -3373,5 +3367,3 @@ EXTSYM drawmode7ngextbg,drawmode7ngextbg2
|
|||||||
pop ebx
|
pop ebx
|
||||||
ret
|
ret
|
||||||
%endmacro
|
%endmacro
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -18,66 +18,50 @@
|
|||||||
;along with this program; if not, write to the Free Software
|
;along with this program; if not, write to the Free Software
|
||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM BG116x16t,BG1SXl,BG1SYl,BG216x16t,BG2SXl,BG2SYl,BG316x16t,BG3PRI
|
EXTSYM BG116x16t,BG1SXl,BG1SYl,BG216x16t,BG2SXl,BG2SYl,BG316x16t,BG3PRI,BG3SXl
|
||||||
EXTSYM BG3SXl,BG3SYl,BG416x16t,BG4SXl,BG4SYl,BGFB,BGMA,BGMS1,BGOPT1
|
EXTSYM BG3SYl,BG416x16t,BG4SXl,BG4SYl,BGFB,BGMA,BGMS1,BGOPT1,BGOPT2,BGOPT3
|
||||||
EXTSYM BGOPT2,BGOPT3,BGOPT4,BGPT1,BGPT1X,BGPT1Y,BGPT2,BGPT2X,BGPT2Y,BGPT3
|
EXTSYM BGOPT4,BGPT1,BGPT1X,BGPT1Y,BGPT2,BGPT2X,BGPT2Y,BGPT3,BGPT3X,BGPT3Y,BGPT4
|
||||||
EXTSYM BGPT3X,BGPT3Y,BGPT4,BGPT4X,BGPT4Y,bg1drwng,bg1objptr,bg1ptr,bg1ptrx
|
EXTSYM BGPT4X,BGPT4Y,bg1drwng,bg1objptr,bg1ptr,bg1ptrx,bg1ptry,bg1scrolx
|
||||||
EXTSYM bg1ptry,bg1scrolx,bg1scroly,bg1totng,bg2drwng,bg2objptr,bg2ptr
|
EXTSYM bg1scroly,bg1totng,bg2drwng,bg2objptr,bg2ptr,bg2ptrx,bg2ptry,bg2scrolx
|
||||||
EXTSYM bg2ptrx,bg2ptry,bg2scrolx,bg2scroly,bg2totng,bg3drwng,bg3highst
|
EXTSYM bg2scroly,bg2totng,bg3drwng,bg3highst,bg3objptr,bg3ptr,bg3ptrx,bg3ptry
|
||||||
EXTSYM bg3objptr,bg3ptr,bg3ptrx,bg3ptry,bg3scrolx,bg3scroly,bg3totng
|
EXTSYM bg3scrolx,bg3scroly,bg3totng,bg4drwng,bg4objptr,bg4ptr,bg4ptrx,bg4ptry
|
||||||
EXTSYM bg4drwng,bg4objptr,bg4ptr,bg4ptrx,bg4ptry,bg4scrolx,bg4scroly
|
EXTSYM bg4scrolx,bg4scroly,bg4totng,bgcmsung,bgmode,bgtxad,bgtxadd,ngextbg
|
||||||
EXTSYM bg4totng,bgcmsung,bgmode,bgtxad,bgtxadd,cachesingle2bng
|
EXTSYM cachesingle2bng,cachesingle8bng,cfieldad,cgmod,cgram,coladdb,coladdg
|
||||||
EXTSYM cachesingle8bng,cfieldad,cgfxmod,cgmod,cgram,coladdb
|
EXTSYM coladdr,colleft16b,colormodedef,cpalval,csprbit,csprival,curmosaicsz
|
||||||
EXTSYM coladdg,coladdr,colleft16b,colormodedef,cpalval,csprbit,csprival
|
EXTSYM curvidoffset,curypos,firstdrawn,flipyposng,forceblnk,interlval,intrlng
|
||||||
EXTSYM curmosaicsz,curvidoffset,curypos,firstdrawn
|
EXTSYM mode0add,mode0ads,mode7A,mode7C,mode7X0,mode7ab,mode7cd,mode7set,mode7st
|
||||||
EXTSYM flipyposng,forceblnk,interlval,intrlng,maxbr,mode0add,mode0ads,mode7A
|
EXTSYM mode7xy,modeused,mosaicon,mosaicsz,mosenng,mosszng,ngceax,ngcedi
|
||||||
EXTSYM mode7C,mode7X0,mode7ab,mode7cd,mode7set,mode7st,mode7xy,modeused
|
EXTSYM ngpalcon2b,ngpalcon8b,ngptrdat,pesimpng,prdata,prdatb,prdatc,prevbright
|
||||||
EXTSYM mosaicon,mosaicsz,mosenng,mosszng,ngceax,ngcedi,ngpalcon2b,ngpalcon4b
|
EXTSYM reslbyl,resolutn,scaddset,scaddtype,scadsng,scadtng,scfbl,scrndis,scrnon
|
||||||
EXTSYM ngpalcon8b,ngptrdat,pesimpng,prdata,prdatb,prdatc,prevbright
|
EXTSYM spritetablea,sprleftpr,sprlefttot,sprprdrn,sprpriodata,sprtbng,sprtlng
|
||||||
;EXTSYM ngpalcon8b,pesimpng,prdata,prdatb,prdatc,prevbright
|
EXTSYM switch16x16,t16x161,t16x162,t16x163,t16x164,taddfy16x16,taddnfy16x16
|
||||||
EXTSYM prevpal,reslbyl,resolutn,scaddset,scaddtype,scadsng,scadtng,scbcong
|
EXTSYM tleftn,tleftnb,tltype2b,tltype8b,vcache2b,vcache4b,vcache8b,vidbright
|
||||||
EXTSYM scfbl,scrndis,scrnon,spritetablea,sprleftpr,sprlefttot,sprprdrn
|
EXTSYM vidbuffer,vidmemch2,vidmemch4,vidmemch8,vrama,winon,xtravbuf,yposng
|
||||||
EXTSYM sprpriodata,sprtbng,sprtlng,switch16x16,t16x161,t16x162,t16x163
|
EXTSYM vbufdptr,drawtileng2b16b,drawtileng4b16b,drawtileng8b16b,bgwinchange
|
||||||
EXTSYM t16x164,taddfy16x16,taddnfy16x16,tleftn,tleftnb,tltype2b,tltype4b
|
EXTSYM drawtileng16x162b16b,drawtileng16x164b16b,drawtileng16x168b16b,winbg1en
|
||||||
EXTSYM tltype8b,vcache2b,vcache4b,vcache8b,vesa2_bposng,vesa2_clbitng,vesa2_gposng
|
EXTSYM drawlineng2b16b,drawlineng4b16b,drawlineng8b16b,BuildWindow,winenabs
|
||||||
EXTSYM vesa2_rposng,vidbright,vidbuffer,vidmemch2,vidmemch4,drawsprng
|
EXTSYM drawlineng16x162b16b,drawlineng16x164b16b,drawlineng16x168b16b,winenabm
|
||||||
EXTSYM vidmemch8,vrama,winon,xtravbuf,yposng,vbufdptr,preparesprpr
|
EXTSYM disableeffects,winl1,winbg1enval,winbg1envalm,winlogica,winlogicaval
|
||||||
EXTSYM drawtileng2b16b,drawtileng4b16b,drawtileng8b16b
|
EXTSYM winboundary,winobjen,winlogicb,nglogicval,ngwintable,winbg2enval,doveg
|
||||||
EXTSYM drawtileng16x162b16b,drawtileng16x164b16b,drawtileng16x168b16b
|
EXTSYM winbg3enval,winbg4enval,winbgobjenval,Mode7HiRes16b,res640,hiresstuff
|
||||||
EXTSYM drawlineng2b16b,drawlineng4b16b,drawlineng8b16b,BuildWindow
|
EXTSYM Mode7BackA,Mode7BackC,Mode7BackX0,Mode7BackSet,drawmode7win16b,ngwinen
|
||||||
EXTSYM drawlineng16x162b16b,drawlineng16x164b16b,drawlineng16x168b16b
|
EXTSYM drawlineng16x84b16b,drawlineng16x82b16b,ofsmcyps,vram,ofsmcptr,ofsmady
|
||||||
EXTSYM ngextbg,bgwinchange,disableeffects,winbg1en,winenabs,winenabm
|
EXTSYM ofsmadx,ofsmtptr,yposngom,flipyposngom,ofsmmptr,ofsmval,ofsmvalh,V8Mode
|
||||||
EXTSYM winl1,winbg1enval,winbg1envalm
|
EXTSYM hdmaearlstart,ofsmvalh,cbgval,drawlinengom4b16b,ignor512,winbg1envals
|
||||||
EXTSYM winlogica,winlogicaval,winboundary,winobjen,winlogicb,nglogicval
|
EXTSYM FillSubScr,scanlines,drawmode7win16bd,SpecialLine,vidmemch2s,dovegrest
|
||||||
EXTSYM ngwintable,winbg2enval,winbg3enval,winbg4enval,winbgobjenval
|
EXTSYM smallscreenon,ScreenScale,SA1Enable,drawlinengom16x164b16b,bgallchange
|
||||||
EXTSYM Mode7HiRes16b,res640,hiresstuff,Mode7BackA,Mode7BackC,Mode7BackX0
|
EXTSYM bg1change,bg2change,bg3change,bg4change,ngwinptr,objwlrpos,objwen
|
||||||
EXTSYM Mode7BackSet,drawmode7win16b,processmode7hires,ngwinen
|
EXTSYM objclineptr,CSprWinPtr,BuildWindow2,NGNumSpr,fulladdtab,MMXSupport
|
||||||
EXTSYM drawlineng16x84b16b,drawlineng16x82b16b,ofsmcyps,vram,ofsmcptr
|
EXTSYM bgtxadd2
|
||||||
EXTSYM ofsmady,ofsmadx,ofsmtptr,yposngom,flipyposngom,ofsmmptr
|
|
||||||
EXTSYM ofsmval,ofsmvalh,hdmaearlstart,ofsmvalh,cbgval,drawlinengom4b16b
|
|
||||||
EXTSYM drawsprngw,ignor512,winbg1envals,FillSubScr,scanlines
|
|
||||||
EXTSYM drawmode7win16bd,SpecialLine,vidmemch2s
|
|
||||||
EXTSYM smallscreenon,ScreenScale,SA1Enable,drawlinengom16x164b16b
|
|
||||||
EXTSYM doveg,V8Mode,dovegrest
|
|
||||||
EXTSYM bgallchange,bg1change,bg2change,bg3change,bg4change
|
|
||||||
EXTSYM ngwinptr,objwlrpos,objwen,objclineptr,CSprWinPtr
|
|
||||||
EXTSYM BuildWindow2
|
|
||||||
EXTSYM NGNumSpr
|
|
||||||
EXTSYM fulladdtab
|
|
||||||
EXTSYM MMXSupport,bgtxadd2
|
|
||||||
|
|
||||||
%include "video/vidmacro.mac"
|
%include "video/vidmacro.mac"
|
||||||
%include "video/newgfx16.mac"
|
%include "video/newgfx16.mac"
|
||||||
%include "video/newg162.mac"
|
%include "video/newg162.mac"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
; mov ebp,[cpalval+ebx*4]
|
|
||||||
; 75036*2
|
|
||||||
; Different routines for:
|
; Different routines for:
|
||||||
; Normal (just one screen)
|
; Normal (just one screen)
|
||||||
; Transparency
|
; Transparency
|
||||||
@@ -89,9 +73,6 @@ EXTSYM MMXSupport,bgtxadd2
|
|||||||
; Sub+MainWin
|
; Sub+MainWin
|
||||||
; SubWin+Main
|
; SubWin+Main
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
; cgfxmod :
|
; cgfxmod :
|
||||||
; 0 = No addition whatsoever
|
; 0 = No addition whatsoever
|
||||||
; 1 = Addition in the back area only
|
; 1 = Addition in the back area only
|
||||||
@@ -3624,7 +3605,3 @@ MainScreenClip:
|
|||||||
SubScreenClip:
|
SubScreenClip:
|
||||||
ScreenClip SCSubA,SCSubB,SCSubC,SCSubD
|
ScreenClip SCSubA,SCSubB,SCSubC,SCSubD
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -19,14 +19,9 @@
|
|||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
EXTSYM mode7B, mode7D, processmode7hires16b, processmode7hires16bd
|
|
||||||
EXTSYM drawmode7ngextbg16b,drawmode7ngextbg216b
|
|
||||||
EXTSYM osm2dis
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
EXTSYM processmode7hires16b,processmode7hires16bd,drawmode7ngextbg16b
|
||||||
|
EXTSYM drawmode7ngextbg216b,osm2dis
|
||||||
|
|
||||||
; drawtileng16b
|
; drawtileng16b
|
||||||
|
|
||||||
@@ -3831,5 +3826,3 @@ EXTSYM osm2dis
|
|||||||
pop ebx
|
pop ebx
|
||||||
ret
|
ret
|
||||||
%endmacro
|
%endmacro
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -20,11 +20,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
; Finish up parttile
|
; Finish up parttile
|
||||||
|
|
||||||
%macro drawlineng16x8 8
|
%macro drawlineng16x8 8
|
||||||
@@ -1013,6 +1008,3 @@
|
|||||||
add word[ofsmtptr],bx
|
add word[ofsmtptr],bx
|
||||||
jmp %%next
|
jmp %%next
|
||||||
%endmacro
|
%endmacro
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -18,56 +18,29 @@
|
|||||||
;along with this program; if not, write to the Free Software
|
;along with this program; if not, write to the Free Software
|
||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM BGMA,DSPMem,INTEnab,V8Mode,antienab,cacheud,cbitmode
|
EXTSYM BGMA,V8Mode,antienab,cacheud,cbitmode,ccud,cfield,cgram,coladdb,coladdg
|
||||||
EXTSYM ccud,cfield,cgfxmod,cgram,coladdb,coladdg,coladdr,cpalval,curblank
|
EXTSYM coladdr,curblank,curfps,cvidmode,delay,extlatch,fnamest,En2xSaI
|
||||||
EXTSYM curfps,cvidmode,delay,draw16bnng,extlatch,fnamest,fulladdtab,En2xSaI
|
|
||||||
EXTSYM gammalevel,hirestiledat,ignor512,latchx,latchy,maxbr,ForceNewGfxOff
|
EXTSYM gammalevel,hirestiledat,ignor512,latchx,latchy,maxbr,ForceNewGfxOff
|
||||||
EXTSYM newengen,nextframe,objptr,pressed,prevpal,res512switch,res640
|
EXTSYM newengen,nextframe,objptr,pressed,prevpal,res512switch,res640,resolutn
|
||||||
EXTSYM resolutn,romispal,scaddtype,scadtng,scanlines
|
EXTSYM romispal,scaddtype,scanlines,selcA000,snesmouse,t1cc,vcache4b,vesa2_bpos
|
||||||
EXTSYM scbcong,selcA000,snesmouse,t1cc,vcache4b,vesa2_bpos,spritetablea
|
EXTSYM spritetablea,vesa2_clbit,vesa2_gpos,vesa2_rpos,vesa2red10,vesa2selec
|
||||||
EXTSYM vesa2_clbit,vesa2_gpos,vesa2_rpos,vesa2red10,vesa2selec,vidbuffer
|
EXTSYM vidbuffer,vram,vsyncon,KeyStateSelct,soundon,Open_File,Read_File
|
||||||
EXTSYM vram,vsyncon,vbufdptr,KeyStateSelct,forceblnk,soundon
|
EXTSYM Close_File,Create_File,Write_File,Get_File_Date,Triplebufen,makepal
|
||||||
EXTSYM Open_File,Read_File,Close_File,Create_File,Write_File,Get_File_Date
|
EXTSYM changepal,saveselectpal,displayfpspal,superscopepal,DrawScreen,MMXSupport
|
||||||
EXTSYM Triplebufen,makepal,changepal,saveselectpal,displayfpspal,superscopepal
|
EXTSYM Get_MouseData,Get_MousePositionDisplacement,GUIEnableTransp,GUIFontData
|
||||||
EXTSYM DrawScreen,MMXSupport
|
EXTSYM StopSound,StartSound,PrevPicture,File_Seek,File_Seek_End,nggposng
|
||||||
EXTSYM Get_MouseData,Get_MousePositionDisplacement
|
EXTSYM Palette0,GetTimeInSeconds,bg3ptr,bg3scroly,bg3scrolx,C4Ram,dsp1array
|
||||||
EXTSYM GUIEnableTransp
|
EXTSYM genfulladdtab,genfulladdtabng,TimerEnable,ShowTimer,debugdisble,GUIOn
|
||||||
EXTSYM GUIFontData
|
EXTSYM FilteredGUI,HalfTrans,SmallMsgText,ClearScreen,Mode7HiRes,mosenng,mosszng
|
||||||
EXTSYM StopSound,StartSound
|
EXTSYM intrlng,mode7hr,newgfx16b,vesa2_clbitng,vesa2_clbitng2,granadd,CSStatus
|
||||||
EXTSYM PrevPicture,File_Seek,File_Seek_End,nggposng
|
EXTSYM CSStatus2,CSStatus3,SpecialLine,Clear2xSaIBuffer,vidbufferofsb,bg1scroly
|
||||||
EXTSYM Palette0
|
EXTSYM bg1objptr,DecompAPtr,HalfTransB,HalfTransC,cur_zst_size,old_zst_size
|
||||||
EXTSYM GetTimeInSeconds
|
EXTSYM MovieProcessing,mzt_chdir,UpChdir,MovieFrameStr,GetMovieFrameStr
|
||||||
EXTSYM scaddset,scrnon,spcRam,nmiprevline,bgmode,ofsmcptr
|
EXTSYM MovieDisplayFrame
|
||||||
EXTSYM interlval,bg3ptr,bg3scroly,bg3scrolx,C4Ram,SprValAdd,SA1IRQEn,SA1IRQV
|
|
||||||
EXTSYM winbg1en,winlogica,wincolen,winlogicb,dsp1ptr,dsp1array,bg3objptr
|
|
||||||
EXTSYM cnetptrhead,cnetptrtail,JoyBOrig,pl2neten,Voice6Ptr,HIRQLoc,SA1DoIRQ
|
|
||||||
EXTSYM mode7A,mode7B,mode7C,mode7D,mode7set,winbg3en,winl1,winr1,SA1DMAInfo
|
|
||||||
EXTSYM winl2,winr2,VIRQLoc,SA1Enable,mode7X0,mode7Y0,SA1Temp
|
|
||||||
EXTSYM SA1IRQTemp,SA1IRQEnable,SA1DMADest,SA1DMAChar,SA1DMASource,SA1DMACount
|
|
||||||
EXTSYM objptrn,nglogicval,bgtilesz,C4values
|
|
||||||
EXTSYM curexecstate,TempVidInfo,LatestBank,C4ObjSelec
|
|
||||||
EXTSYM BGMS1,scadsng,winenabm,winenabs,vidbright
|
|
||||||
EXTSYM genfulladdtab,genfulladdtabng
|
|
||||||
EXTSYM TimerEnable,ShowTimer
|
|
||||||
EXTSYM ClearScreenSkip,debugdisble,cmovietimeint
|
|
||||||
EXTSYM StringLength
|
|
||||||
EXTSYM GUIOn,FilteredGUI,HalfTrans
|
|
||||||
EXTSYM SmallMsgText
|
|
||||||
EXTSYM ClearScreen
|
|
||||||
EXTSYM Mode7HiRes,mosenng,mosszng,intrlng,mode7hr ;,VESAAddr
|
|
||||||
EXTSYM GUICPC, newgfx16b
|
|
||||||
EXTSYM vesa2_clbitng,vesa2_clbitng2,vesa2_clbitng3
|
|
||||||
EXTSYM granadd,CSStatus,CSStatus2,CSStatus3
|
|
||||||
EXTSYM SpecialLine
|
|
||||||
EXTSYM Clear2xSaIBuffer,vidbufferofsb
|
|
||||||
;EXTSYM Super2xSaI
|
|
||||||
EXTSYM HalfTransB,HalfTransC
|
|
||||||
|
|
||||||
EXTSYM cur_zst_size,old_zst_size
|
|
||||||
EXTSYM MovieProcessing,mzt_chdir,UpChdir
|
|
||||||
EXTSYM MovieFrameStr,GetMovieFrameStr,MovieDisplayFrame
|
|
||||||
|
|
||||||
%ifdef __MSDOS__
|
%ifdef __MSDOS__
|
||||||
EXTSYM SB_blank
|
EXTSYM SB_blank
|
||||||
@@ -3049,9 +3022,6 @@ NEWSYM hextestoutput
|
|||||||
mov esi,216*288+32
|
mov esi,216*288+32
|
||||||
add esi,[vidbuffer]
|
add esi,[vidbuffer]
|
||||||
xor eax,eax
|
xor eax,eax
|
||||||
EXTSYM Op14Zr,Op14Xr,Op14Yr,Op14U,Op14F,Op14L
|
|
||||||
EXTSYM Op02CX,Op02CY,bg1scrolx,bg1scroly
|
|
||||||
EXTSYM TValDebug,TValDebug2,curhdma,bg1ptr,bg1objptr,DecompAPtr
|
|
||||||
; 4F00h
|
; 4F00h
|
||||||
mov ebx,[C4Ram]
|
mov ebx,[C4Ram]
|
||||||
mov ebx,[vram]
|
mov ebx,[vram]
|
||||||
@@ -3468,5 +3438,3 @@ db 0,0,0,0,0,1,1,0,0,1,0,0,1,1,0,0,0,0,0,0
|
|||||||
db 0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0
|
db 0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0
|
||||||
db 0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0
|
db 0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0
|
||||||
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -20,16 +20,15 @@
|
|||||||
|
|
||||||
; This file compiles to zero if not OpenBSD, thus it can be
|
; This file compiles to zero if not OpenBSD, thus it can be
|
||||||
; left in the Makefile.
|
; left in the Makefile.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
ALIGN 32
|
EXTSYM SurfaceX,SurfaceY,ScreenPtr,SurfBufD,pitch,MMXSupport,resolutn,copymaskRB
|
||||||
|
EXTSYM copymaskG,copymagic
|
||||||
|
|
||||||
EXTSYM SurfaceX,SurfaceY
|
ALIGN32
|
||||||
EXTSYM ScreenPtr,SurfBufD
|
|
||||||
EXTSYM pitch,MMXSupport,resolutn
|
|
||||||
%ifdef __WIN32__
|
|
||||||
EXTSYM BitConv32Ptr
|
|
||||||
%endif
|
|
||||||
|
|
||||||
SECTION .text
|
SECTION .text
|
||||||
|
|
||||||
@@ -137,8 +136,6 @@ NEWSYM DrawWin256x224x16
|
|||||||
popad
|
popad
|
||||||
ret
|
ret
|
||||||
|
|
||||||
EXTSYM copymaskRB,copymaskG,copymagic,coef
|
|
||||||
|
|
||||||
NEWSYM DrawWin256x224x32
|
NEWSYM DrawWin256x224x32
|
||||||
pushad
|
pushad
|
||||||
mov ax,ds
|
mov ax,ds
|
||||||
@@ -285,5 +282,3 @@ NEWSYM DrawWin320x240x16
|
|||||||
rep stosd
|
rep stosd
|
||||||
popad
|
popad
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -19,14 +19,10 @@
|
|||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
EXTSYM OMBGTestVal,ngptrdat2,cachesingle4bng,ofshvaladd,ofsmtptrs,ofsmcptr2
|
EXTSYM OMBGTestVal,ngptrdat2,cachesingle4bng,ofshvaladd,ofsmtptrs,ofsmcptr2
|
||||||
EXTSYM Testval
|
EXTSYM Testval
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
; makev16t macros
|
; makev16t macros
|
||||||
|
|
||||||
%macro procwindowback 0
|
%macro procwindowback 0
|
||||||
@@ -1759,5 +1755,3 @@ EXTSYM Testval
|
|||||||
%%nocache
|
%%nocache
|
||||||
pop ecx
|
pop ecx
|
||||||
%endmacro
|
%endmacro
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -19,14 +19,10 @@
|
|||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
EXTSYM OMBGTestVal,ngptrdat2,cachesingle4bng,ofshvaladd,ofsmtptrs,ofsmcptr2
|
EXTSYM OMBGTestVal,ngptrdat2,cachesingle4bng,ofshvaladd,ofsmtptrs,ofsmcptr2
|
||||||
EXTSYM Testval
|
EXTSYM Testval
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
; makev16t macros
|
; makev16t macros
|
||||||
|
|
||||||
%macro procwindowback 0
|
%macro procwindowback 0
|
||||||
@@ -1791,5 +1787,3 @@ EXTSYM Testval
|
|||||||
%%nocache
|
%%nocache
|
||||||
pop ecx
|
pop ecx
|
||||||
%endmacro
|
%endmacro
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -18,16 +18,14 @@
|
|||||||
;along with this program; if not, write to the Free Software
|
;along with this program; if not, write to the Free Software
|
||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM vesa2selec,vidbuffer,GUIOn,MMXSupport,resolutn,En2xSaI,antienab,scanlines
|
EXTSYM vidbuffer,GUIOn,MMXSupport,resolutn,En2xSaI,antienab,scanlines
|
||||||
EXTSYM hirestiledat,res512switch,curblank,spritetablea
|
EXTSYM hirestiledat,res512switch,curblank,spritetablea,lineleft,_2xSaILineW
|
||||||
EXTSYM lineleft,_2xSaILineW,_2xSaISuperEagleLineW, _2xSaISuper2xSaILineW
|
EXTSYM _2xSaISuperEagleLineW, _2xSaISuper2xSaILineW,newengen,cfield,HalfTrans
|
||||||
EXTSYM newengen,cfield,HalfTrans
|
EXTSYM GUIOn2,FilteredGUI,SpecialLine,vidbufferofsb,HalfTransB,HalfTransC
|
||||||
EXTSYM GUIOn2,FilteredGUI
|
|
||||||
EXTSYM SpecialLine
|
|
||||||
EXTSYM vidbufferofsb
|
|
||||||
EXTSYM HalfTransB,HalfTransC
|
|
||||||
|
|
||||||
SECTION .bss
|
SECTION .bss
|
||||||
NEWSYM AddEndBytes, resd 1 ; Number of bytes between each line
|
NEWSYM AddEndBytes, resd 1 ; Number of bytes between each line
|
||||||
@@ -1552,5 +1550,3 @@ NEWSYM interpolate640x480x16bwin
|
|||||||
SECTION .data
|
SECTION .data
|
||||||
InterPtr dd 0
|
InterPtr dd 0
|
||||||
SECTION .text
|
SECTION .text
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -18,126 +18,40 @@
|
|||||||
;along with this program; if not, write to the Free Software
|
;along with this program; if not, write to the Free Software
|
||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM previdmode,DosExit,ZFileSystemInit
|
EXTSYM DosExit,ZFileSystemInit,getcmdline,GUIRestoreVars,getcfg,obtaindir
|
||||||
EXTSYM getcmdline,GUIRestoreVars,getcfg,obtaindir,ConvertJoyMap,tparms
|
EXTSYM ConvertJoyMap,tparms,preparedir,SBHDMA,ccmdline,spcon,cfgsoundon
|
||||||
EXTSYM preparedir,SBHDMA
|
EXTSYM cfgcvidmode,InitDir,InitDrive,DOScreatenewcfg,ExecGUISaveVars,allocptr
|
||||||
EXTSYM ccmdline
|
EXTSYM putchar,getch,exit,ZOpenFile,ZOpenMode,ZFileSeek,ZOpenFileName
|
||||||
EXTSYM FilenameStart
|
EXTSYM ZFileSeekMode,ZFileSeekPos,ZFileSeekHandle,ZFileWriteHandle
|
||||||
EXTSYM spcon
|
EXTSYM ZFileWriteSize,ZFileWriteBlock,ZFileWrite,ZFileReadHandle,ZFileReadSize
|
||||||
EXTSYM cfgsoundon
|
EXTSYM ZFileReadBlock,ZFileRead,ZFileDelFName,ZFileDelete,ZCloseFileHandle
|
||||||
EXTSYM cfgcvidmode
|
EXTSYM ZCloseFile,ZFileTellHandle,ZFileTell,ZFFTimeFName,ZFTime,ZFDate
|
||||||
EXTSYM pl1contrl,pl2contrl
|
EXTSYM ZFileGetFTime,GetTime,GetDate,GUIkeydelay2,_chdrive,ZFileMKDir,ZFileCHDir
|
||||||
EXTSYM InitDir,InitDrive
|
EXTSYM ZFileRMDir,CHPath,MKPath,RMPath,ZFileGetDir,DirName,_getdrive,DTALoc
|
||||||
EXTSYM DOScreatenewcfg,ExecGUISaveVars
|
EXTSYM DTALocPos,ZFileFindATTRIB,ZFileFindFirst,ZFileFindNext,ZFileFindPATH
|
||||||
EXTSYM allocptr
|
EXTSYM soundon,DSPDisable,Start60HZ,pressed,RaisePitch,AdjustFrequency
|
||||||
extsym putchar
|
EXTSYM vidbufferofsb,vidbuffer,clearwin,Stop60HZ,initwinvideo,vesa2_rpos
|
||||||
EXTSYM getch
|
EXTSYM vesa2_gpos,vesa2_bpos,vesa2_rposng,vesa2_gposng,vesa2_bposng,vesa2_usbit
|
||||||
EXTSYM exit
|
EXTSYM vesa2_clbit,vesa2_clbitng,vesa2_clbitng2,vesa2_clbitng3,vesa2red10,res640
|
||||||
EXTSYM ZOpenFile,ZOpenMode,CurrentHandle,ZFileSeek,ZOpenFileName,ZFileSeekMode
|
EXTSYM res480,cbitmode,cvidmode,vesa2_bits,vesa2_x,vesa2_y,genfulladdtab,GUICPC
|
||||||
EXTSYM ZFileSeekPos,ZFileSeekHandle
|
EXTSYM drawscreenwin,ConvertToAFormat,UnusedBit,HalfTrans,UnusedBitXor,UnusedBit
|
||||||
EXTSYM ZFileWriteHandle,ZFileWriteSize,ZFileWriteBlock,ZFileWrite
|
EXTSYM UnusedBitXor,ngrposng,nggposng,ngbposng,HalfTransB,HalfTransC
|
||||||
EXTSYM ZFileReadHandle,ZFileReadSize,ZFileReadBlock,ZFileRead
|
EXTSYM WinUpdateDevices,UpdateVFrame,GetMouseX,GetMouseY,InitTCP,GetMouseMoveX
|
||||||
EXTSYM ZFileDelFName,ZFileDelete
|
EXTSYM GetMouseMoveY,GetMouseButton,SetMouseMinX,SetMouseMaxX,SetMouseMinY
|
||||||
EXTSYM ZCloseFileHandle,ZCloseFile
|
EXTSYM SetMouseMaxY,SetMouseX,SetMouseY,T36HZEnabled,MouseButton,Start36HZ
|
||||||
EXTSYM ZFileTellHandle,ZFileTell
|
EXTSYM Stop36HZ,BufferSizeW,BufferSizeB,ProcessSoundBuffer,CheckTimers
|
||||||
EXTSYM ZFFTimeFName,ZFTime,ZFDate,ZFileGetFTime
|
EXTSYM vesa2_rfull,vesa2_rtrcl,vesa2_rtrcla,vesa2_gfull,vesa2_gtrcl,vesa2_gtrcla
|
||||||
EXTSYM GetTime
|
EXTSYM vesa2_bfull,vesa2_btrcl,vesa2_btrcla,Init_2xSaIMMXW,StartServerCycle
|
||||||
EXTSYM GetDate
|
EXTSYM ServerCheckNewClient,acceptzuser,ConnectServer,WaitForServer,SendDataNop
|
||||||
extsym kbhit
|
EXTSYM SendDataUDPNop,GetDataNop,DeInitTCP,StopServer,Disconnect,UDPDisableMode
|
||||||
extsym GUIkeydelay2
|
EXTSYM UDPEnableMode,UDPClearVars,UDPWait1Sec,WinErrorA2,WinErrorB2,WinErrorC2
|
||||||
;extsym _kbhit
|
EXTSYM ZsnesPage,V8Mode,GrayscaleMode,PrevWinMode,PrevFSMode,FrameSemaphore
|
||||||
;EXTSYM _getch
|
|
||||||
extsym _chdrive
|
|
||||||
EXTSYM ZFileMKDir,ZFileCHDir,ZFileRMDir,CHPath,MKPath,RMPath
|
|
||||||
EXTSYM ZFileGetDir,DriveNumber,DirName
|
|
||||||
EXTSYM _getdrive
|
|
||||||
EXTSYM DTALoc,DTALocPos,ZFileFindATTRIB,ZFileFindFirst,ZFileFindNext,ZFileFindPATH
|
|
||||||
EXTSYM NoSoundReinit,soundon,DSPDisable,NoSoundReinit
|
|
||||||
EXTSYM init60hz,init18_2hz
|
|
||||||
EXTSYM Start60HZ
|
|
||||||
EXTSYM pressed
|
|
||||||
EXTSYM RaisePitch,AdjustFrequency
|
|
||||||
EXTSYM vidbufferofsb,vidbuffer
|
|
||||||
EXTSYM clearwin
|
|
||||||
EXTSYM Stop60HZ
|
|
||||||
EXTSYM dosmakepal
|
|
||||||
EXTSYM doschangepal
|
|
||||||
EXTSYM dosinitvideo,dosinitvideo2
|
|
||||||
EXTSYM initwinvideo
|
|
||||||
EXTSYM vesa2_rpos
|
|
||||||
EXTSYM vesa2_gpos
|
|
||||||
EXTSYM vesa2_bpos
|
|
||||||
EXTSYM vesa2_rposng
|
|
||||||
EXTSYM vesa2_gposng
|
|
||||||
EXTSYM vesa2_bposng
|
|
||||||
EXTSYM vesa2_usbit
|
|
||||||
EXTSYM vesa2_clbit
|
|
||||||
EXTSYM vesa2_clbitng
|
|
||||||
EXTSYM vesa2_clbitng2
|
|
||||||
EXTSYM vesa2_clbitng3
|
|
||||||
EXTSYM genfulladdtabng
|
|
||||||
EXTSYM vesa2red10
|
|
||||||
EXTSYM res640
|
|
||||||
EXTSYM res480
|
|
||||||
EXTSYM AddSub256,InitVesa2,cbitmode,cvidmode
|
|
||||||
EXTSYM scanlines,vesa2_bits
|
|
||||||
EXTSYM vesa2_x,vesa2_y
|
|
||||||
EXTSYM vesa2selec,videotroub
|
|
||||||
EXTSYM genfulladdtab
|
|
||||||
EXTSYM GUICPC
|
|
||||||
EXTSYM drawscreenwin
|
|
||||||
EXTSYM ConvertToAFormat
|
|
||||||
EXTSYM UnusedBit,HalfTrans,UnusedBitXor,UnusedBit,UnusedBitXor
|
|
||||||
EXTSYM ngrposng,nggposng,ngbposng,HalfTransB,HalfTransC
|
|
||||||
EXTSYM DosUpdateDevices
|
|
||||||
EXTSYM WinUpdateDevices
|
|
||||||
EXTSYM DOSJoyRead
|
|
||||||
EXTSYM UpdateVFrame
|
|
||||||
EXTSYM GetMouseX
|
|
||||||
EXTSYM GetMouseY
|
|
||||||
EXTSYM GetMouseMoveX
|
|
||||||
EXTSYM GetMouseMoveY
|
|
||||||
EXTSYM GetMouseButton
|
|
||||||
EXTSYM SetMouseMinX,SetMouseMaxX
|
|
||||||
EXTSYM SetMouseMinY,SetMouseMaxY
|
|
||||||
EXTSYM SetMouseX,SetMouseY
|
|
||||||
EXTSYM T36HZEnabled
|
|
||||||
EXTSYM MouseButton
|
|
||||||
EXTSYM GUIinit36_4hz,GUIoldhand9s,GUIoldhand9o,GUIoldhand8s,GUIoldhand8o
|
|
||||||
EXTSYM GUIinit18_2hz
|
|
||||||
EXTSYM Start36HZ
|
|
||||||
EXTSYM Stop36HZ
|
|
||||||
EXTSYM BufferSizeW,BufferSizeB,ProcessSoundBuffer
|
|
||||||
EXTSYM CheckTimers
|
|
||||||
EXTSYM vesa2_rfull,vesa2_rtrcl,vesa2_rtrcla
|
|
||||||
EXTSYM vesa2_gfull,vesa2_gtrcl,vesa2_gtrcla
|
|
||||||
EXTSYM vesa2_bfull,vesa2_btrcl,vesa2_btrcla
|
|
||||||
EXTSYM Init_2xSaIMMXW
|
|
||||||
EXTSYM TCPIPPortNum
|
|
||||||
EXTSYM InitTCP
|
|
||||||
EXTSYM StartServerCycle
|
|
||||||
EXTSYM ServerCheckNewClient
|
|
||||||
EXTSYM acceptzuser
|
|
||||||
EXTSYM TCPIPAddress
|
|
||||||
EXTSYM ConnectServer
|
|
||||||
EXTSYM WaitForServer
|
|
||||||
EXTSYM SendDataNop
|
|
||||||
EXTSYM SendDataUDPNop
|
|
||||||
EXTSYM GetDataNop
|
|
||||||
EXTSYM DeInitTCP
|
|
||||||
EXTSYM StopServer
|
|
||||||
EXTSYM Disconnect
|
|
||||||
EXTSYM UDPDisableMode,UDPEnableMode,UDPClearVars,UDPWait1Sec
|
|
||||||
EXTSYM WinErrorA2,WinErrorB2,WinErrorC2
|
|
||||||
EXTSYM ZsnesPage
|
|
||||||
EXTSYM V8Mode,GrayscaleMode
|
|
||||||
EXTSYM PrevWinMode,PrevFSMode
|
|
||||||
EXTSYM _imp__GetLocalTime@4
|
EXTSYM _imp__GetLocalTime@4
|
||||||
|
|
||||||
EXTSYM FrameSemaphore
|
|
||||||
|
|
||||||
; NOTE: For timing, Game60hzcall should be called at 50hz or 60hz (depending
|
; NOTE: For timing, Game60hzcall should be called at 50hz or 60hz (depending
|
||||||
; on romispal) after a call to InitPreGame and before DeInitPostGame are
|
; on romispal) after a call to InitPreGame and before DeInitPostGame are
|
||||||
; made. GUI36hzcall should be called at 36hz after a call GUIInit and
|
; made. GUI36hzcall should be called at 36hz after a call GUIInit and
|
||||||
@@ -598,7 +512,6 @@ NEWSYM Check_Key
|
|||||||
ret
|
ret
|
||||||
; returns 0 if there are no keys in the keyboard buffer, 0xFF otherwise
|
; returns 0 if there are no keys in the keyboard buffer, 0xFF otherwise
|
||||||
pushad
|
pushad
|
||||||
; call kbhit
|
|
||||||
call RefreshKeybBuffer
|
call RefreshKeybBuffer
|
||||||
mov byte[wfkey],0
|
mov byte[wfkey],0
|
||||||
mov al,[Keybhead]
|
mov al,[Keybhead]
|
||||||
@@ -981,96 +894,19 @@ NEWSYM DeInitPostGame ; Called after game is ended
|
|||||||
; ** Palette Functions **
|
; ** Palette Functions **
|
||||||
NEWSYM makepal ; 8-bit palette set
|
NEWSYM makepal ; 8-bit palette set
|
||||||
ret
|
ret
|
||||||
; jmp dosmakepal
|
|
||||||
NEWSYM changepal ; 8-bit palette set (changes only)
|
NEWSYM changepal ; 8-bit palette set (changes only)
|
||||||
ret
|
ret
|
||||||
; jmp doschangepal
|
|
||||||
NEWSYM displayfpspal
|
NEWSYM displayfpspal
|
||||||
ret
|
ret
|
||||||
|
|
||||||
; mov al,128
|
|
||||||
; mov dx,03C8h
|
|
||||||
; out dx,al
|
|
||||||
; inc dx
|
|
||||||
; mov al,63
|
|
||||||
; out dx,al
|
|
||||||
; out dx,al
|
|
||||||
; out dx,al
|
|
||||||
; mov al,128+64
|
|
||||||
; mov dx,03C8h
|
|
||||||
; out dx,al
|
|
||||||
; inc dx
|
|
||||||
; mov al,0
|
|
||||||
; out dx,al
|
|
||||||
; out dx,al
|
|
||||||
; out dx,al
|
|
||||||
; ret
|
|
||||||
|
|
||||||
NEWSYM superscopepal
|
NEWSYM superscopepal
|
||||||
ret
|
ret
|
||||||
|
|
||||||
; mov al,128+16
|
|
||||||
; mov dx,03C8h
|
|
||||||
; out dx,al
|
|
||||||
; inc dx
|
|
||||||
; mov al,63
|
|
||||||
; out dx,al
|
|
||||||
; xor al,al
|
|
||||||
; out dx,al
|
|
||||||
; out dx,al
|
|
||||||
; ret
|
|
||||||
|
|
||||||
NEWSYM saveselectpal
|
NEWSYM saveselectpal
|
||||||
ret
|
ret
|
||||||
|
|
||||||
; set palette of colors 128,144, and 160 to white, blue, and red
|
|
||||||
; mov al,128
|
|
||||||
; mov dx,03C8h
|
|
||||||
; out dx,al
|
|
||||||
; inc dx
|
|
||||||
; mov al,63
|
|
||||||
; out dx,al
|
|
||||||
; out dx,al
|
|
||||||
; out dx,al
|
|
||||||
; mov al,144
|
|
||||||
; mov dx,03C8h
|
|
||||||
; out dx,al
|
|
||||||
; inc dx
|
|
||||||
; xor al,al
|
|
||||||
; out dx,al
|
|
||||||
; out dx,al
|
|
||||||
; mov al,50
|
|
||||||
; out dx,al
|
|
||||||
; mov al,160
|
|
||||||
; mov dx,03C8h
|
|
||||||
; out dx,al
|
|
||||||
; inc dx
|
|
||||||
; mov al,45
|
|
||||||
; out dx,al
|
|
||||||
; xor al,al
|
|
||||||
; out dx,al
|
|
||||||
; out dx,al
|
|
||||||
; mov al,176
|
|
||||||
; mov dx,03C8h
|
|
||||||
; out dx,al
|
|
||||||
; inc dx
|
|
||||||
; mov al,47
|
|
||||||
; out dx,al
|
|
||||||
; xor al,al
|
|
||||||
; out dx,al
|
|
||||||
; out dx,al
|
|
||||||
; mov al,208
|
|
||||||
; mov dx,03C8h
|
|
||||||
; out dx,al
|
|
||||||
; inc dx
|
|
||||||
; mov al,50
|
|
||||||
; out dx,al
|
|
||||||
; mov al,25
|
|
||||||
; out dx,al
|
|
||||||
; xor al,al
|
|
||||||
; out dx,al
|
|
||||||
; ret
|
|
||||||
|
|
||||||
; ** init video mode functions **
|
; ** init video mode functions **
|
||||||
SECTION .data
|
SECTION .data
|
||||||
NEWSYM firstvideo, dd 1
|
NEWSYM firstvideo, dd 1
|
||||||
@@ -1123,21 +959,12 @@ NEWSYM initvideo ; Returns 1 in videotroub if trouble occurs
|
|||||||
pushad
|
pushad
|
||||||
call InitializeGfxStuff
|
call InitializeGfxStuff
|
||||||
popad
|
popad
|
||||||
|
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|
||||||
; pushad
|
|
||||||
; call genfulladdtabng
|
|
||||||
; popad
|
|
||||||
; jmp dosinitvideo
|
|
||||||
NEWSYM initvideo2 ; ModeQ scanline re-init (Keep blank on non-dos ports)
|
NEWSYM initvideo2 ; ModeQ scanline re-init (Keep blank on non-dos ports)
|
||||||
ret
|
ret
|
||||||
; jmp dosinitvideo2
|
|
||||||
NEWSYM deinitvideo
|
NEWSYM deinitvideo
|
||||||
; mov al,[previdmode]
|
|
||||||
; mov ah,0
|
|
||||||
; int 10h
|
|
||||||
ret
|
ret
|
||||||
|
|
||||||
; ** copy video mode functions **
|
; ** copy video mode functions **
|
||||||
@@ -2131,4 +1958,3 @@ NEWSYM fastblur
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|||||||
@@ -567,30 +567,21 @@ void statesaver()
|
|||||||
|
|
||||||
if ((fhandle = fopen(fnamest+1,"wb")))
|
if ((fhandle = fopen(fnamest+1,"wb")))
|
||||||
{
|
{
|
||||||
zst_save(fhandle, (cbitmode && !NoPictureSave) ? true : false);
|
zst_save(fhandle, (bool)(cbitmode && !NoPictureSave));
|
||||||
|
|
||||||
fclose(fhandle);
|
fclose(fhandle);
|
||||||
|
|
||||||
//Display message on the screen, 'STATE X SAVED.'
|
//Display message onscreen, 'STATE X SAVED.'
|
||||||
if (fnamest[statefileloc] == 't')
|
txtsavemsg[6] = (fnamest[statefileloc] == 't') ? '0' : fnamest[statefileloc];
|
||||||
{
|
|
||||||
txtsavemsg[6]='0';
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
txtsavemsg[6]=fnamest[statefileloc];
|
|
||||||
}
|
|
||||||
|
|
||||||
Msgptr = txtsavemsg;
|
Msgptr = txtsavemsg;
|
||||||
MessageOn = MsgCount;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//Display message on the screen, 'UNABLE TO SAVE.'
|
//Display message onscreen, 'UNABLE TO SAVE.'
|
||||||
Msgptr = txtsavemsgfail;
|
Msgptr = txtsavemsgfail;
|
||||||
MessageOn = MsgCount;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MessageOn = MsgCount;
|
||||||
|
|
||||||
stim();
|
stim();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -611,10 +602,12 @@ bool zst_load(FILE *fp)
|
|||||||
zst_version = 0;
|
zst_version = 0;
|
||||||
|
|
||||||
Totalbyteloaded += fread(zst_header_check, 1, sizeof(zst_header_check), fp);
|
Totalbyteloaded += fread(zst_header_check, 1, sizeof(zst_header_check), fp);
|
||||||
|
|
||||||
if (!memcmp(zst_header_check, zst_header_cur, sizeof(zst_header_check)-2))
|
if (!memcmp(zst_header_check, zst_header_cur, sizeof(zst_header_check)-2))
|
||||||
{
|
{
|
||||||
zst_version = 143; //v1.43+
|
zst_version = 143; //v1.43+
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!memcmp(zst_header_check, zst_header_old, sizeof(zst_header_check)-2))
|
if (!memcmp(zst_header_check, zst_header_old, sizeof(zst_header_check)-2))
|
||||||
{
|
{
|
||||||
zst_version = 60; //v0.60 - v1.42
|
zst_version = 60; //v0.60 - v1.42
|
||||||
@@ -662,7 +655,6 @@ bool zst_load(FILE *fp)
|
|||||||
}
|
}
|
||||||
|
|
||||||
repackfunct();
|
repackfunct();
|
||||||
|
|
||||||
initpitch();
|
initpitch();
|
||||||
ResetOffset();
|
ResetOffset();
|
||||||
ResetState();
|
ResetState();
|
||||||
@@ -698,27 +690,15 @@ void stateloader (unsigned char *statename, unsigned char keycheck, unsigned cha
|
|||||||
|
|
||||||
if (keycheck)
|
if (keycheck)
|
||||||
{
|
{
|
||||||
unsigned char statevalue;
|
|
||||||
|
|
||||||
pressed[1] = 0;
|
pressed[1] = 0;
|
||||||
pressed[KeyLoadState] = 2;
|
pressed[KeyLoadState] = 2;
|
||||||
multchange = 1;
|
multchange = 1;
|
||||||
|
MessageOn = MsgCount;
|
||||||
//Get the state number
|
|
||||||
if (fnamest[statefileloc] == 't')
|
|
||||||
{
|
|
||||||
statevalue = '0';
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
statevalue = fnamest[statefileloc];
|
|
||||||
}
|
|
||||||
|
|
||||||
txtloadmsg[6] = statevalue;
|
|
||||||
txtconvmsg[6] = statevalue;
|
|
||||||
txtnfndmsg[21] = statevalue;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Get the state number
|
||||||
|
txtloadmsg[6] = txtconvmsg[6] = txtnfndmsg[21] = (fnamest[statefileloc] == 't') ? '0' : fnamest[statefileloc];
|
||||||
|
|
||||||
switch (MovieProcessing)
|
switch (MovieProcessing)
|
||||||
{
|
{
|
||||||
bool mzt_load(char *, bool);
|
bool mzt_load(char *, bool);
|
||||||
@@ -730,7 +710,6 @@ void stateloader (unsigned char *statename, unsigned char keycheck, unsigned cha
|
|||||||
MessageOn = MsgCount;
|
MessageOn = MsgCount;
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
if (mzt_load(statename, false))
|
if (mzt_load(statename, false))
|
||||||
{
|
{
|
||||||
@@ -743,19 +722,12 @@ void stateloader (unsigned char *statename, unsigned char keycheck, unsigned cha
|
|||||||
clim();
|
clim();
|
||||||
|
|
||||||
//Actual state loading code
|
//Actual state loading code
|
||||||
if ((fhandle = fopen(statename,"rb")) != NULL)
|
if ((fhandle = fopen(statename,"rb")))
|
||||||
{
|
{
|
||||||
if (xfercheck) { Totalbyteloaded = 0; }
|
if (xfercheck) { Totalbyteloaded = 0; }
|
||||||
|
|
||||||
if (zst_load(fhandle))
|
|
||||||
{
|
|
||||||
Msgptr = txtloadmsg; // 'STATE X LOADED.'
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
Msgptr = txtconvmsg; // 'STATE X TOO OLD.'
|
|
||||||
}
|
|
||||||
|
|
||||||
|
Msgptr = (zst_load(fhandle)) ? txtloadmsg : txtconvmsg;
|
||||||
|
// 'STATE X LOADED.' or 'STATE X TOO OLD.'
|
||||||
fclose(fhandle);
|
fclose(fhandle);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -764,11 +736,6 @@ void stateloader (unsigned char *statename, unsigned char keycheck, unsigned cha
|
|||||||
}
|
}
|
||||||
|
|
||||||
stim();
|
stim();
|
||||||
|
|
||||||
if (keycheck)
|
|
||||||
{
|
|
||||||
MessageOn = MsgCount;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void debugloadstate()
|
void debugloadstate()
|
||||||
|
|||||||
Reference in New Issue
Block a user