Docsity

Instruction Cycle-Assembly Language, Microprocessors and Computer Architecture-Lecture Slides, Slides of Computer Architecture and Organization

Partial preview of the text

Download Instruction Cycle-Assembly Language, Microprocessors and Computer Architecture-Lecture Slides and more Slides Computer Architecture and Organization in PDF only on Docsity!

Instruction Cycle z

Revision

z

Fetch

z

Execute

z

Interrupt

Indirect Cycle z

May require memory access to fetchoperands

z

Indirect addressing requires more memoryaccesses

z

Can be thought of as additional instructionsubcycle

Instruction Cycle State Diagram

Data Flow (Instruction Fetch) z

Depends on CPU design

z

In general:

z

Fetch z

PC contains address of next instruction z Address moved to MAR z Address placed on address bus z Control unit requests memory read z Result placed on data bus, copied to MBR,then to IR z Meanwhile PC incremented by 1

Data Flow (Fetch Diagram)

Data Flow (Indirect Diagram)

Data Flow (Interrupt)

z Simple z Predictable z Current PC saved to allow resumption afterinterrupt z Contents of PC copied to MBR z Special memory location (e.g. stack pointer)loaded to MAR z MBR written to memory z PC loaded with address of interrupt handlingroutine z Next instruction (first of interrupt handler) can befetched

Data Flow (Interrupt Diagram)