Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
2Activity
0 of .
Results for:
No results containing your search query
P. 1
Intel Code Table

Intel Code Table

Ratings: (0)|Views: 2,633|Likes:
Published by Tim Butram

More info:

Published by: Tim Butram on Nov 16, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

06/16/2009

pdf

text

original

 
Intel Assembler
80186 and higher
CodeTable 1/2
© 
1996-2003 by Roger Jegerlehner, SwitzerlandV 2.3 English. Also available in Spanish
TRANSFERFlagsName Comment Code Operation O D I T S Z A P C
MOVMove (copy)MOV Dest,SourceDest:=SourceXCHGExchangeXCHG Op1,Op2Op1:=Op2 , Op2:=Op1STCSet CarrySTCCF:=11CLCClear CarryCLCCF:=00CMCComplement CarryCMCCF:=
¬
CF±STDSet DirectionSTDDF:=1 (string op's downwards)1CLDClear DirectionCLDDF:=0 (string op's upwards)0STISet InterruptSTIIF:=11CLIClear InterruptCLIIF:=00PUSHPush onto stackPUSH SourceDEC SP, [SP]:=SourcePUSHFPush flagsPUSHFO, D, I, T, S, Z, A, P, C 286+: also NT, IOPLPUSHAPush all general registersPUSHAAX, CX, DX, BX, SP, BP, SI, DIPOPPop from stackPOP DestDest:=[SP], INC SPPOPFPop flagsPOPFO, D, I, T, S, Z, A, P, C 286+: also NT, IOPL±±±±±±±±±POPAPop all general registersPOPADI, SI, BP, SP, BX, DX, CX, AXCBWConvert byte to wordCBWAX:=AL (signed)CWDConvert word to doubleCWDDX:AX:=AX (signed)±±±±±±CWDEConv word extended doubleCWDE
386
EAX:=AX (signed)IN
i
InputIN Dest, PortAL/AX/EAX := byte/word/double of specified portOUT
i
OutputOUT Port, SourceByte/word/double of specified port := AL/AX/EAX
i
for more information see instruction specificationsFlags: ±=affected by this instruction ?=undefined after this instruction
 
ARITHMETICFlagsName Comment Code Operation O D I T S Z A P C
 ADDAddADD Dest,SourceDest:=Dest+Source±±±±±± ADCAdd with CarryADC Dest,SourceDest:=Dest+Source+CF±±±±±±SUBSubtractSUB Dest,SourceDest:=Dest-Source±±±±±±SBBSubtract with borrowSBB Dest,SourceDest:=Dest-(Source+CF)±±±±±±DIVDivide (unsigned)DIV OpOp=byte: AL:=AX / OpAH:=Rest??????DIVDivide (unsigned)DIV OpOp=word: AX:=DX:AX / OpDX:=Rest??????DIV
 
386
Divide (unsigned)DIV OpOp=doublew.: EAX:=EDX:EAX / OpEDX:=Rest??????IDIVSigned Integer DivideIDIV OpOp=byte: AL:=AX / OpAH:=Rest??????IDIVSigned Integer DivideIDIV OpOp=word: AX:=DX:AX / OpDX:=Rest??????IDIV
 
386
Signed Integer DivideIDIV OpOp=doublew.: EAX:=EDX:EAX / OpEDX:=Rest??????MULMultiply (unsigned)MUL OpOp=byte: AX:=AL*Opif AH
=
0
±????±MULMultiply (unsigned)MUL OpOp=word: DX:AX:=AX*Opif DX
=
0
±????±MUL
 
386
Multiply (unsigned)MUL OpOp=double: EDX:EAX:=EAX*Opif EDX
=
0
±????±IMUL
i
Signed Integer MultiplyIMUL OpOp=byte: AX:=AL*Opif AL sufficient
±????±IMULSigned Integer MultiplyIMUL OpOp=word: DX:AX:=AX*Opif AX sufficient
±????±IMUL
 
386
Signed Integer MultiplyIMUL OpOp=double: EDX:EAX:=EAX*Opif EAX sufficient
±????±INCIncrementINC OpOp:=Op+1 (Carry not affected !)±±±±±DECDecrementDEC OpOp:=Op-1 (Carry not affected !)±±±±±CMPCompareCMP Op1,Op2Op1-Op2±±±±±±SALShift arithmetic left(
 
SHL)SAL Op,Quantity
i
±±?±±SARShift arithmetic rightSAR Op,Quantity
i
±±?±±RCLRotate left through CarryRCL Op,Quantity
i
±RCRRotate right through CarryRCR Op,Quantity
i
±ROLRotate leftROL Op,Quantity
i
±RORRotate rightROR Op,Quantity
i
±
i
for more information see instruction specifications
then CF:=0, OF:=0 else CF:=1, OF:=1
 
LOGICFlagsName Comment Code Operation O D I T S Z A P C
NEGNegate (two-complement)NEG OpOp:=0-Opif Op=0 then CF:=0 else CF:=1±±±±±±NOTInvert each bitNOT OpOp:=
¬
Op (invert each bit) ANDLogical andAND Dest,SourceDest:=Dest
Source0±±?±0ORLogical orOR Dest,SourceDest:=Dest
Source0±±?±0XORLogical exclusive orXOR Dest,SourceDest:=Dest (exor) Source0±±?±0SHLShift logical left(
 
SAL)SHL Op,Quantity
i
±±?±±SHRShift logical rightSHR Op,Quantity
i
±±?±±
Download latest version free of charge from www.jegerlehner.ch/intel This page may be freely distributed without cost provided it is not changed. All rights reserved

Activity (2)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->