1 / 9

TIPOS DE INSTRUCCIONES

TIPOS DE INSTRUCCIONES. Haga Click sobre las instrucciones que desee ver :. Instrucciones Aritméticas. Instrucciones Transferencia de Datos. Instrucciones de Flujo de Programa. Instrucciones Lógicas. INSTRUCCIONES ARITMETICAS. INC: Incrementar el destino en uno.

dyre
Télécharger la présentation

TIPOS DE INSTRUCCIONES

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. TIPOS DE INSTRUCCIONES Haga Click sobre las instrucciones que desee ver : • Instrucciones Aritméticas • Instrucciones Transferencia de Datos • Instrucciones de Flujo de Programa • Instrucciones Lógicas

  2. INSTRUCCIONES ARITMETICAS INC:Incrementar el destino en uno. DEC: Decrementar destino en uno. ADD/ADDC: Suma valor de origen a destino con o sin la bandera de carry (C). SUBB: Resta el valor origen del destino teniendo en cuenta un borrow. MUL: Multiplica los contenidos del acumulador y un registro dado. DIV: Divide el contenido del acumulador por los del registro dado. DA: Ajusta el valor del acumulador de manera decimal; arregla el resultado de suma hecha en BCD y guardada en acumulador. Solo sirve en el caso de la operación suma. EJEMPLOS VOLVER AL MENU

  3. INSTRUCCIONES ARITMETICAS EJEMPLOS: MAS EJEMPLOS SUMA RESTA MULTI VOLVER A INSTRUCCIONES

  4. INSTRUCCIONES ARITMETICAS VOLVER A EJEMPLOS EJEMPLOS: DIVISION DECIMAL INC/DEC VOLVER A INSTRUCCIONES

  5. INSTRUCCIONES LOGICAS • ANL:Operación lógica AND. • ORL: Operación lógica OR. • XRL:Operación lógica XOR. • CPL:Operación lógica complemento. • RL:Rotar byte hacia la izquierda pasando el MSB a ser LSB. • RLC:Rotar el byte y el carry a la izquierda. El MSB pasa a ser carry y este • es LSB.RR:Rotar byte hacia la derecha. LSB se vuelve MSB. • RRC:Rotar byte y carry a derecha. El LSB se vuelve carry y este pasa a ser • MSB. • SWAP:Intercambio de mitad mas significativa con la menos significativa en • un byte. EJEMPLOS VOLVER AL MENU

  6. INSTRUCCIONES LOGICAS EJEMPLOS: MAS EJEMPLOS Instrucciones Lógicas a nivel BYTE : VOLVER A INSTRUCCIONES

  7. INSTRUCCIONES LOGICAS VOLVER A EJEMPLOS EJEMPLOS: Instrucciones Lógicas a nivel BIT : VOLVER A INSTRUCCIONES

  8. INSTRUCCIONES TRANSFERENCIA DATOS MOV:Transferencia de datos entre RAM interna, o registros de funciones especiales sin paso por acumulador. MOVX:Transferencia de datos entre el microcontrolador y RAM externa. El acumulador es origen o destino del operando. MOVC: Copiar información desde memoria ROM (interna / externa) a acumulador. PUSH:Incrementa el stack pointer y copia información de dirección dada, a posición apuntada por este (sp) en la memoria RAM interna. POP: Copia información desde dirección apuntada por sp en memoria RAM interna hacia dirección dada. Decrementa el sp finalmente. XCH: Intercambio de información entre origen y destino. Movimiento bidireccional. EJEMPLOS VOLVER AL MENU

  9. INSTRUCCIONES TRANSFERENCIA DATOS EJEMPLOS: VOLVER A INSTRUCCIONES

More Related