Making sure code is in executable sections Round 2.

This commit is contained in:
n-a-c-h
2005-07-10 13:15:53 +00:00
parent 24e881da21
commit 62959c2fd6
11 changed files with 6168 additions and 6148 deletions

View File

@@ -32,6 +32,8 @@ EXTSYM UpdateDPage,DPageR8,DPageW8,DPageR16,DPageW16
; L = [ or ]
; I = #
SECTION .text
COp61m8nd: ; ADC(d,x)
addr_BdCxB_8br
ADCMacro8bnd

View File

@@ -568,6 +568,8 @@ NEWSYM HIRQCycNext, dd 0
NEWSYM HIRQNextExe, db 0
SECTION .text
;*******************************************************
; Int 08h vector
;*******************************************************
@@ -763,7 +765,7 @@ Donextlinecache:
SECTION .data
SpeedHackSafeTable
SpeedHackSafeTable:
db 1,0,1,0,0,0,1,0,1,0,1,1,0,0,0,0
db 0,0,0,0,0,0,1,0,0,0,1,0,0,0,1,0
db 0,0,0,0,0,0,1,0,1,0,1,1,0,0,1,0

View File

@@ -18,6 +18,8 @@
;along with this program; if not, write to the Free Software
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
SECTION .DATA
fir_lut:
dw 27, -363, 1153, 14775, 1153, -363, 27, -24
dw 27, -362, 1147, 14775, 1159, -365, 27, -24

View File

@@ -52,6 +52,8 @@ EXTSYM execloopdeb,nmiv8,membank0w8
%%nov
%endmacro
SECTION .text
;*******************************************************
; SwitchToNMI/VIRQ Calls NMI/VIRQ
;*******************************************************

View File

@@ -55,6 +55,8 @@ EXTSYM Sdd1Mode,Sdd1Bank,Sdd1Addr,Sdd1NewAddr,memtabler8,AddrNoIncr,SDD1BankA
; C4 Emulation, reverse engineered & written by zsKnight
; ******************************************************
SECTION .text
C4ProcessVectors:
mov esi,[C4Ram]
mov edi,esi

View File

@@ -26,6 +26,8 @@ EXTSYM debuggeron,pdh,vram,romispal,reg1read,spcnumread,spcon,reg2read,reg3read
EXTSYM reg4read,JoyEOrig,JoyENow,snesmouse,cycphb,joycontren,totlines,DosExit
EXTSYM invalid,numinst,previdmode,printhex,printnum
SECTION .text
NEWSYM initregr
; Fill register pointer with invalid register accesses
mov edi,[regptr]

View File

@@ -86,6 +86,8 @@ EXTSYM debuggeron
%%nov
%endmacro
SECTION .text
NEWSYM Ssplitflags
restoredl
ret

View File

@@ -27,6 +27,8 @@ EXTSYM wramdata,SA1xa,SA1xd,SA1xdb,xe,xirqb,SA1xpb,xpc,SA1xs,SA1xx,SA1xy
EXTSYM debstop4,SA1RegP,nextopcode,debugsa1,skipdebugsa1
SECTION .text
sa1debug:
cmp byte[debuggeron],0
je .nodebugger

View File

@@ -48,6 +48,8 @@ EXTSYM cpucycle,SA1UpdateDPage,intrset
; Generate OpCode Table
;*******************************************************
SECTION .text
NEWSYM SA1inittable
; set tablead (NVMXDIZC) ( MXD )
push es

View File

@@ -35,6 +35,8 @@ EXTSYM tableAb,tableBb,tableCb,tableDb,tableEb,tableFb,tableGb,tableHb,tableadb
; Generate OpCode Table
;*******************************************************
SECTION .text
NEWSYM inittableb
; set tablead (NVMXDIZC) ( MXD )
push es

View File

@@ -92,7 +92,7 @@ NEWSYM setnoise
ret
SECTION .data
.samplenoise
.samplenoise:
db 27,232,234,138,187,246,176,81,25,241,1,127,154,190,195,103,231,165,220,238
db 232,189,57,201,123,75,63,143,145,159,13,236,191,142,56,164,222,80,88,13
db 148,118,162,212,157,146,176,0,241,88,244,238,51,235,149,50,77,212,186,241