This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: add Address_of_twelve, Address of twelve, 11 done B. .data ints: .byte 0:25 Address_of_twelve: .word elenum: .word .text __start: la Address_of_twelve, Chars mul elenum, 11,4 #this calculates the offset since the array consists of ints add Address_of_twelve, Address of twelve, elenum done Chp.8 8.1 An instruction would require bits if two-address format were used in MAL. 8.2 Register $12 will have . . After the code it executed 8.3 lw $8, label This instruction means that the contents of label are stored in $8 la $8, label This instruction means that the address of label is stores in $8 8.4 In SAL, .data A: .word B: .word C: .word I: .word 1 .text __start: For: bgt I, 20, End add A, A, B bgt A, 5, Next move C, A Next: add I, I, 1 b For End: done In MAL, .data...
View Full Document
This note was uploaded on 05/28/2011 for the course EEC 070 taught by Professor Chuah,c during the Winter '08 term at UC Davis.
- Winter '08