Instrucción |
Función |
Notas |
ADC |
A = A + Operando + Carry |
Limpiar Carry antes de usar esta instrucción (operando no puede ser Y o X) |
AND |
A = A AND Operando |
|
ASL |
A = A * 2 |
El bit más alto pasa a ser Carry (operando no puede ser Y o X) |
CLC |
Carry = 0 |
Se usa antes de ADC |
CLD |
Decimal = 0 |
|
CLI |
Interrupt = 0 |
Interrupcion=0 |
CLV |
Overflow = 0 |
Desvordamiento=0 |
DEC |
Operando = Operando – 1 |
|
DEX |
X = X – 1 |
|
DEY |
Y = Y – 1 |
|
EOR |
A = A XOR Operando |
|
INX |
X = X + 1 |
|
INY |
Y = Y + 1 |
|
LDA |
A = Operando |
|
LDX |
X = Operando |
|
LDY |
Y = Operando |
|
LSR |
Operando = Operando \ 2 |
El bit más bajo pasa a ser Carry |
NOP |
Nada |
|
ORA |
A = A OR Operando |
|
REP |
P = P AND (~Operando) |
Desactiva los Flag del procesador |
ROL |
Operando = Operando * 2 + Carry |
Parecido a ASL, pero el Carry se agrega al lado derecho (el bit menos significativo) |
ROR |
Operando = Operando / 2 + Carry (as most sig. bit) |
Parecido a LSR, pero el Carry se agrega al lado izquierdo (bit menos significativo) |
SBC |
A = A – Operand + Carry - 1 |
Setear Carry ante de usar esta instruccion (operando no puede ser Y o X) |
SEC |
Carry = 1 |
Setea el Carry. Se usa antes de SBC |
SED |
Decimal = 1 |
|
SEI |
Interrupt = 1 |
Interrupcion=1 |
SEP |
P = P OR Operando |
Activa los Flag del procesador |
STA |
Operando= A |
|
STX |
Operando = X |
|
STY |
Operando = Y |
|
STZ |
Operando = 0 |
|
TAX |
X = A |
|
TAY |
Y = A |
|
TCD |
Direct Page Offset = A |
Siempre copia 16 bits |
TCS |
Stack Pointer = A |
Siempre copia 16 bits |
TDC |
A = Direct Page Offset |
Siempre copia 16 bits |
TSC |
A = Puntero de Pila (Stack Pointer) |
Siempre copia 16 bits |
TSX |
X = Puntero de Pila |
|
TXA |
A = X |
|
TXS |
Puntero de Pila = X |
|
TXY |
Y = X |
|
TYA |
A = Y |
|
TYX |
X = Y |
|
WDM |
Nada |
No se usa esta instrucción |
XBA |
A (low) <-> A (high) |
Invierte los bytes altos con los bajos del acumulador |
XCE |
Carry <-> Emulation |
Se usa para setear el Modo de Emulacion |