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.

Repertorio <strong>de</strong> instrucciones MIPS:<br />

Instrucciones <strong>de</strong> salto y bifurcación<br />

Instrucción Ejemplo Significado Comentarios<br />

salta sobre igual beq $1,$2,100 si($1==$2) ir a PC+4 +100<br />

salta sobre no igual bne $1,$2,100 si($1!=$2) ir a PC+4 +100<br />

salta sobre mayor o igual que cero bgez $1,100 si($1>=0) ir a PC+4 +100<br />

salta sobre mayor o igual que cero y<br />

bgezal $1,1000 si($1>=0) $31=PC+4; ir a 1000<br />

enlaza<br />

.....<br />

bifurcar j 2000 ir a 2000<br />

bifurcar registro jr $1 ir a $1<br />

Bifurcar y enlazar jal 10000 $31=PC+4; ir a 10000<br />

bifurcar y enlazar registro jalr $1 $31=PC+4; ir a $1<br />

Pseudoinstrucciones<br />

salta sobre mayor o igual bge $1,$2,100 si($1>=$2) ir a PC+4 +100<br />

salta sobre mayor que bgt $1,$2,100 si($1>$2) ir a PC+4 +100<br />

salta sobre menor o igual ble $1,$2,100 si($1

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

Saved successfully!

Ooh no, something went wrong!