Cda 3100 Module 2
The MIPS language supports 23 specific opcodes. - Answer- false it is 50 specific opcodes but 23 general opcodes Comments in MIPS are exactly like C comments. - Answer- naur Which character(s) indicate(s) the beginning of a comment in MIPS? - Answer- # its a # What character indicates a register in MIPS? - Answer- $ How many registers does MIPS support? - Answer- 32 How many argument registers are available in MIPS? - Answer- 4 How many saved registers are available in MIPS? - Answer- 8 How many temporary registers are available in MIPS? - Answer- 10 What is the purpose of register $29? - Answer- points to top of stack Is MIPS stores data in memory using the Little Endian format? - Answer- no big endian How many bytes comprise a word in MIPS? - Answer- 4 Which instruction format represents the majority of MIPS instructions? - Answer- R-TYPE How many registers are required for a typical R-type instruction? - Answer- 3 destination and 2 source registers What does the first register in an R-type instruction indicate? - Answer- Which register to store the result What are the contents of registers $t0, $t1, and $t2 after the command add $t0, $t1, $t2 is executed? Note: The original C statement was int c = a + b; // a = 4, b = 2 - Answer- $t0 = 6, $t1 = 4, $t2 = 2 How many MIPS statements are required to implement the following C statement? int a = (b - c) + (d + e) - Answer- 3 Using the information below, what value is stored in register $t0 after executing the MIPS
Información del documento
- Subido en
- 23 de junio de 2023
- Número de páginas
- 4
- Escrito en
- 2022/2023
- Tipo
- Examen
- Contiene
- Preguntas y respuestas