341_Homework_2.pdf - CECS 341 Computer Architecture 2018 R....

This preview shows page 1 - 2 out of 2 pages.

The preview shows page 1 - 2 out of 2 pages.
CECS 341Computer Architecture© 2018 R. W. AllisonHomework 2Page 1Homework #2Name_____________________________SID_____________________________Using this sheet as the cover sheet, submit solutions for these problems on separate sheets of paper, clearly showing all your work.1.A two-word instruction is stored at location 0x03C7 with its address field at location 0x03C8 (i.e. trailing word). The addressfield has a value of 0x8211.A processor register R1 contains the value 0x018A. Calculate the effective address (EA) if theaddressing mode of the instruction is (a) direct; (b) immediate; (c) PC relative; (d) register indirect; (e) indexed with R1 as theindex register.Show your work and the 16-bit hexadecimal result of the EA calculation.2.How many times will a CPU have to reference memory in order to fetch and execute a two-word indirect addressing modeinstruction(a)if the instruction is an ADD instruction requiring one operand from the memory location referenced by the indirectaddressing-mode and the other operand from a CPU register, returning the result of the ADD back to the memory location (i.e. a“read-modify-write” type instruction)?How many times will the CPU have to reference memory in order to fetch and execute atwo-word indirect addressing mode instruction(b)if the instruction is a JMP instruction?

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 2 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
Hernandez
Tags
Computer Architecture, Central processing unit, Processor register, Addressing mode

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture