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, 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
a Heres code using GPR General Purpose Registers with register direct immediate addressing and regis... View full answer
Get step-by-step solutions from verified subject matter experts
