Assembler






IRPC . 6.7 , ,
"&". - ,
. "&"
CHAR - "X". ,
.
 

LOCAL. LOCAL ,
.
. ,
,
:
 
AAAAA: ADD AL,[BX]
INC BX
LOOP AAAAA
 

 
Microsoft (R) Macro Assembler Version 5.00 4/2/89 16:06:59
. 6.8 LOCAL Page 1-1
 
PAGE ,132
TITLE . 6.8 LOCAL
 
PAUSE MACRO TIME
LOCAL LABEL
MOV CX,TIME
LABEL: LOOP LABEL
ENDM
 
0000 CODE SEGMENT
ASSUME CS:CODE
 
PAUSE 100
0000 B9 0064 1 MOV CX,100
0003 E2 FE 1 ??0000: LOOP ??0000
 
PAUSE 1000
0005 B9 03E8 1 MOV CX,1000
0008 E2 FE 1 ??0001: LOOP ??0001
 
000A CODE ENDS
END
 
. 6.8 LOCAL
.
, AAAAA .

.
, AAAAA
(LOCAL) . -

AAAAA. LOCAL ,
"??0000". - "??0001" ..
,
. . 6.8 LOCAL.
PAUSE -
, LOCAL.

.
LOCAL, ,
MACRO.
 

---------------------------------------------------------------
;; ,
&
!
%
---------------------------------------------------------------
. 6.9
 
,
. . 6.9
.
 
.6.10 ,
. ";;"
8087.

.
,
. "&"
. 6.7.
 
"!"
. ,
- , , "%",
. ,
"%" , -
.
.
. 6.10
VALUE.
Microsoft (R) Macro Assembler Version 5.00 1/1/80 04:03:15
. 6.10 Page 1-1
 
PAGE ,132
TITLE . 6.10
 
= 0000 VALUE EQU 0
 
EXAMPLE MACRO PARAMETER
DB 'MSG&PARAMETER' ;;
INC AX
ENDM
 
0000 CODE SEGMENT
ASSUME CS:CODE
 
EXAMPLE %VALUE
0000 4D 53 47 30 1 DB 'MSG0' ;
0004 40 1 INC AX
 
0005 CODE ENDS
END
 
. 6.10