REP



REP


.
, .
,
,
. ,
. REP
Repeat - . 8088
CX,
.
 
STOSB.
 
REP STOSB
 
.
, CX
0. STOSB AL ,
ES:DI,
DI ,
STOSB. REP CX,
, .
, CX .
 
STOS .
AL,
CX, ES:DI
. REP STOSB
AL. . 4.23.

Microsoft (R) Macro Assembler Version 5.00 1/1/80 04:01:31
. 4.23 Page 1-1
 
 
PAGE ,132
TITLE . 4.23
0000 CODE SEGMENT
ASSUME CS:CODE,DS:CODE,ES:CODE
 
;--------------------------------------
; BYTE_BLOCK
; 01H
;--------------------------------------
 
0000 8D 3E 000C R LEA DI, BYTE_BLOCK ; DI <-
0004 B9 0032 90 MOV CX, BYTE_BLOCK_LENGTH ; CX <-
0008 B0 01 MOV AL, 01H ;
000A F3/ AA REP STOS BYTE_BLOCK ;
 
000C 0032[ BYTE_BLOCK DB 50 DUP(?)
??
]
 
= 0032 BYTE_BLOCK_LENGTH EQU $-BYTE_BLOCK
 
003E CODE ENDS
END
 
. 4.23
 
LODS REP .

.
REP
.




- - - - - -