STOS STORE (BYTE/OR/ STOS

WORD) STRING

Operation:

Flags Affected:

(OEST) +- (SRC)

None

if (DF) = 0 then (DI) ~ (DI) + DELTA

 

else (01) +- (01) - OELTA

 

Description:

STOS destination-string

STOS (Store String) transfers a byte or word from register AL or AX to the string element addressed by DI and updates Dr to point to the next location in the string. As a repeated operation, STOS provides a convenient way to initialize a string to a constant value (e.g., to blank out a print line).

Encoding:

11010101wl

if w = 0 then SRC = AL, OEST = (01), OELTA = 1 else SRC = AX, OEST = (01) +1:(01), OELTA = 2

5T05 Operands

Clocks·

Transfers Bytes 5T05 Coding Example

dest-string

11 (15)

1

j

(repeat) dest-string

9+10(14)/rep

1/rep

 

1STOS PRINT_LINE

1REP STOS DISPLAY

*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-155

Page 190
Image 190
Intel 210200-002 manual Stos Store BYTE/OR/ Stos Word String, 11010101wl, Stos destination-string