Beruflich Dokumente
Kultur Dokumente
Operacin:
Funcin:
Sintaxis:
ACALL
Llamar Absoluto Dentro 2K Bloquear
ACALL direccin de cdigo
Instrucciones
OpCode
Bytes
Banderas
ACALL page0
0x11
Ninguno
ACALL page1
0x31
Ninguno
ACALL page2
0x51
Ninguno
ACALL page3
0x71
Ninguno
ACALL page4
0x91
Ninguno
ACALL page5
0xB1
Ninguno
ACALL page6
0xD1
Ninguno
ACALL pgina 7
0xf1
Ninguno
ADD, ADDC
Funcin:
Sintaxis:
0x24
C, AC,
OV
ADDC A,
# de datos
0x34
C, AC,
OV
AADIR
A, addr IRAM
0x25
C, AC,
OV
ADDC
A, addr IRAM
0x35
C, AC,
OV
AADIR A,
@ R0
0x26
C, AC,
OV
ADDC A, @
R0
0x36
C, AC,
OV
AADIR A,
@ R1
0x27
C, AC,
OV
ADDC A, @
R1
0x37
C, AC,
OV
AADIR A,
R0
0x28
C, AC,
OV
ADDC A, R0
0x38
C, AC,
OV
AADIR A,
R1
0x29
C, AC,
OV
ADDC A, R1
0x39
C, AC,
OV
AADIR A,
R2
0x2A
C, AC,
OV
ADDC A, R2
0x3A
C, AC,
OV
AADIR A,
R3
0x2B
C, AC,
OV
ADDC A, R3
0x3B
C, AC,
OV
AADIR A,
R4
0x2C
C, AC,
OV
ADDC A, R4
0x3C
C, AC,
OV
AADIR A,
R5
0x2D
C, AC,
OV
ADDC A, R5
0x3D
C, AC,
OV
AADIR A,
R6
0x2E
C, AC,
OV
ADDC A, R6
0x3E
C, AC,
OV
AADIR A,
R7
0x2F
C, AC,
OV
ADDC A, R7
0x3F
C, AC,
OV
AJMP
Salto Absoluto Dentro 2K Bloquear
AJMP direccin de cdigo
OpCode
Bytes
Banderas
AJMP page0
0x01
Ninguno
AJMP page1
0x21
Ninguno
AJMP page2
0x41
Ninguno
AJMP page3
0x61
Ninguno
AJMP page4
0x81
Ninguno
AJMP page5
0xA1
Ninguno
AJMP page6
0xC1
Ninguno
AJMP pgina 7
0xE1
Ninguno
DIRECCION : http://www.win.tue.nl/~aeb/comp/8051/set8051.html#51xrl
ANL
AND bit a bit
ANL operando1 , operando2
Instrucciones
OpCode
Bytes
Banderas
0x52
Ninguno
0x53
Ninguno
ANL A, # de datos
0x54
Ninguno
0x55
Ninguno
ANL A, @ R0
0x56
Ninguno
ANL A, @ R1
0x57
Ninguno
ANL A, R0
0x58
Ninguno
ANL A, R1
0x59
Ninguno
ANL A, R2
0x5A
Ninguno
ANL A, R3
0x5b
Ninguno
ANL A, R4
0x5C
Ninguno
ANL A, R5
0x5D
Ninguno
ANL A, R6
0x5E
Ninguno
ANL A, R7
0x5F
Ninguno
0x82
0xB0
CJNE
Compara y Jump si no igual
CJNE operando1 , operando2 , reladdr
Instrucciones
OpCode
Bytes
Banderas
0xB4
0xB5
0xB6
0xB7
0xB8
0xB9
0xBA
0xBB
0xBC
0xBD
0xBE
0xBF
operandos son iguales flujo del programa contina con la instruccin siguiente a
la instruccin CJNE.
El bit de acarreo (C) se establece si operando1 es menor que operando2 , de lo
contrario se restablece.
Vea tambin: DJNZ
CLR
Borrar Registro
CLR registro
Instrucciones
OpCode
Bytes
Banderas
0xC2
Ninguno
CLR C
0xC3
CLR A
0xE4
Ninguno
Descripcin: Borra CLR (sets a 0) Todos los bits (s) de registro indicado. Si el
registro es un poco (incluyendo el bit de acarreo), slo el bit especificado se ve
afectada. Borrado del acumulador establece el valor del acumulador a 0.
Vea tambin: SETB
CPL
Complementar Registro
CPL operando
Instrucciones
OpCode
Bytes
Banderas
CPL A
0xF4
Ninguno
CPL C
0xB3
0xB2
Ninguno
DA
Decimal Ajuste Acumulador
DA A
Instrucciones
OpCode
Bytes
Banderas
DA
0xD4
Diciembre
Disminuye el Registro
Diciembre registro
Instrucciones
OpCode
Bytes
Banderas
A diciembre
0x14
Ninguno
0x15
Ninguno
Diciembre @ R0
0x16
Ninguno
Diciembre @ R1
0x17
Ninguno
Diciembre R0
0x18
Ninguno
Diciembre R1
0x19
Ninguno
Diciembre R2
0x1A
Ninguno
Diciembre R3
0x1B
Ninguno
Diciembre R4
0x1C
Ninguno
Diciembre R5
0x1D
Ninguno
Diciembre R6
0x1E
Ninguno
Diciembre R7
0x1F
Ninguno
DIV
Divida Acumulador por B
DIV AB
Instrucciones
OpCode
Bytes
Banderas
DIV AB
0x84
C, OV
Descripcin: Divide el valor sin signo del acumulador por el valor sin signo del
registro "B". El cociente resultante se coloca en el acumulador y el resto se
coloca en el registro "B".
La bandera de acarreo (C) siempre se restablece.
DJNZ
Disminuir y Saltar si es cero
DJNZ registro , reladdr
Instrucciones
OpCode
Bytes
Banderas
0xD5
Ninguno
0xd8
Ninguno
0xD9
Ninguno
0xDA
Ninguno
0xDB
Ninguno
0xDC
Ninguno
0xdd
Ninguno
0xDE
Ninguno
0xDF
Ninguno
INC
Incrementa el Registro
Sintaxis:
INC registro
Instrucciones
OpCode
Bytes
Banderas
INC A
0x04
Ninguno
0x05
Ninguno
INC @ R0
0x06
Ninguno
INC @ R1
0x07
Ninguno
INC R0
0x08
Ninguno
INC R1
0x09
Ninguno
INC R2
0x0A
Ninguno
INC R3
0x0B
Ninguno
INC R4
0x0C
Ninguno
INC R5
0x0D
Ninguno
INC R6
0x0E
Ninguno
INC R7
0x0F
Ninguno
INC DPTR
0xA3
Ninguno
JB
Saltar si el bit se establece
JB poco addr , reladdr
Instrucciones
OpCode
Bytes
Banderas
0x20
Ninguno
JBC
Saltar si Bit Set y Clear Bit
JB poco addr , reladdr
Instrucciones
OpCode
Bytes
Banderas
0x10
Ninguno
JC
Saltar si Llevar Set
JC reladdr
Instrucciones
OpCode
Bytes
Banderas
JC reladdr
0x40
Ninguno
JMP
Saltar al puntero de datos + Acumulador
JMP @ A + DPTR
Instrucciones
OpCode
Bytes
Banderas
JMP @ A + DPTR
0x73
Ninguno
JNB
Saltar si Bit no activado
JNB poco addr , reladdr
Instrucciones
OpCode
Bytes
Banderas
0x30
Ninguno
JNC
Saltar si llevamos no Set
JNC reladdr
Instrucciones
OpCode
Bytes
Banderas
JNC reladdr
0x50
Ninguno
JNZ
Saltar si Acumulador No Cero
JNZ reladdr
Instrucciones
OpCode
Bytes
Banderas
JNZ reladdr
0x70
Ninguno
JZ
Saltar si Acumulador Zero
JNZ reladdr
Instrucciones
OpCode
Bytes
Banderas
JZ reladdr
0x60
Ninguno
LCALL
Long Call
LCALL cdigo addr
Instrucciones
OpCode
Bytes
Banderas
0x12
Ninguno
LJMP
Salto de longitud
LJMP cdigo addr
Instrucciones
OpCode
Bytes
Banderas
0x02
Ninguno
MOV
Memoria Move
Sintaxis:
OpCode
Bytes
Banderas
0x76
Ninguno
0x77
Ninguno
MOV @ R0, A
0xF6
Ninguno
MOV @ R1, A
0xF7
Ninguno
0xA6
Ninguno
0xA7
Ninguno
MOV A, # de datos
0x74
Ninguno
MOV A, @ R0
0xE6
Ninguno
MOV A, @ R1
0xE7
Ninguno
MOV A, R0
0xE8
Ninguno
MOV A, R1
0xE9
Ninguno
MOV A, R2
0xEA
Ninguno
MOV A, R3
0xEB
Ninguno
MOV A, R4
0xEC
Ninguno
MOV A, R5
0xED
Ninguno
MOV A, R6
0xEE
Ninguno
MOV A, R7
0xEF
Ninguno
0xE5
Ninguno
0xA2
0x90
Ninguno
0x78
Ninguno
0x79
Ninguno
0x7A
Ninguno
0x7B
Ninguno
0x7C
Ninguno
0x7D
Ninguno
0x7E
Ninguno
0x7F
Ninguno
MOV R0, A
0xF8
Ninguno
MOV R1, A
0xF9
Ninguno
MOV R2, A
0xFA
Ninguno
MOV R3, A
0xFB
Ninguno
MOV R4, A
0xFC
Ninguno
MOV R5, A
0xFD
Ninguno
MOV R6, A
0xFE
Ninguno
MOV R7, A
0xFF
Ninguno
0xA8
Ninguno
0xa9
Ninguno
0xAA
Ninguno
0xAB
Ninguno
0xAC
Ninguno
0xAD
Ninguno
0xAE
Ninguno
0xAF
Ninguno
0x92
Ninguno
0x75
Ninguno
0x86
Ninguno
0x87
Ninguno
0x88
Ninguno
0x89
Ninguno
0x8A
Ninguno
0x8B
Ninguno
0x8C
Ninguno
0x8D
Ninguno
0x8E
Ninguno
0x8F
Ninguno
0xF5
Ninguno
0x85
Ninguno
MOVC
Mueva Cdigo Byte al Acumulador
MOVC A, @ A + registro
Instrucciones
OpCode
Bytes
Banderas
MOVC A, @ A + DPTR
0x93
Ninguno
MOVC A, @ A + PC
0x83
Ninguno
MOVX
Mover datos hacia / desde la memoria externa (XRAM)
MOVX operando1 , operando2
Instrucciones
OpCode
Bytes
Banderas
MOVX @ DPTR, A
0xF0
Ninguno
MOVX @ R0, A
0xF2
Ninguno
MOVX @ R1, A
0xF3
Ninguno
MOVX A, @ DPTR
0xE0
Ninguno
MOVX A, @ R0
0xE2
Ninguno
MOVX A, @ R1
0xE3
Ninguno
MUL
Multiplique Acumulador por B
MUL AB
Instrucciones
OpCode
Bytes
Banderas
MUL AB
0xA4
C, OV
Descripcin: Multiples el valor sin signo del acumulador por el valor sin signo
de la "B" Register. El byte menos significativo del resultado se coloca en el
acumulador y el byte ms significativo se coloca en la "B" se registra.
El indicador de acarreo (C) siempre se restablece.
La bandera de desbordamiento (OV) se establece si el resultado es mayor que
255 (si el byte ms significativo no es cero), de lo contrario se restablece.
Vea tambin: DIV
NOP
Ninguno, perder el tiempo
No Operacin
Instrucciones
OpCode
Bytes
Banderas
NOP
0x00
Ninguno
ORL
OR bit a bit
ORL operando1 , operando2
Instrucciones
OpCode
Bytes
Banderas
0x42
Ninguno
0x43
Ninguno
ORL A, # de datos
0x44
Ninguno
0x45
Ninguno
ORL A, @ R0
0x46
Ninguno
ORL A, @ R1
0x47
Ninguno
ORL A, R0
0x48
Ninguno
ORL A, R1
0x49
Ninguno
ORL A, R2
0x4A
Ninguno
ORL A, R3
0x4B
Ninguno
ORL A, R4
0x4C
Ninguno
ORL A, R5
0x4D
Ninguno
ORL A, R6
0x4E
Ninguno
ORL A, R7
0x4F
Ninguno
0x72
0xA0
POP
Pop Valor De Pila
POP
Instrucciones
OpCode
Bytes
Banderas
0xD0
Ninguno
EMPUJAR
Empuje valor en la pila
EMPUJAR
Instrucciones
OpCode
Bytes
Banderas
0xC0
Ninguno
RET
Regreso de la subrutina
RET
Instrucciones
OpCode
Bytes
Banderas
RET
0x22
Ninguno
RETI
Regreso de la interrupcin
RETI
Instrucciones
OpCode
Bytes
Banderas
RETI
0x32
Ninguno
RL
Rotar acumulador Izquierda
RL A
Instrucciones
OpCode
Bytes
Banderas
RL A
0x23
RLC
Gire Acumulador Izquierda travs Carry
RLC A
Instrucciones
OpCode
Bytes
Banderas
RLC A
0x33
RR
Rotar acumulador Derecho
RR A
Instrucciones
OpCode
Bytes
Banderas
RR A
0x03
Ninguno
RRC
Gire Acumulador derecha a travs de Carry
RRC A
Instrucciones
OpCode
Bytes
Banderas
RRC A
0x13
SETB
Bit Set
SETB poco addr
Instrucciones
OpCode
Bytes
Banderas
SETB C
0xD3
0xD2
Ninguno
SJMP
Corto Jump
SJMP reladdr
Instrucciones
OpCode
Bytes
Banderas
SJMP reladdr
0x80
Ninguno
SUBB
Restar de Acumulador Con Borrow
SUBB A, operando
Instrucciones
OpCode
Bytes
Banderas
SUBB A, # de datos
0x94
C, AC, OV
0x95
C, AC, OV
SUBB A, @ R0
0x96
C, AC, OV
SUBB A, @ R1
0x97
C, AC, OV
SUBB A, R0
0x98
C, AC, OV
SUBB A, R1
0x99
C, AC, OV
SUBB A, R2
0x9A
C, AC, OV
SUBB A, R3
0x9B
C, AC, OV
SUBB A, R4
0x9C
C, AC, OV
SUBB A, R5
0x9D
C, AC, OV
SUBB A, R6
0x9E
C, AC, OV
SUBB A, R7
0x9F
C, AC, OV
Descripcin: SUBB restar el valor del operando desde el valor del acumulador,
dejando el valor resultante en el acumulador.El valor de operando no se ve
afectada.
El bit de acarreo (C) se establece si un prstamo se requiere para el bit 7, de lo
contrario se restablece. En otras palabras, si el valor sin signo que se restan es
mayor que el acumulador el indicador de acarreo est establecido.
El Carry Auxillary (AC) bit se establece si un prstamo se requiere para el bit 3,
de lo contrario se restablece. En otras palabras, el bit se establece si el nibble bajo
del valor a restar fue mayor que el nibble bajo del acumulador.
El desbordamiento (OV) bit se establece si un prstamo se requiere para el bit
para el bit 6 o 7, pero no ambos. En otras palabras, la resta de dos bytes firmados
result en un valor fuera del rango de un byte con signo (-128 a 127). De lo
contrario, se restablece.
SWAP
Intercambia acumuladores Nibbles
SWAP A
Instrucciones
OpCode
Bytes
Banderas
SWAP A
0xC4
Ninguno
Descripcin: swaps SWAP los bits 0-3 del acumulador con los bits 4-7 del
acumulador. Esta instruccin es idntica a la ejecucin de "RR A" o "RL A"
cuatro veces.
Vea tambin: RL , RLC , RR , RRC
Instruccin Indefinido
Indefinido
???
Instrucciones
OpCode
Bytes
Banderas
???
0xA5
XCH
Cambio Bytes
XCH A, regstrese
Instrucciones
OpCode
Bytes
Banderas
XCH A, @ R0
0xC6
Ninguno
XCH A, @ R1
0xC7
Ninguno
XCH A, R0
0xC8
Ninguno
XCH A, R1
0xC9
Ninguno
XCH A, R2
0xCA
Ninguno
XCH A, R3
0xCB
Ninguno
XCH A, R4
0xCC
Ninguno
XCH A, R5
0xCD
Ninguno
XCH A, R6
0xCE
Ninguno
XCH A, R7
0xCF
Ninguno
0xC5
Ninguno
Operacin:
Funcin:
Sintaxis:
XCHD
Cambio Digit
XCHD A, [@ R0 / @ R1]
Instrucciones
OpCode
Bytes
Banderas
XCHD A, @ R0
0xD6
Ninguno
XCHD A, @ R1
0xD7
Ninguno
Descripcin: Bolsas de los bits 0-3 del acumulador con los bits 0-3 de la
direccin de memoria RAM interna sealaron indirectamente por R0 o R1. Bits
4-7 de cada registro no se ven afectadas.
Vea tambin: DA
XRL
Bitwise OR exclusiva
XRL operando1 , operando2
Instrucciones
OpCode
Bytes
Banderas
0x62
Ninguno
0x63
Ninguno
XRL A, # de datos
0x64
Ninguno
0x65
Ninguno
XRL A, @ R0
0x66
Ninguno
XRL A, @ R1
0x67
Ninguno
XRL A, R0
0x68
Ninguno
XRL A, R1
0x69
Ninguno
XRL A, R2
0x6A
Ninguno
XRL A, R3
0x6B
Ninguno
XRL A, R4
0x6C
Ninguno
XRL A, R5
0x6D
Ninguno
XRL A, R6
0x6E
Ninguno
XRL A, R7
0x6F
Ninguno