Okay there is a thread on String Functions and Function Speed and I thought i would create this thread as a documentation to myself for the Store Byte To String Function


STOSB ; uses AL [8086]
STOSW ; uses AX [8086]
STOSD ; uses EAX [x386]


Stores the Byte in AL/AX/EAX to or and sets flags accordingly

It then increments or decrements (depending on the flag) DI (or EDI)

Segment override prefixes have no effect for this instruction: the use of ES for the store to or cannot be overridden.

The REP prefix may be used to repeat the instruction CX (or ECX - again, the address size chooses which) times.
Posted on 2002-04-22 10:27:06 by Volcano_88101

Segment override prefixes have no effect for this instruction: the use of ES for the store to or cannot be overridden.
Yuck, segments - don't you hate these kinds of gotchas?
Posted on 2002-04-22 10:48:13 by bitRAKE