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 :
3.2.2.1 MIPS Data Size
Show Data Alignment in MIPS :
3.2.2.2 Data Alignment
3.2.3 REGISTERS
Register set as well as the instruction set.
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.
3.2.3.2 trap register
- SPIM provide trap registes
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.
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
3.2.5.1 MIPS Program Format
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: