rep (repeat) Use the rep (repeat while equal), repnz (repeat while nonzero) or repz
(repeat while zero) prefixes in conjunction with string operations.
Each prefix causes the associated string instruction to repeat until the
count register (CX) or the zero flag (ZF) matches a tested condition. STOS (Store String)In non-64-bit and default 64-bit mode; stores a byte, word, or doubleword from the AL, AX, or EAX register (respectively) into the destination operand. The destination operand is a memory location, the address of which is read from either the ES:EDI or ES:DI register (depending on the address-size attribute of the instruction and the mode of operation). The ES segment cannot be overridden with a segment override prefix. |
|
来自: c余弦 > 《x86_64 kernel asm》