* remove "\r" nonsense
[mascara-docs.git] / i386 / i386.reference / STD.htm
blobb6b75d0f2872b0bcdc56e50c6b7947d0df9aa62b
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
2 <HTML>
3 <HEAD>
4 <TITLE>80386 Programmer's Reference Manual -- Opcode STD</TITLE>
5 </HEAD>
6 <BODY>
7 <B>up:</B> <A HREF="c17.htm">
8 Chapter 17 -- 80386 Instruction Set</A><BR>
9 <B>prev:</B><A HREF="STC.htm"> STC Set Carry Flag</A><BR>
10 <B>next:</B><A HREF="STI.htm"> STI Set Interrupt Flag</A>
11 <P>
12 <HR>
13 <P>
14 <H1>STD -- Set Direction Flag</H1>
16 <PRE>
17 Opcode Instruction Clocks Description
19 FD STD 2 Set direction flag so (E)SI and/or (E)DI
20 decrement
21 </PRE>
24 <H2>Operation</H2>
26 <PRE>
27 DF := 1;
28 </PRE>
30 <H2>Description</H2>
32 STD sets the direction flag to 1, causing all subsequent string operations
33 to decrement the index registers, (E)SI and/or (E)DI, on which they
34 operate.
36 <H2>Flags Affected</H2>
38 DF := 1
40 <H2>Protected Mode Exceptions</H2>
42 None
44 <H2>Real Address Mode Exceptions</H2>
46 None
48 <H2>Virtual 8086 Mode Exceptions</H2>
50 None
53 <P>
54 <HR>
55 <P>
56 <B>up:</B> <A HREF="c17.htm">
57 Chapter 17 -- 80386 Instruction Set</A><BR>
58 <B>prev:</B><A HREF="STC.htm"> STC Set Carry Flag</A><BR>
59 <B>next:</B><A HREF="STI.htm"> STI Set Interrupt Flag</A>
60 </BODY>