13.07.2015 Views

Volume 3: General-Purpose and System Instructions - Stanford ...

Volume 3: General-Purpose and System Instructions - Stanford ...

Volume 3: General-Purpose and System Instructions - Stanford ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

AMD64 Technology 24594 Rev. 3.10 February 2005register (rCX). The repetition terminates when the value in rCXreaches 0 or when the zero flag (ZF) is cleared to 0. The REPE<strong>and</strong> REPZ prefixes can only be used with the CMPS, CMPSB,CMPSD, CMPSW, SCAS, SCASB, SCASD, <strong>and</strong> SCASWinstructions. Table 1-7 shows the valid REPE <strong>and</strong> REPZ prefixopcodes.Table 1-7.REPE <strong>and</strong> REPZ Prefix OpcodesMnemonicREPx CMPS mem8, mem8REPx CMPSBREPx CMPS mem16/32/64, mem16/32/64REPx CMPSWREPx CMPSDREPx CMPSQREPx SCAS mem8REPx SCASBREPx SCAS mem16/32/64REPx SCASWREPx SCASDREPx SCASQOpcodeF3 A6F3 A7F3 AEF3 AFREPNE <strong>and</strong> REPNZ. REPNE <strong>and</strong> REPNZ are synonyms <strong>and</strong> haveidentical opcodes. These prefixes repeat their associated stringinstruction the number of times specified in the counterregister (rCX). The repetition terminates when the value in rCXreaches 0 or when the zero flag (ZF) is set to 1. The REPNE <strong>and</strong>REPNZ prefixes can only be used with the CMPS, CMPSB,CMPSD, CMPSW, SCAS, SCASB, SCASD, <strong>and</strong> SCASWinstructions. Table 1-8 on page 13 shows the valid REPNE <strong>and</strong>REPNZ prefix opcodes.12 Chapter 1: Instruction Formats

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!