03.03.2013 Views

4 Instruction tables - Agner Fog

4 Instruction tables - Agner Fog

4 Instruction tables - Agner Fog

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Atom<br />

SHRD r64,r64,cl 9 ALU0 9 1-2 more if mem<br />

BT r,r/i 1 ALU1 1 1<br />

BT m,r 9 10<br />

BT m,i 2 5<br />

BTR BTS BTC r,r/i 1 ALU1 1 1<br />

BTR BTS BTC m,r 10 ALU1 11<br />

BTR BTS BTC m,i 3 ALU1 6<br />

BSF BSR r,r/m 10 16<br />

SETcc r 1 ALU0+1 2 2<br />

SETcc m 2 5<br />

CLC STC 1 ALU0/1 1/2<br />

CMC 1 2 2<br />

CLD 5 7<br />

STD 6 25<br />

Control transfer instructions<br />

JMP short/near 1 ALU1 2<br />

JMP far 29 66 Not in x64 mode<br />

JMP r 1 4<br />

JMP m(near) 2 7<br />

JMP m(far) 30 78<br />

Conditional jump short/near 1 ALU1 2<br />

J(E/R)CXZ short 3 7<br />

LOOP short 8 8<br />

LOOP(N)E short 8 8<br />

CALL near 1 3<br />

CALL far 37 65 Not in x64 mode<br />

CALL r 1 18<br />

CALL m(near) 2 20<br />

CALL m(far) 38 64<br />

RETN 1 np 6<br />

RETN i 1 np 6<br />

RETF 36 80<br />

RETF i 36 80<br />

BOUND r,m 11 10 Not in x64 mode<br />

INTO 4 6 Not in x64 mode<br />

String instructions<br />

LODS 3 6<br />

REP LODS 5n+11 3n+50<br />

STOS 2 5<br />

REP STOS 3n+10 2n+4<br />

MOVS 4 6<br />

REP MOVS 4n+11 2n - 4n fastest for high n<br />

SCAS 3 6<br />

REP SCAS 5n+16 3n+60<br />

CMPS 5 7<br />

REP CMPS 6n+16 4n+40<br />

Other<br />

Page 158

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

Saved successfully!

Ooh no, something went wrong!