CSCE 2214 Lecture Notes - Lecture 12: Machine Code, Operand, Louisiana Baptist University

64 views2 pages

Document Summary

Instruction / load and store examples / loading. And storing bytes / loading and storing half. Here the base address is s3 and the offset is 24. The data in the address of 24 + s3 is to be loaded into the register t0. If the address of s3 is 0x12004094 then the address to be read from will be 0x12004094 + 24(in decimal) which is 0x120040ac. G is in , h is in , and the base address of a is in. The contents in the address of a + 8 are to be read from and added to the contents in h. this result is to be stored into g. Since memory addresses are given in the unit of byte the offset must be multiplied by 4 to get 32 lw , 32() add , , . Again, h is in , and the base address of a is in .

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents