. 4.22
. LODS STOS
.
LODS, AL
, DS:SI.
SI ; , ,
. LODS
, AX
SI 2. STOS ,
AL AX .
ES:DI.
DI , 2,
.
 
LODS (
) .
,
, ,
. . 4.22,
 
LODS EXBYTE
 
,
LODSB.

Microsoft (R) Macro Assembler Version 5.00 1/1/80 04:01:26
. 4.22 ꠠ Page 1-1
 
PAGE ,132
TITLE . 4.22
0000 CODE SEGMENT
ASSUME CS:CODE,DS:CODE,ES:CODE
0000 EXBYTE LABEL BYTE
0000 EXWORD LABEL WORD
0000 EXBYTE1 LABEL BYTE
0000 EXWORD1 LABEL WORD
 
0000 AC LODS EXBYTE ; AL DS:SI
0001 AD LODS EXWORD ; AX DS:SI
0002 AC LODSB ; AL DS:SI
0003 AA STOS EXBYTE ; AL ES:DI
0004 AB STOS EXWORD ; AX ES:DI
0005 AB STOSW ; AX ES:DI
0006 F3/ AA REP STOSB ; AL ES:DI CX
 
0008 A4 MOVS EXBYTE1, EXBYTE ; [ES:DI] <- [DS:SI]
0009 A5 MOVS EXWORD1, EXWORD ; [ES:DI] <- [DS:SI]
000A A4 MOVSB ; [ES:DI] <- [DS:SI]
 
000B F3/ A5 REP MOVSW ; CX [ES:DI] <- [DS:SI]
 
000D AE SCAS EXBYTE1 ; AL [ES:DI]
000E F3/ AE REPE SCASB ; AL [ES:DI]
0010 F2/ AF REPNE SCASW ; AX [ES:DI]
 
0012 A7 CMPS EXWORD, EXWORD1 ; [DS:SI] [ES:DI]
0013 F3/ A7 REPE CMPSW ; [DS:SI] [ES:DI]
; CX
0015 F2/ A6 REPNE CMPSB ; [DS:SI] [ES:DI]
; CX
0017 CODE ENDS
END
 
.4.22
,
, EXBYTE - BYTE.
, .
.
, ,
.
, , ,
, . STOS .
, ,
LODSW STOSW. ,
,
.
, .
 
,
LODS STOS.
,
LODSB STOSB. LODS
,
, .
LODS DS,
ASSUME
. ,
STOS ES.
, ,

.




- - - - - -