Intel 210200-002 Baby Furniture User Manual


 
STOS
STORE
(BYTE/OR/
WORD) STRING
STOS
Operation:
Flags Affected:
(OEST)
+-
(SRC)
if
(DF)
= 0 then
(DI)
~
(DI)
+
DELTA
else
(01)
+-
(01) -
OEL
TA
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
None
if w = 0
then
SRC = AL,
OEST
= (01), OELTA = 1
else
SRC = AX,
OEST
= (01) + 1 :(01),
OEL
TA = 2
5T05
Operands Clocks· Transfers Bytes
dest-string
11
(15)
1
j
1
(repeat) dest-string 9+10(14)/rep
1/rep
1
5T05
Coding Example
STOS
PRINT_LINE
REP
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