machine code and the fetch-execute cycle

45
Machine Code and the Fetch-Execute Cycle

Upload: nibal

Post on 14-Feb-2016

45 views

Category:

Documents


3 download

DESCRIPTION

Machine Code and the Fetch-Execute Cycle. Fetch-Execute Cycle. Fetch the next instruction Decode Execute It. ALU. 1. FETCH. ALU. 1. FETCH. ALU. 1. FETCH. ALU. 1. FETCH. ALU. 1. FETCH. ALU. 1. DECODE. ALU. 1. DECODE. Instruction Decoded. ALU. 1. EXECUTE. ALU. 2. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Machine Code and  the Fetch-Execute Cycle

Machine Code and the Fetch-Execute Cycle

Page 2: Machine Code and  the Fetch-Execute Cycle

Fetch-Execute Cycle

• Fetch the next instruction• Decode• Execute It

Page 3: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 00

001A 00

001B 00

001C 00

MAR

PC

MBR

CIROp-Code Operand

ACCALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

Page 4: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 00

001A 00

001B 00

001C 00

MAR

PC

2000

MBR

CIROp-Code Operand

ACCALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

1 FETCH

Page 5: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 00

001A 00

001B 00

001C 00

MAR

2000

PC

2000

MBR

CIROp-Code Operand

ACCALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

1 FETCH

Page 6: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 00

001A 00

001B 00

001C 00

MAR

2000

PC

2002

MBR

CIROp-Code Operand

ACCALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

1 FETCH

Page 7: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 00

001A 00

001B 00

001C 00

MAR

2000

PC

2002

MBR

CIROp-Code Operand

ACCALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

1 FETCH

Page 8: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 00

001A 00

001B 00

001C 00

MAR

2000

PC

2002

MBR

100A

CIROp-Code Operand

ACCALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

FETCH1

Page 9: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 00

001A 00

001B 00

001C 00

MAR

2000

PC

2002

MBR

100A

CIROp-Code Operand

0001 0000 0000 1010

ACCALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

1 DECODE

Page 10: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 00

001A 00

001B 00

001C 00

MAR

2000

PC

2002

MBR

100A

CIROp-Code Operand

0001 0000 0000 1010

ACCALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

DECODE

Instruction Decoded

1

Page 11: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 00

001A 00

001B 00

001C 00

MAR

2000

PC

2002

MBR

100A

CIROp-Code Operand

0001 0000 0000 1010

ACC

0AALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

EXECUTE1

Page 12: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 00

001A 00

001B 00

001C 00

MAR

2002

PC

2002

MBR

CIROp-Code Operand

ACC

0AALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

2 FETCH

Page 13: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 00

001A 00

001B 00

001C 00

MAR

2002

PC

2004

MBR

CIROp-Code Operand

ACC

0AALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

2 FETCH

Page 14: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 00

001A 00

001B 00

001C 00

MAR

2002

PC

2004

MBR

CIROp-Code Operand

ACC

0AALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

2 FETCH

Page 15: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 00

001A 00

001B 00

001C 00

MAR

2002

PC

2004

MBR

8019

CIROp-Code Operand

ACC

0AALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

FETCH2

Page 16: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 00

001A 00

001B 00

001C 00

MAR

2002

PC

2004

MBR

8019

CIROp-Code Operand

1000 0000 0001 1001

ACC

0AALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

2 DECODE

Page 17: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 00

001A 00

001B 00

001C 00

MAR

2000

PC

2004

MBR

8019

CIROp-Code Operand

1000 0000 0001 1001

ACC

0AALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

DECODE

Instruction Decoded

2

Page 18: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 00

001A 00

001B 00

001C 00

MAR

0019

PC

2004

MBR

0A

CIROp-Code Operand

1000 0000 0001 1001

ACC

0AALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

EXECUTE2

Page 19: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 0A

001A 00

001B 00

001C 00

MAR

0019

PC

2004

MBR

0A

CIROp-Code Operand

1000 0000 0001 1001

ACC

0AALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

2 EXECUTE

Page 20: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 0A

001A 00

001B 00

001C 00

MAR

2004

PC

2004

MBR

CIROp-Code Operand

ACCALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

3 FETCH

Page 21: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 0A

001A 00

001B 00

001C 00

MAR

2004

PC

2006

MBR

CIROp-Code Operand

ACCALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

3 FETCH

Page 22: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 0A

001A 00

001B 00

001C 00

MAR

2004

PC

2006

MBR

CIROp-Code Operand

ACCALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

3 FETCH

Page 23: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 0A

001A 00

001B 00

001C 00

MAR

2004

PC

2006

MBR

1005

CIROp-Code Operand

ACCALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

FETCH3

Page 24: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 0A

001A 00

001B 00

001C 00

MAR

2004

PC

