ST486DX ST Microelectronics, ST486DX Datasheet - Page 32

no-image

ST486DX

Manufacturer Part Number
ST486DX
Description
PROGRAMMING MANUAL
Manufacturer
ST Microelectronics
Datasheet
ST486DX - ASSEMBLER MACROS FOR SGS-THOMSON INSTRUCTIONS
46
;pull off the proper prefix byte count
;patch the opcode
ENDM
;Offset Definition for access into SMM space
SMI_SAVE STRUC
SMI_SAVE ENDS
SMI_ESIEDI
SMI_IOWDATA
SMI_IOWADDR
SMI_IOWSIZE
SMI_BITS
SMI_CSSELL
SMI_CSSELH
SMI_CS
SMI_RES1
SMI_NEXTIP
SMI_CURRENTIP
$ESIEDI
$IOWDATA
$IOWADDR
$IOWSIZE
$BITS
$CSSELL
$CSSELH
$CS
$RES1
$NEXTIP
$CURRENTIP
$CR0
$EFLAGS
$DR7
endif
if
endif
place1
mov
org
mov
place2
org
db
org
count=count+1
(count eq 0)
nop
= $
word ptr segover addr,reg
place1+count
word ptr segover addr,reg
= $
place1+(count*2)-1
0Fh,op
place2
EQU
EQU
EQU
EQU
EQU
EQU
EQU
EQU
EQU
EQU
EQU
($ESIEDI + SMMSIZE - SIZE SMI_SAVE)
($IOWDATA+ SMMSIZE - SIZE SMI_SAVE)
($IOWADDR+ SMMSIZE - SIZE SMI_SAVE)
($IOWSIZE+ SMMSIZE - SIZE SMI_SAVE)
($BITS
($CSSELL + SMMSIZE - SIZE SMI_SAVE)
($CSSELH + SMMSIZE - SIZE SMI_SAVE)
($CS
($RES1
($NEXTIP + SMMSIZE - SIZE SMI_SAVE)
($CURRENTIP+ SMMSIZE -SIZE SMI_SAVE)
DD
DD
DW
DW
DD
DD
DD
DW
DW
DD
DD
DD
DD
DD
;expanding the opcode one byte
?
?
?
?
?
?
?
?
?
?
?
?
?
?
+ SMMSIZE - SIZE SMI_SAVE)
+ SMMSIZE - SIZE SMI_SAVE)
+ SMMSIZE - SIZE SMI_SAVE)

Related parts for ST486DX