Question: 1) Write code using the available addressing modes. The variables data size and address are char a is 0x100, short b is 0x200, and

1) Write code using the available addressing modes. The variables data size and address are char a is 0x100,

1) Write code using the available addressing modes. The variables data size and address are char a is 0x100, short b is 0x200, and int c is 0x300. Set up registers at the beginning using loads. Write a comment after each line like I did in class. Also pay attention to the type of GPR c = (a[7] *b[3]) /a[2] a. (0.3) GPR only using register direct, immediate addressing and register indirect. b. (3,3) GPR only using register direct, immediate addressing and register indirect with displacement. The starting address should be in a register and use displacement for offset (3,3) GPR only using register direct, immediate addressing and register indirect with index register. (Find the offset in a separate register to use in the addressing mode) c.

Step by Step Solution

3.49 Rating (152 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a Heres code using GPR General Purpose Registers with register direct immediate addressing and regis... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related General Management Questions!