cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

Tapejara
Journeyman III

Size Attribute of Count Register in LOOP Instruction

According to the AMD64 manuals:

"The size of the count register used (CX, ECX, or RCX) depends on the address-size attribute of the LOOP

cc instruction."





What does this mean? In 32-bit environments is this aways ECX?

0 Likes
1 Reply
avk
Adept III

AFAIK, in 32-bit environments, you can choose between the native 32-bit form and the legacy 16-bit form of the instruction:

32 bit form: 0E3h, <byte offset>

16 bit form: 67h, 0E3h, <byte offset>

0 Likes