MOVS MOVE STRING MOVS

Operation:

Flags Affected:

(DEST) +- (SRC)

None

Description:

MOVS destination-string, source-string

MOYS (Move String) transfers a byte or a word from the source string (addressed by SI) to the destination string (addressed by DI) and updates SI and DI to point to the next string element. When used in conjunction with REP, MOYS performs a memory-to-memory block transfer.

Encoding:

11010010wl

if w = 0 then SRC = (SI), DEST = AL, DELTA = 1 else SRC = (SI) + 1:(SI), DEST = AX, DELTA = 2

MOVS Operands

Clocks·

Transfers

Bytes

MOVS Coding Example

dest-string, source-string

18(26)

2

1

MOVS LlNE~EDILDATA

(repeat) dest-string, source-string

9+17(25)1 rep

2/rep

1

REP MOVS SCREEN, BUFFER

*b(w): where b denotes the number of clock cycles for byte operands and w denotes the number of clock cycles for word operands.

2-118

Page 153
Image 153
Intel 210200-002 manual Movs Move String Movs, 11010010wl, Movs destination-string, source-string