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.

Nano 3000<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 14 50 Not in x64 mode<br />

8 if >2 jumps in 16<br />

JMP r 2 I2 3 3 bytes block<br />

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

JMP m(far) 17 42<br />

1 if not jumping.<br />

3 if jumping.<br />

8 if >2 jumps in 16<br />

Conditional jump short/near 1 I2 1-3-8 1-3-8 bytes block<br />

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

LOOP short 2 1-3-8 1-3-8<br />

LOOP(N)E short 5 24 24<br />

8 if >2 jumps in 16<br />

CALL near 2 3 3 bytes block<br />

CALL far 17 58 Not in x64 mode<br />

8 if >2 jumps in 16<br />

CALL r 2 3 3 bytes block<br />

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

CALL m(far) 19 54<br />

8 if >2 jumps in 16<br />

RETN 3 3 3 bytes block<br />

RETN i 4 3 3 do.<br />

RETF 20 49<br />

RETF i 20 49<br />

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

INTO 3 7 Not in x64 mode<br />

String instructions<br />

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

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

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

Small:<br />

n+40, Big:<br />

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

6-7<br />

MOVSB/W/D/Q 3 bytes/clk 2<br />

Small:<br />

2n+20,<br />

Big: 6-7<br />

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

bytes/clk<br />

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

REP SCASB 2.4n<br />

Small:<br />

2n+31,<br />

Big: 5<br />

REP SCASW/D/Q<br />

bytes/clk<br />

CMPSB/W/D/Q 5 6<br />

REP CMPSB/W/D/Q 2.2n+30<br />

Page 177

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

Saved successfully!

Ooh no, something went wrong!