07.05.2013 Views

Tema 3: El nivel de lenguaje máquina - Blearning

Tema 3: El nivel de lenguaje máquina - Blearning

Tema 3: El nivel de lenguaje máquina - Blearning

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Formatos <strong>de</strong> las instrucciones en el procesador<br />

MIPS<br />

Sólo tres formatos:<br />

• Formato R: add rd,rs,rt<br />

op rs rt rd shamt funct Formato <strong>de</strong> instrucciones aritméticas<br />

6 bits 5 bits 5 bits 5 bits 5 bits 6 bits Todas las instrucciones MIPS <strong>de</strong> 32 bits<br />

000000 01010 11111 00011 00000 100000 0x015f1820 add $3,$10,$31<br />

• Formato I: lw rt,inmediato(rs)<br />

op rs rt Dirección/inmediato Formato <strong>de</strong> instrucciones carga<br />

6 bits 5 bits 5 bits 16 bits Todas las instrucciones MIPS <strong>de</strong> 32 bits<br />

100011 00011 00101 0000000000100000 0x8c650020 lw $5,32($3)<br />

• Formato J: j dirección<br />

op Dirección objetivo Formato <strong>de</strong> instrucciones bifurcación<br />

6 bits 26 bits Todas las instrucciones MIPS <strong>de</strong> 32 bits<br />

000010 00000100000000000000000000 0x08100000 j 0x400000<br />

Fundamento <strong>de</strong> Computadores (1º II) Cap 2: <strong>El</strong> <strong>nivel</strong> <strong>de</strong> <strong>lenguaje</strong> <strong>máquina</strong> 28 <strong>de</strong> 64

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

Saved successfully!

Ooh no, something went wrong!