Saturday, December 7, 2013

Introduction to MIPS R2000

3.2.2 DATA ALIGNMENT

Data alignment means putting the data at a memory offset equal to some multiple of the word size, which increases the system's performance due to the way the CPU handles memory.

List data sizes Apply to MIPS chips :
:65:3.2.2.1 MIPS Data Size
Show Data Alignment in MIPS :
:65:3.2.2.2 Data Alignment
3.2.3 REGISTERS
Register set as well as the instruction set.
:65:3.2.3.1 MIPS register conventions
- SPIM does not implement all of co processor 0’s register, since they are not much useful in a simulator or part of the the memory system, which is not implemented.
:65:3.2.3.2 trap register
- SPIM provide trap registes
:65:3.2.3.3 exception code register
- The exception code bits contain a code from the table 3.1.5 describing the cause of an exception.
3.2.4 SYSTEM CALL 
Assembly programs request a service by loading the system call (syscall) instruction.
:65:3.2.4.1 system call function

3.3.5 MIPS ASSEMBLY LANGUAGE PROGRAM FORMAT 
MIPS Program have a format that comprises of four columns 
:65:3.2.5.1 MIPS Program Format

Column 1 : LABEL (OPTIONAL)
          A label is usd to mark a specific point in the program.
Column 2 : OPCODE (OPERATION CODE)
          Opcode is the field that denoted the basic operation and format of an instruction.
                Example opcode : add, j, mul, div, etc
Column 3 : OPERAND
          Operand may contain registers, shift amount, label to jump into and constant or address.
Column 4 : COMMENT
              Comment is anything that follow "#" on the line.
           Example : # Invoke the operating system

Published by :
Syaqira Liyana Binti Ahmad Ghazali 
( B031310568 )

No comments:

Post a Comment

 

Copyright © 2013 | by BITS STUDENT SIG2