03.03.2013 Views

4 Instruction tables - Agner Fog

4 Instruction tables - Agner Fog

4 Instruction tables - Agner Fog

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

VIA Nano 2000<br />

SETcc m 1<br />

CLC STC CMC I1 3 3<br />

CLD STD 3 3<br />

Control transfer instructions<br />

JMP short/near 1 I2 3 3<br />

8 if >2 jumps in 16<br />

bytes block<br />

JMP far 58 Not in x64 mode<br />

8 if >2 jumps in 16<br />

JMP r I2 3 3 bytes block<br />

JMP m(near) 3 3 do.<br />

JMP m(far) 55<br />

Conditional jump short/near 1-3-8 1-3-8 1 if not jumping.<br />

3 if jumping.<br />

8 if >2 jumps in 16<br />

bytes block<br />

J(E/R)CXZ short 1-3-8 1-3-8 do.<br />

LOOP short 1-3-8 1-3-8 do.<br />

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

8 if >2 jumps in 16<br />

CALL near 3 3 bytes block<br />

CALL far 72 72 Not in x64 mode<br />

8 if >2 jumps in 16<br />

CALL r 3 3 bytes block<br />

CALL m(near) 4 3 do.<br />

CALL m(far) 72 72<br />

8 if >2 jumps in 16<br />

RETN 3 3 bytes block<br />

RETN i 3 3 do.<br />

RETF 39 39<br />

RETF i 39 39<br />

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

INTO 7 Not in x64 mode<br />

String instructions<br />

LODSB/W/D/Q 1<br />

REP LODSB/W/D/Q 3n+22<br />

STOSB/W/D/Q 1-2<br />

REP STOSB/W/D/Q<br />

Small:<br />

2n+2, Big:<br />

6 bytes per<br />

MOVSB/W/D/Q clock 2<br />

REP MOVSB/W/D/Q<br />

Small:<br />

2n+45,<br />

Big: 6 bytes<br />

per clock<br />

SCASB/W/D/Q 1<br />

REP SCASB 2.2n<br />

REP SCASW/D/Q<br />

Small:<br />

2n+50<br />

Big: 5 bytes<br />

CMPSB/W/D/Q per clock<br />

6<br />

Page 167

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

Saved successfully!

Ooh no, something went wrong!