REP STOSD in pseudo-code
(Picture 1)
•
WHILE (ECX != 0)
•
{
•
[EDI] := EAX
•
•
IF DF = 0 THEN
•
EDI := EDI + 4
•
ELSE
•
EDI := EDI – 4
•
•
ECX := ECX – 1
•
}
•
•
Note: CPU emulation
•