08.05.2013 Views

INTRODUCCIÓN El documento que está visualizando tiene la ...

INTRODUCCIÓN El documento que está visualizando tiene la ...

INTRODUCCIÓN El documento que está visualizando tiene la ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

LENGUAJE ENSAMBLADOR LABORATORIO DE COMPUTADORAS<br />

INSTRUCCIONES LÓGICAS Y ARITMÉTICAS<br />

INSTRUCCIONES LÓGICAS<br />

Son utilizadas para realizar operaciones lógicas sobre los operandos.<br />

AND<br />

NEG<br />

NOT<br />

OR<br />

TEST<br />

XOR<br />

INSTRUCCIONES ARITMÉTICAS<br />

Se usan para realizar operaciones aritméticas sobre los operandos.<br />

ADC<br />

ADD<br />

DIV<br />

IDIV<br />

MUL<br />

IMUL<br />

SBB<br />

SUB<br />

INSTRUCCIÓN AND<br />

Propósito: Realiza <strong>la</strong> conjunción de los operandos bit por bit.<br />

Sintaxis:<br />

AND destino, fuente<br />

Con esta instrucción se lleva a cabo <strong>la</strong> operación "y" lógica de los dos operandos:<br />

Fuente Destino | Destino<br />

----------------------------------<br />

1 1 | 1<br />

1 0 | 0<br />

0 1 | 0<br />

0 0 | 0<br />

<strong>El</strong> resultado de <strong>la</strong> operación se almacena en el operando destino.<br />

INSTRUCCIÓN NEG<br />

Propósito: Genera el complemento a 2<br />

Sintaxis:<br />

NEG destino<br />

Esta instrucción genera el complemento a 2 del operando destino y lo almacena en este mismo<br />

operando. Por ejemplo, si AX guarda el valor de 1234H, entonces:<br />

NEG AX<br />

Página 40 Ing. Sánchez Rivero

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!