2006

MBR

1005

CIROp-Code Operand

0001 0000 0000 0101

ACCALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

3 DECODE

Page 25: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 0A

001A 00

001B 00

001C 00

MAR

2004

PC

2006

MBR

1005

CIROp-Code Operand

0001 0000 0000 0101

ACCALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

DECODE

Instruction Decoded

3

Page 26: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 0A

001A 00

001B 00

001C 00

MAR

2004

PC

2006

MBR

1005

CIROp-Code Operand

0001 0000 0000 0101

ACC

05ALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

EXECUTE3

Page 27: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 0A

001A 00

001B 00

001C 00

MAR

2006

PC

2006

MBR

CIROp-Code Operand

ACC

05ALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

4 FETCH

Page 28: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 0A

001A 00

001B 00

001C 00

MAR

2006

PC

2008

MBR

CIROp-Code Operand

ACC

05ALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

4 FETCH

Page 29: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 0A

001A 00

001B 00

001C 00

MAR

2006

PC

2008

MBR

CIROp-Code Operand

ACC

05ALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

4 FETCH

Page 30: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 0A

001A 00

001B 00

001C 00

MAR

2006

PC

2008

MBR

4019

CIROp-Code Operand

ACC

05ALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

FETCH4

Page 31: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 0A

001A 00

001B 00

001C 00

MAR

2006

PC

2008

MBR

4019

CIROp-Code Operand

0100 0000 0001 1001

ACC

05ALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

4 DECODE

Page 32: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 0A

001A 00

001B 00

001C 00

MAR

2006

PC

2008

MBR

4019

CIROp-Code Operand

0100 0000 0001 1001

ACC

05ALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

DECODE

Instruction Decoded

4

Page 33: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 0A

001A 00

001B 00

001C 00

MAR

019

PC

2008

MBRCIR

Op-Code Operand

0100 0000 0001 1001

ACC

05ALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

EXECUTE4

Page 34: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 0A

001A 00

001B 00

001C 00

MAR

019

PC

2008

MBRCIR

Op-Code Operand

0100 0000 0001 1001

ACC

05ALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

EXECUTE4

Page 35: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 0A

001A 00

001B 00

001C 00

MAR

019

PC

2008

MBR

0A

CIROp-Code Operand

0100 0000 0001 1001

ACC

05ALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

EXECUTE4

Page 36: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 0A

001A 00

001B 00

001C 00

MAR

019

PC

2008

MBR

0A

CIROp-Code Operand

0100 0000 0001 1001

ACCALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

EXECUTE4

0A + 05 = 0F

Page 37: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 0A

001A 00

001B 00

001C 00

MAR

019

PC

2008

MBR

0A

CIROp-Code Operand

0100 0000 0001 1001

ACC

0FALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

EXECUTE4

Page 38: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 0A

001A 00

001B 00

001C 00

MAR

2008

PC

2008

MBR

CIROp-Code Operand

ACC

0FALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

5 FETCH

Page 39: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 0A

001A 00

001B 00

001C 00

MAR

2008

PC

2010

MBR

CIROp-Code Operand

ACC

0FALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

5 FETCH

Page 40: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 0A

001A 00

001B 00

001C 00

MAR

2008

PC

2010

MBR

CIROp-Code Operand

ACC

0FALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

5 FETCH

Page 41: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 0A

001A 00

001B 00

001C 00

MAR

2008

PC

2010

MBR

801A

CIROp-Code Operand

ACC

0FALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

FETCH5

Page 42: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 0A

001A 00

001B 00

001C 00

MAR

2008

PC

2010

MBR

801A

CIROp-Code Operand

1000 0000 0001 1100

ACC

0FALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

5 DECODE

Page 43: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 0A

001A 00

001B 00

001C 00

MAR

2008

PC

2010

MBR

801A

CIROp-Code Operand

1000 0000 0001 1100

ACC

0FALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

DECODE

Instruction Decoded

5

Page 44: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 0A

001A 00

001B 00

001C 00

MAR

001A

PC

2010

MBR

0F

CIROp-Code Operand

1000 0000 0001 1100

ACC

0FALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

5 EXECUTE

Page 45: Machine Code and  the Fetch-Execute Cycle

Instruction Memory

2000 100A (LOAD #10)

2002 8019 (STORE 25)

2004 1005 (LOAD #05)

2006 4019 (ADD 25)

2008 801A (STORE 26)

Data Memory

0018 00

0019 0A

001A 0F

001B 00

001C 00

MAR

001A

PC

2010

MBR

0F

CIROp-Code Operand

1000 0000 0001 1100

ACC

0FALU

PC Program Counter

MAR Memory Address Register

MBR Memory Buffer Register

CIR Current Instruction Register

ALU Arithmetic and Logic Unit

ACC Accumulator

5 EXECUTE