Removed some old code and some useless click areas. Fixed some warnings.
This commit is contained in:
@@ -236,14 +236,14 @@ void C4CalcWireFrame()
|
|||||||
C4WFYVal=C4WFY2Val-C4WFYVal;
|
C4WFYVal=C4WFY2Val-C4WFYVal;
|
||||||
if (abs(C4WFXVal)>abs(C4WFYVal)){
|
if (abs(C4WFXVal)>abs(C4WFYVal)){
|
||||||
C4WFDist=abs(C4WFXVal)+1;
|
C4WFDist=abs(C4WFXVal)+1;
|
||||||
C4WFYVal=(256*(long)C4WFYVal)/abs(C4WFXVal);
|
C4WFYVal=(short)((256*(long)C4WFYVal)/abs(C4WFXVal));
|
||||||
if (C4WFXVal<0) C4WFXVal=-256;
|
if (C4WFXVal<0) C4WFXVal=-256;
|
||||||
else C4WFXVal=256;
|
else C4WFXVal=256;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if (C4WFYVal!=0) {
|
if (C4WFYVal!=0) {
|
||||||
C4WFDist=abs(C4WFYVal)+1;
|
C4WFDist=abs(C4WFYVal)+1;
|
||||||
C4WFXVal=(256*(long)C4WFXVal)/abs(C4WFYVal);
|
C4WFXVal=(short)((256*(long)C4WFXVal)/abs(C4WFYVal));
|
||||||
if (C4WFYVal<0) C4WFYVal=-256;
|
if (C4WFYVal<0) C4WFYVal=-256;
|
||||||
else C4WFYVal=256;
|
else C4WFYVal=256;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ void ST010DoCommand(void);
|
|||||||
|
|
||||||
typedef signed char int8;
|
typedef signed char int8;
|
||||||
typedef unsigned char uint8;
|
typedef unsigned char uint8;
|
||||||
typedef signed short int16;
|
typedef short int16;
|
||||||
typedef unsigned short uint16;
|
typedef unsigned short uint16;
|
||||||
typedef int int32;
|
typedef int int32;
|
||||||
typedef unsigned int uint32;
|
typedef unsigned int uint32;
|
||||||
|
|||||||
@@ -26,19 +26,17 @@ 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,C4Ram,C4Enable
|
EXTSYM SFXEnable,regptra,sfxramdata,snesmmap,wramdataa,C4Ram,C4Enable
|
||||||
EXTSYM C4RamR,C4RamW,snesmap2,SPC7110Enable
|
EXTSYM C4RamR,C4RamW,snesmap2,SPC7110Enable
|
||||||
EXTSYM DSP1Read16b
|
EXTSYM DSP1Write8b,regptwa,writeon,DSP1Read16b
|
||||||
EXTSYM DSP1Write8b,regptwa,writeon
|
|
||||||
EXTSYM Bank0datr8,Bank0datw8,Bank0datr16,Bank0datw16,xd,SA1xd
|
EXTSYM Bank0datr8,Bank0datw8,Bank0datr16,Bank0datw16,xd,SA1xd
|
||||||
EXTSYM DSP1Read8b,DSP1Type,SA1Enable
|
EXTSYM DSP1Read8b,DSP1Type,SA1Enable,DSP1Write16b
|
||||||
EXTSYM DSP1Write16b
|
|
||||||
EXTSYM CurDecompPtr,PrevDecompPtr,CurDecompSize
|
EXTSYM CurDecompPtr,PrevDecompPtr,CurDecompSize
|
||||||
EXTSYM SPCDecmPtr,SPCCompPtr,SPCCompCounter
|
EXTSYM SPCDecmPtr,SPCCompPtr,SPCCompCounter
|
||||||
EXTSYM ramsize,ramsizeand,sram
|
EXTSYM ramsize,ramsizeand,sram,ram7fa
|
||||||
EXTSYM ram7fa
|
|
||||||
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 SDD1_init,SDD1_get_byte,BWShift,SA1BWPtr
|
||||||
|
|
||||||
|
|
||||||
; C4SprScale
|
; C4SprScale
|
||||||
|
|
||||||
@@ -2855,8 +2853,6 @@ 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,SA1BWPtr
|
|
||||||
|
|
||||||
%macro BWCheck 0
|
%macro BWCheck 0
|
||||||
cmp byte[BWShift],0
|
cmp byte[BWShift],0
|
||||||
jne near .shift
|
jne near .shift
|
||||||
@@ -4219,36 +4215,6 @@ NEWSYM eramaccessbankw16
|
|||||||
mov [ram7fa+ecx],ax
|
mov [ram7fa+ecx],ax
|
||||||
ret
|
ret
|
||||||
|
|
||||||
;*******************************************************
|
|
||||||
; Invalid Access Bank (710000h-7DFFFFh)
|
|
||||||
;*******************************************************
|
|
||||||
NEWSYM invaccessbank
|
|
||||||
xor eax,eax
|
|
||||||
mov byte[invalid],1
|
|
||||||
mov [invopcd],bl
|
|
||||||
mov al,[previdmode]
|
|
||||||
mov ah,0
|
|
||||||
int 10h
|
|
||||||
mov ah,9
|
|
||||||
mov edx,.invalidbank
|
|
||||||
int 21h
|
|
||||||
xor eax,eax
|
|
||||||
mov al,[invopcd]
|
|
||||||
call printhex8
|
|
||||||
mov ah,2
|
|
||||||
mov dl,13
|
|
||||||
int 21h
|
|
||||||
mov ah,2
|
|
||||||
mov dl,10
|
|
||||||
int 21h
|
|
||||||
jmp DosExit
|
|
||||||
|
|
||||||
SECTION .data
|
|
||||||
.invalidbank db 'Invalid Bank Access : $'
|
|
||||||
SECTION .text
|
|
||||||
ret
|
|
||||||
|
|
||||||
|
|
||||||
;*******************************************************
|
;*******************************************************
|
||||||
; SA-1 Bank Accesses
|
; SA-1 Bank Accesses
|
||||||
;*******************************************************
|
;*******************************************************
|
||||||
@@ -4687,9 +4653,6 @@ SECTION .data
|
|||||||
NEWSYM LatestBank, dd 0FFFFh
|
NEWSYM LatestBank, dd 0FFFFh
|
||||||
SECTION .text
|
SECTION .text
|
||||||
|
|
||||||
EXTSYM SDD1_init
|
|
||||||
EXTSYM SDD1_get_byte
|
|
||||||
|
|
||||||
; Software decompression version
|
; Software decompression version
|
||||||
NEWSYM memaccessbankr8sdd1
|
NEWSYM memaccessbankr8sdd1
|
||||||
cmp byte[AddrNoIncr],0
|
cmp byte[AddrNoIncr],0
|
||||||
|
|||||||
@@ -42,5 +42,4 @@ extern bool SRAMState;
|
|||||||
|
|
||||||
extern short C4WFXVal, C41FXVal, Op00Multiplicand, Op04Angle, Op08X, Op18X;
|
extern short C4WFXVal, C41FXVal, Op00Multiplicand, Op04Angle, Op08X, Op18X;
|
||||||
extern short Op28X, Op0CA, Op02FX, Op0AVS, Op06X, Op01m, Op0DX, Op03F, Op14Zr;
|
extern short Op28X, Op0CA, Op02FX, Op0AVS, Op06X, Op01m, Op0DX, Op03F, Op14Zr;
|
||||||
extern short Op0EH;
|
extern short Op0EH, Op10Coefficient;
|
||||||
extern signed short Op10Coefficient;
|
|
||||||
|
|||||||
@@ -1985,9 +1985,11 @@ DisplayGUIConfirmClick:
|
|||||||
GUIWinControl 5,27,144,26+15*7,GUIcurrentfilewin,GUIcurrentviewloc,GUIfileentries,27,7,GUIcurrentcursloc,0,1,30
|
GUIWinControl 5,27,144,26+15*7,GUIcurrentfilewin,GUIcurrentviewloc,GUIfileentries,27,7,GUIcurrentcursloc,0,1,30
|
||||||
GUIWinControl 160,27,228,26+15*7,GUIcurrentfilewin,GUIcurrentdirviewloc,GUIdirentries,27,7,GUIcurrentdircursloc,1,1,30
|
GUIWinControl 160,27,228,26+15*7,GUIcurrentfilewin,GUIcurrentdirviewloc,GUIdirentries,27,7,GUIcurrentdircursloc,1,1,30
|
||||||
GUIPHoldbutton 186,165,228,176,1
|
GUIPHoldbutton 186,165,228,176,1
|
||||||
|
%ifdef __MSDOS__
|
||||||
GUIPButtonHoleLoad 9,163,byte[GUIloadfntype],0
|
GUIPButtonHoleLoad 9,163,byte[GUIloadfntype],0
|
||||||
GUIPButtonHoleLoad 9,171,byte[GUIloadfntype],1
|
GUIPButtonHoleLoad 9,171,byte[GUIloadfntype],1
|
||||||
GUIPButtonHoleLoad 9,179,byte[GUIloadfntype],2
|
GUIPButtonHoleLoad 9,179,byte[GUIloadfntype],2
|
||||||
|
%endif
|
||||||
GUIClickCButton5 144,177,byte[ForceROMTiming],1
|
GUIClickCButton5 144,177,byte[ForceROMTiming],1
|
||||||
GUIClickCButton5 144,187,byte[ForceROMTiming],2
|
GUIClickCButton5 144,187,byte[ForceROMTiming],2
|
||||||
GUIClickCButton5 184,177,byte[ForceHiLoROM],1
|
GUIClickCButton5 184,177,byte[ForceHiLoROM],1
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ EXTSYM GetCurDir,SRAMChdir,cfgloadsdir,fnamest,statefileloc,InitDir,InitDrive
|
|||||||
EXTSYM curromspace,infoloc,patchfile,romispal,initregr,initregw,memtabler16
|
EXTSYM curromspace,infoloc,patchfile,romispal,initregr,initregw,memtabler16
|
||||||
EXTSYM memtabler8,memtablew16,memtablew8,sfxramdata,wramreadptr
|
EXTSYM memtabler8,memtablew16,memtablew8,sfxramdata,wramreadptr
|
||||||
EXTSYM wramwriteptr,loadstate2,CMovieExt,MoviePlay,MovieDumpRaw,AllowUDLR
|
EXTSYM wramwriteptr,loadstate2,CMovieExt,MoviePlay,MovieDumpRaw,AllowUDLR
|
||||||
EXTSYM device1,device2,processmouse1,processmouse2
|
EXTSYM device1,device2,processmouse1,processmouse2,cpalval
|
||||||
|
|
||||||
;initc.c
|
;initc.c
|
||||||
EXTSYM clearmem,clearSPCRAM,PatchUsingIPS,ZOpenFileName,loadROM,SPC7110IndexSize
|
EXTSYM clearmem,clearSPCRAM,PatchUsingIPS,ZOpenFileName,loadROM,SPC7110IndexSize
|
||||||
@@ -89,7 +89,6 @@ NEWSYM EndMessage
|
|||||||
|
|
||||||
SECTION .text
|
SECTION .text
|
||||||
|
|
||||||
EXTSYM cpalval
|
|
||||||
NEWSYM init
|
NEWSYM init
|
||||||
; prevents a crash if cpalval gets accessed before initializing
|
; prevents a crash if cpalval gets accessed before initializing
|
||||||
mov eax,cpalval
|
mov eax,cpalval
|
||||||
|
|||||||
@@ -65,23 +65,6 @@ NEWSYM YesMMX, db 'MMX support found and enabled.',13,10,13,10,0
|
|||||||
|
|
||||||
SECTION .text
|
SECTION .text
|
||||||
|
|
||||||
;*******************************************************
|
|
||||||
; Allocate Memory, ebx = size,eax returned = LFB pointer
|
|
||||||
;*******************************************************
|
|
||||||
|
|
||||||
NEWSYM AllocMem
|
|
||||||
%ifndef __UNIXSDL__
|
|
||||||
mov ax,0501h
|
|
||||||
mov cx,bx
|
|
||||||
shr ebx,16
|
|
||||||
int 31h
|
|
||||||
jc near outofmemory
|
|
||||||
mov ax,bx
|
|
||||||
shl eax,16
|
|
||||||
mov ax,cx
|
|
||||||
%endif
|
|
||||||
ret
|
|
||||||
|
|
||||||
;*******************************************************
|
;*******************************************************
|
||||||
; Get Command Line Locates SET CMDLINE environment
|
; Get Command Line Locates SET CMDLINE environment
|
||||||
;*******************************************************
|
;*******************************************************
|
||||||
|
|||||||
Reference in New Issue
Block a user