Prueba

Páginas: 6 (1363 palabras) Publicado: 31 de enero de 2013
Assembler 80186 and higher TRANSFER Name Comment MOV Move (copy) XCHG Exchange STC CLC CMC STD CLD STI CLI PUSH PUSHF PUSHA POP POPF POPA CBW CWD CWDE Set Carry Clear Carry Complement Carry Set Direction Clear Direction Set Interrupt Clear Interrupt Push onto stack Push flags Push all general registers Pop from stack Pop flags Pop all general registers Convert byte to word Convert word to doubleConv word extended double

CodeTable 1/2
Operation Dest:=Source Op1:=Op2 , Op2:=Op1 CF:=1 CF:=0 CF:= ¬ CF DF:=1 (string op's downwards) DF:=0 (string op's upwards) IF:=1 IF:=0 DEC SP, [SP]:=Source O, D, I, T, S, Z, A, P, C 286+: also NT, IOPL AX, CX, DX, BX, SP, BP, SI, DI Dest:=[SP], INC SP O, D, I, T, S, Z, A, P, C 286+: also NT, IOPL DI, SI, BP, SP, BX, DX, CX, AX AX:=AL (signed) DX:AX:=AX(signed) EAX:=AX (signed)

V 2.22 - All rights reserved © 1996-2002 by R. Jegerlehner

Code MOV Dest,Source XCHG Op1,Op2 STC CLC CMC STD CLD STI CLI PUSH Source PUSHF PUSHA POP Dest POPF POPA CBW CWD CWDE

O D

I

Flags T S Z A P C

1 0 ± 1 0 1 0

±

±

±

±

±

±

±

±

±

±

±

±

±

±

±

386

IN i Input IN Dest, Port AL/AX/EAX := byte/word/double ofspecified port OUT i Output OUT Port, Source Byte/word/double of specified port := AL/AX/EAX i for more information see instruction specifications Flags: ±=affected by this instruction ?=undefined after this instruction ARITHMETIC Flags Name Comment Code Operation O D I T S Z A P ADD Add ADD Dest,Source Dest:=Dest+Source ± ± ± ± ± ADC Add with Carry ADC Dest,Source Dest:=Dest+Source+CF ± ± ± ± ±SUB Subtract SUB Dest,Source Dest:=Dest-Source ± ± ± ± ± SBB Subtract with borrow SBB Dest,Source Dest:=Dest-(Source+CF) ± ± ± ± ± DIV Divide (unsigned) DIV Op Op=byte: AL:=AX / Op AH:=Rest ? ? ? ? ? DIV Divide (unsigned) DIV Op Op=word: AX:=DX:AX / Op DX:=Rest ? ? ? ? ? DIV 386 Divide (unsigned) DIV Op Op=doublew.: EAX:=EDX:EAX / Op EDX:=Rest ? ? ? ? ? IDIV Signed Integer Divide IDIV Op Op=byte:AL:=AX / Op AH:=Rest ? ? ? ? ? IDIV Signed Integer Divide IDIV Op Op=word: AX:=DX:AX / Op DX:=Rest ? ? ? ? ? IDIV 386 Signed Integer Divide IDIV Op Op=doublew.: EAX:=EDX:EAX / Op EDX:=Rest ? ? ? ? ? MUL Multiply (unsigned) MUL Op Op=byte: AX:=AL*Op if AH=0 ♦ ± ? ? ? ? MUL Multiply (unsigned) MUL Op Op=word: DX:AX:=AX*Op if DX=0 ♦ ± ? ? ? ? MUL 386 Multiply (unsigned) MUL Op Op=double:EDX:EAX:=EAX*Op if EDX=0 ♦ ± ? ? ? ? IMUL i Signed Integer Multiply IMUL Op Op=byte: AX:=AL*Op if AL sufficient ♦ ± ? ? ? ? IMUL Signed Integer Multiply IMUL Op Op=word: DX:AX:=AX*Op if AX sufficient ♦ ± ? ? ? ? IMUL 386 Signed Integer Multiply IMUL Op Op=double: EDX:EAX:=EAX*Op if EAX sufficient ♦ ± ? ? ? ? INC Increment INC Op Op:=Op+1 (Carry not affected !) ± ± ± ± ± DEC Decrement DEC Op Op:=Op-1 (Carrynot affected !) ± ± ± ± ± CMP Compare CMP Op1,Op2 Op1-Op2 ± i i i i i i
♦ then CF:=0, OF:=0 else CF:=1, OF:=1

C ± ± ± ± ? ? ? ? ? ? ± ± ± ± ± ±

± ± ±

± ± ±

± ? ?

± ± ±

± ± ± ± ± ± ±

SAL Shift arithmetic left (≡ SHL) SAL Op,Quantity SAR Shift arithmetic right SAR Op,Quantity RCL Rotate left through Carry RCL Op,Quantity RCR Rotate right through Carry RCR Op,Quantity ROL Rotateleft ROL Op,Quantity ROR Rotate right ROR Op,Quantity i for more information see instruction specifications LOGIC Name Comment Code NEG Negate (two-complement) NEG Op NOT Invert each bit NOT Op AND Logical and AND Dest,Source OR Logical or OR Dest,Source XOR Logical exclusive or XOR Dest,Source SHL SHR Shift logical left Shift logical right (≡ SAL) SHL Op,Quantity SHR Op,Quantity

OperationOp:=0-Op if Op=0 then CF:=0 else CF:=1 Op:=¬ Op (invert each bit) Dest:=Dest∧ Source Dest:=Dest∨Source Dest:=Dest (exor) Source

O D ± 0 0 0 i i

I

Flags T S Z A P C ± ± ± ± ± ± ± ± ± ± ± ± ± ± ± ? ? ? ? ? ± ± ± ± ± 0 0 0 ± ±

This page may be freely distributed without cost provided it is not changed. Send comments to roger@jegerlehner.ch - www.jegerlehner.ch/intel/

Assembler 80186 and...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Prueba
  • Prueba
  • Prueba
  • Prueba
  • Prueba
  • Pruebas
  • Pruebas
  • Prueba

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS