Practica De Nachos

Páginas: 4 (771 palabras) Publicado: 24 de febrero de 2013
PRACTICA 11 NACHOS

1 ¿Cuánta memoria tiene la máquina simulada para NACHOS?
Tiene 4096b == 4kB
const int MemorySize = NumPhysPages * PageSize;
NumPhysPages = 32 y PageSize = SectorSize = 1282 ¿Cómo cambiaría ese valor?
Cambiando alguno de los valores mensionados, preferentemente NumPhysPages

3 ¿De qué tamaño es un disco?
const int SectorSize = 128; // number of bytes per disksector
const int SectorsPerTrack = 32; // number of sectors per disk track
const int NumTracks = 32; // number of tracks per disk
const int NumSectors = SectorsPerTrack * NumTracks;NumSectors * SectorSize = 131072 byts

4 ¿Cuántas instrucciones del MIPS simula NACHOS?
OP_ADD OP_ADDI OP_ADDIU OP_ADDU OP_AND
OP_ANDIOP_BEQ OP_BGEZ OP_BGEZAL OP_BGTZ
OP_BLEZ OP_BLTZ OP_BLTZAL OP_BNE
OP_DIV OP_DIVU OP_JOP_JAL OP_JALR
OP_JR OP_LB OP_LBU OP_LH OP_LHU
OP_LUI OP_LW OP_LWLOP_LWR
OP_MFHI OP_MFLO
OP_MTHI OP_MTLO OP_MULT OP_MULTU OP_NOR
OP_OR OP_ORI OP_RFE OP_SBOP_SH
OP_SLL OP_SLLV OP_SLT OP_SLTI OP_SLTIU
OP_SLTU OP_SRA OP_SRAV OP_SRLOP_SRLV
OP_SUB OP_SUBU OP_SW OP_SWL OP_SWR
OP_XOR OP_XORI OP_SYSCALL OP_UNIMP OP_RES60 Instrucciones Mips

5 - Explica el código que procesa la instrucción ''add''
El código en el archivo machine/mipssim.cc:125-133 (incluido a continuación)
case OP_ADD:
sum =...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Nach
  • Nacha
  • nacho
  • Nacho
  • Nacho
  • nacho
  • NACHO
  • nacho

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS