Assembler

.






:
. ,
,
. , ,
.
 
. ,

. ,

 
ADD MEMORY_BYTE,5

ADD MEMORY_BYTE,7
 
 

.
. .
. 6.2 ADDBYTE.

CONSTANT. ,
MACRO,
. CONSTANT
:
. , ,

.
, -
.
, .

.
, .

Microsoft (R) Macro Assembler Version 5.00 1/1/80 04:02:43
. 6.2 Page 1-1
 
 
PAGE ,132
TITLE . 6.2
 
ADDBYTE MACRO CONSTANT
ADD MEMORY_BYTE, CONSTANT
ENDM
 
0000 CODE SEGMENT
ASSUME CS:CODE
 
0000 ?? MEMORY_BYTE DB ?
 
= 0004 FOUR EQU 4 ;
 
ADDBYTE 2
0001 2E: 80 06 0000 R 02 1 ADD MEMORY_BYTE, 2
ADDBYTE 4
0007 2E: 80 06 0000 R 04 1 ADD MEMORY_BYTE, 4
ADDBYTE FOUR
000D 2E: 80 06 0000 R 04 1 ADD MEMORY_BYTE, FOUR
 
0013 CODE ENDS
END
 
. 6.2
 

.
"FOUR" ,
"4".
 


. , 8087,
,
. FLDCW -
8087, .

,
8087.
 
.6.3 FLDCW
. , FLDCW
"SOURCE". SOURCE
, 8087 .
FLDCW
8088 ESC. ,
mod=r/m , ESC .

Microsoft (R) Macro Assembler Version 5.00 1/1/80 04:02:47
. 6.3 FLDCW Page 1-1
 
 
PAGE ,132
TITLE . 6.3 FLDCW
 
FLDCW MACRO SOURCE
DB 09BH
ESC 0DH, SOURCE
ENDM
 
0000 CODE SEGMENT
ASSUME CS:CODE
 
0000 ???? MEMORY_LOCATION DW ?
 
FLDCW MEMORY_LOCATION
0002 9B 1 DB 09BH
0003 2E: D9 2E 0000 R 1 ESC 0DH, MEMORY_LOCATION
FLDCW ES:[DI]
0008 9B 1 DB 09BH
0009 26: D9 2D 1 ESC 0DH, ES:[DI]
FLDCW MEMORY_LOCATION[BX+SI]
000C 9B 1 DB 09BH
000D 2E: D9 A8 0000 R 1 ESC 0DH, MEMORY_LOCATION[BX+SI]
 
0012 CODE ENDS
END
 
. 6.3. FLDCW
 
SOURCE.
FLDCW
.
 
INC MEMORY_LOCATION
 
8087
 
FLDCW MEMORY_LOCATION
 
,
, . . 6.3

. -
,
, .
 
.
, ,
. , MACRO
.
.
MACRO
:
 
EXAMPLE MACRO ARG1, ARG2, ARG3
 
,
. - ,
.
, .
,
.

8088,
.
:
 
EXAMPLE 5, [BX], MEMORY_BYTE
 
-
.