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.

Sintaxis típica <strong>de</strong> una instrucción en <strong>lenguaje</strong><br />

ensamblador<br />

• Ejemplo: Lenguaje ensamblador <strong>de</strong>l procesador MIPS R2000/3000<br />

– 4 campos básicos: etiqueta, nemónico <strong>de</strong> la instrucción, operandos (fuentes<br />

y <strong>de</strong>stino) y comentarios (opcional).<br />

Operandos<br />

Etiqueta Instrucción Comentarios<br />

Destino Fuentes<br />

<strong>de</strong>mo: add $t1, $s1, $v0 # $t1= $s1 + $v0<br />

sumai: addi $t5, $s2, 5 # $t5= $s2 + 5<br />

carga: lw $s3, 100($zero)<br />

# $s3= M[100+$zero]<br />

# $zero = 0 siempre!<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> 4 <strong>de</strong> 64

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

Saved successfully!

Ooh no, something went wrong!