8051 Resumen Set
INSTRUCCIÓN
OPERACIÓN
INSTRUCCIONES PARA LA TRANSFERENCIA DE DATOS CON RAM INTERNA
MOV A,
A =
MOV
MOV
MOV DPTR, #D16 DPTR = 16bits
PUSH
INC SP MOV @SP,
(Almacenamiento en la pila)
POP
MOV
A <==>
(se produce un intercambio de contenidos)
XCHD A,@Ri
A <==> @Ri
(intercambia 4bits LSB de A con 4bits LSB que apunta Ri)
INSTRUCCIONES ARITMETICAS
ADD A,
A=A+
ADDC A,
(acumulador + byte indicado + acarreo)
SUBB A,
A=A‐
INC A
A=A+1
INC
(Incrementa el byte en 1)
INC DPTR
DPTR=DPTR+1
(Incrementa el apuntador de datos)
DEC A
A=A‐1
DEC
MUL AB
B:A=BxA
(A=byte bajo, B=byte alto)
DIV AB
A=cociente de [A/B]
(acarreo y OV son limpiados) DA A
Ajuste decimal del acumulador por adición.
INSTRUCCIONES LÓGICAS
ANL
ORL
en byte
XRL
ANL C,bit
ANL C,/bit
ORL C,bit
ORL C,/bit
MOV C,bit
MOV bit,C
CLR C
CLR bit
SETB bit
SETB C
CPL C
CPL bit
CPL A
JC rel Operación OR‐EX entre las variables indicadas.
INSTRUCCIONES BOOLEANAS
C=C AND bit
C=C AND /bit
C=C ORL bit
C=C ORL /bit
C=bit
bit=C
C=0 (Limpia el acumulador)
bit=0 (Limpia...
Regístrate para leer el documento completo.