01.05.2013 Views

Estructura de computadores

Estructura de computadores

Estructura de computadores

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.

CC-BY-SA • PID_00181526 39 La arquitectura CISCA<br />

• Si el operando <strong>de</strong>stino es un registro:<br />

Ri ← MBR<br />

• Si el operando <strong>de</strong>stino hace referencia a memoria:<br />

(Resolver modo <strong>de</strong> direccionamiento), write<br />

Memoria ← MBR<br />

4.3.2. Operaciones aritméticas y lógicas<br />

1) ADD <strong>de</strong>stino, fuente; SUB <strong>de</strong>stino, fuente; MUL <strong>de</strong>stino, fuente; DIV <strong>de</strong>s-<br />

tino, fuente; CMP <strong>de</strong>stino, fuente; TEST <strong>de</strong>stino, fuente; SAL <strong>de</strong>stino, fuente;<br />

SAR <strong>de</strong>stino, fuente:<br />

• Si el operando <strong>de</strong>stino es un registro y el operando fuente es un inmediato:<br />

Ri ← RiRI(valor Inmediato)<br />

• Si el operando <strong>de</strong>stino es un registro y el operando fuente es también un<br />

registro:<br />

Ri ← RiRi<br />

• Si el operando <strong>de</strong>stino es un registro y el operando fuente hace referencia<br />

a memoria:<br />

Ri ← RiMBR<br />

• Si el operando <strong>de</strong>stino hace referencia a memoria y el operando fuente es<br />

uno inmediato:<br />

MBR ← MBRRI(valor Inmediato), write<br />

Memoria ← MBR<br />

• Si el operando <strong>de</strong>stino hace referencia a memoria y el operando fuente es<br />

un registro:<br />

MBR ← MBRRi, write<br />

Memoria ← MBR<br />

Ejemplo<br />

Si estamos ejecutando la instrucción ADD R3, 7 la micro-operación que se ejecutaría en<br />

esta fase sería: R3 ← R3 + IR(valor inmediato)=7.<br />

2) INC <strong>de</strong>stino; DEC <strong>de</strong>stino; NEG <strong>de</strong>stino; NOT <strong>de</strong>stino<br />

• Si el operando <strong>de</strong>stino es un registro:<br />

Ri ← Ri <br />

Operando <strong>de</strong>stino<br />

Recordad que el operando<br />

<strong>de</strong>stino también es operando<br />

fuente.

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

Saved successfully!

Ooh no, something went wrong!