This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: language .SPACE DirectiveAllocates space of n uninitialized bytes in the data segment .DATA var1: .BYTE var2: .HALF var3: .WORD var4: .FLOAT var5: .DOUBLE 1.5e-10 str1: .ASCII str2: .ASCIIZ array: .SPACE "A String\n" "NULL Terminated String" 100 'A', 'E', 127, -1, '\n'-10, 0xffff 0x12345678 12.3, -0.1 Memory is viewed as an array of bytes with addresses Byte Addressing: address points to a byte in memory Words occupy 4 consecutive bytes in memory MIPS instructions and integers occupy 4 bytes Alignment: address is a multiple of size Word address should be a multiple of 4 Least significant 2 bits of address should be 00 Halfword address should be a multiple of 2 .ALIGN n directive...
View Full Document
- Fall '08
- ASCII, null character