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.

Arquitectura MIPS: Convenio para el uso <strong>de</strong> los<br />

registros en llamadas a procedimientos<br />

Nombre Nº reg. Uso<br />

Preservado<br />

en llamadas?<br />

$zero 0 Constante 0 -<br />

$at 1 Reservado para el ensamblador -<br />

$v0-$v1 2-3 Valores <strong>de</strong> resultados y evaluación <strong>de</strong> expresiones no<br />

$a0-$a3 4-7 Paso <strong>de</strong> parámetros (hasta cuatro; más a través <strong>de</strong> la pila) no<br />

$t0-$t7 16-23 Registros temporales no<br />

$s0-$s7 16-23 Registros que <strong>de</strong>ben preservarse si<br />

$t8-$t9 24-25 Registros temporales no<br />

$k0-$k1 26-27 Reservado para el Sistema Operativo -<br />

$gp 28 Puntero global (global pointer) si<br />

$sp 29 Puntero <strong>de</strong> pila (stack pointer) si<br />

$fp 30 Puntero <strong>de</strong> encuadre (frame pointer) si<br />

$ra 31 Dirección <strong>de</strong> vuelta (return address) si<br />

Las abreviaciones <strong>de</strong> dos letras y nombre <strong>de</strong> los registros reflejan los usos pensados para ellos en el convenio.<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> 38 <strong>de</strong> 64

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

Saved successfully!

Ooh no, something went wrong!