SlideShare a Scribd company logo
2
Most read
9
Most read
10
Most read
DISCOVER . LEARN . EMPOWER
MACHINE INSTRUCTIONS
University Institute of
Engineering
DEPARTMENT OF COMPUTER
SCIENCE & ENGINEERING
Bachelor of Engineering (Computer Science
& Engineering)
Subject Name: Computer Organization &
Architecture
Subject Code: CST-252/ITT-252
CHAPTER-1
TOPICS COVERED
Machine level program execution
• Instruction cycle
• Bus cycle
• Machine cycle
2
• Machine Instructions are commands or programs written in machine code of
a machine (computer) that it can recognize and execute.
• A machine instruction consists of several bytes in memory that tells the
processor to perform one machine operation.
• The processor looks at machine instructions in main memory one after
another, and performs one machine operation for each machine instruction.
• The collection of machine instructions in main memory is called a machine
language program.
3
LECTURE-1.2
MACHINE INSTRUCTIONS
[Label:] Mnemonic [Operand, Operand] [; Comments]
• Brackets indicate that a field is optional
• Label is an identifier that is assigned the address of the first byte of the
instruction in which it appears. It must be followed by “:”
• Inclusion of spaces is arbitrary, except that at least one space must be
inserted; no space would lead to an ambiguity.
• Comment field begins with a semicolon “ ; ”
Example:
Here: MOV R5, #25H ; load 25H into R5
4
MACHINE INSTRUCTIONS
FORMAT
5
WHAT HAPPENS DURING INSTRUCTION
EXECUTION?
6
INSTRUCTION REPRESENTATION
7
COMPUTER FUNCTION
• The basic function performed by a computer is execution of a program, which
consists of a set of instructions stored in memory.
• Two steps of Instructions Cycle:
o Fetch
o Execute
8
BASIC INSTRUCTION CYCLE
 Fetch Cycle
• Program Counter (PC) holds address of next instruction to fetch
• Processor fetches instruction from memory location pointed to by PC
• Increment PC
Unless told otherwise
• Instruction loaded into Instruction Register (IR) Computer Organization and Architecture
 Execute Cycle
• Processor interprets instruction and performs required actions, such as:
• Processor - memory
Data transfer between CPU and main memory
• Processor - I/O
Data transfer between CPU and I/O module
• Data processing
Some arithmetic or logical operation on data
• Control
Alteration of sequence of operations o e.g. jump
• Combination of above
9
INSTRUCTION CYCLE
• Bus cycle
The bus cycle is the cycle or time required to make a single read or write
transaction between the cpu and an external device such as external
memory.
• Machine cycle
The machine cycle is the amount of cycles needed to do either a fetch, read
or write operation. more. The read or write may be more than a single bus
cycle if the transaction between the CPU and memory is longer than the
data width fetched or written. For example, on an 8080 machine, the data
width is 8 bits. If the CPU needs to fetch or write 16 bits of data, that will
require two bus cycles.
10
Q1. A basic instruction that can be interpreted by computer has
A. Operand and opcode
B. Decoder and Accumulator
C. Sequence register and decoder
D. None of the above
Q2. In a program using subroutine call instruction, it is necessary
initialize program counter
Clear the accumulator
Reset the microprocessor
Clear the instruction register
11
HOMEWORK
Q3. In generic microprocessor instruction time is
A. Shorter than machine cycle time
B. Larger than machine cycle time
C. Ten times machine cycle time
D. Exactly same as machine cycle time
Answers:1.A,2.D,3.D
12
HOMEWORK
REFERENCES
Reference Books:
1. J.P. Hayes, “Computer Architecture and Organization”, Third Edition.
2. Mano, M., “Computer System Architecture”, Third Edition, Prentice Hall.
3. Stallings, W., “Computer Organization and Architecture”, Eighth Edition, Pearson
Education.
Text Books:
1. Carpinelli J.D,” Computer systems organization &Architecture”, Fourth Edition,
Addison Wesley.
2. Patterson and Hennessy, “Computer Architecture” , Fifth Edition Morgaon
Kauffman.
Reference Website
1. https://www.geeksforgeeks.org/computer-organization-and-architecture-tutorials/
2. https://www.eventhelix.com/RealtimeMantra/FaultHandling/bus_cycles.htm
3. https://stackoverflow.com/questions/10383354/difference-between-machine-
cycle-bus-cycle-and-execution-
cycle#:~:text=The%20bus%20cycle%20is%20the,more%20here.
13
THANK YOU

More Related Content

PPTX
chapter 1 -Basic Structure of Computers.pptx
PPTX
Processor Basics
PPT
lecture 1(1).ppt
PPT
chapter1-basicstructureofcomputers.ppt
PPT
UNIT I.ppt
PPT
chapter 1 -Basic Structure of Computers.ppt
PPT
chapter1-basic-structure-of-computers.ppt
PPT
Basic structure of computers by aniket bhute
chapter 1 -Basic Structure of Computers.pptx
Processor Basics
lecture 1(1).ppt
chapter1-basicstructureofcomputers.ppt
UNIT I.ppt
chapter 1 -Basic Structure of Computers.ppt
chapter1-basic-structure-of-computers.ppt
Basic structure of computers by aniket bhute

Similar to Machine language program execution 1.1.2.pptx (20)

PPTX
Basic Computer Organization and Design
PPT
Chapter1 basic structure of computers
PPTX
Chapter 1 basic structure of computers
PPT
Computer organisation Module 1.ppt
DOCX
Co notes3 sem
PPT
Introduction to-microprocessor
PPT
Introduction to-microprocessor
PPT
basic structure of computers
PPT
chapter1-basic-structure-of-computers.ppt
PPT
chapter1-basic-structure-of-computers.ppt
PPT
chapter 1 -Basic Structure of Computers (1).ppt
PPTX
overview-Microprocessor of 8085 processor
PPTX
Computer organizations and assembly language
PDF
computer organization and architecturebec306c
PDF
Basic Computer Organization and Design
PPT
Basic structure of computers
PPT
Basic structure of computers
PPTX
Computer Organization and Architecture - UNIT I.pptx
PPTX
computer Architecture
PPTX
Lecture004BasicsofthedProcessor (1).pptx
Basic Computer Organization and Design
Chapter1 basic structure of computers
Chapter 1 basic structure of computers
Computer organisation Module 1.ppt
Co notes3 sem
Introduction to-microprocessor
Introduction to-microprocessor
basic structure of computers
chapter1-basic-structure-of-computers.ppt
chapter1-basic-structure-of-computers.ppt
chapter 1 -Basic Structure of Computers (1).ppt
overview-Microprocessor of 8085 processor
Computer organizations and assembly language
computer organization and architecturebec306c
Basic Computer Organization and Design
Basic structure of computers
Basic structure of computers
Computer Organization and Architecture - UNIT I.pptx
computer Architecture
Lecture004BasicsofthedProcessor (1).pptx
Ad

Recently uploaded (20)

PPT
Mechanical Engineering MATERIALS Selection
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPT
Project quality management in manufacturing
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PDF
PPT on Performance Review to get promotions
PPTX
Construction Project Organization Group 2.pptx
DOCX
573137875-Attendance-Management-System-original
PPTX
Lesson 3_Tessellation.pptx finite Mathematics
PPTX
UNIT 4 Total Quality Management .pptx
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
composite construction of structures.pdf
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPTX
bas. eng. economics group 4 presentation 1.pptx
Mechanical Engineering MATERIALS Selection
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
Foundation to blockchain - A guide to Blockchain Tech
Project quality management in manufacturing
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPT on Performance Review to get promotions
Construction Project Organization Group 2.pptx
573137875-Attendance-Management-System-original
Lesson 3_Tessellation.pptx finite Mathematics
UNIT 4 Total Quality Management .pptx
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
UNIT-1 - COAL BASED THERMAL POWER PLANTS
composite construction of structures.pdf
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
bas. eng. economics group 4 presentation 1.pptx
Ad

Machine language program execution 1.1.2.pptx

  • 1. DISCOVER . LEARN . EMPOWER MACHINE INSTRUCTIONS University Institute of Engineering DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Bachelor of Engineering (Computer Science & Engineering) Subject Name: Computer Organization & Architecture Subject Code: CST-252/ITT-252
  • 2. CHAPTER-1 TOPICS COVERED Machine level program execution • Instruction cycle • Bus cycle • Machine cycle 2
  • 3. • Machine Instructions are commands or programs written in machine code of a machine (computer) that it can recognize and execute. • A machine instruction consists of several bytes in memory that tells the processor to perform one machine operation. • The processor looks at machine instructions in main memory one after another, and performs one machine operation for each machine instruction. • The collection of machine instructions in main memory is called a machine language program. 3 LECTURE-1.2 MACHINE INSTRUCTIONS
  • 4. [Label:] Mnemonic [Operand, Operand] [; Comments] • Brackets indicate that a field is optional • Label is an identifier that is assigned the address of the first byte of the instruction in which it appears. It must be followed by “:” • Inclusion of spaces is arbitrary, except that at least one space must be inserted; no space would lead to an ambiguity. • Comment field begins with a semicolon “ ; ” Example: Here: MOV R5, #25H ; load 25H into R5 4 MACHINE INSTRUCTIONS FORMAT
  • 5. 5 WHAT HAPPENS DURING INSTRUCTION EXECUTION?
  • 7. 7 COMPUTER FUNCTION • The basic function performed by a computer is execution of a program, which consists of a set of instructions stored in memory. • Two steps of Instructions Cycle: o Fetch o Execute
  • 8. 8 BASIC INSTRUCTION CYCLE  Fetch Cycle • Program Counter (PC) holds address of next instruction to fetch • Processor fetches instruction from memory location pointed to by PC • Increment PC Unless told otherwise • Instruction loaded into Instruction Register (IR) Computer Organization and Architecture  Execute Cycle • Processor interprets instruction and performs required actions, such as: • Processor - memory Data transfer between CPU and main memory • Processor - I/O Data transfer between CPU and I/O module • Data processing Some arithmetic or logical operation on data • Control Alteration of sequence of operations o e.g. jump • Combination of above
  • 10. • Bus cycle The bus cycle is the cycle or time required to make a single read or write transaction between the cpu and an external device such as external memory. • Machine cycle The machine cycle is the amount of cycles needed to do either a fetch, read or write operation. more. The read or write may be more than a single bus cycle if the transaction between the CPU and memory is longer than the data width fetched or written. For example, on an 8080 machine, the data width is 8 bits. If the CPU needs to fetch or write 16 bits of data, that will require two bus cycles. 10
  • 11. Q1. A basic instruction that can be interpreted by computer has A. Operand and opcode B. Decoder and Accumulator C. Sequence register and decoder D. None of the above Q2. In a program using subroutine call instruction, it is necessary initialize program counter Clear the accumulator Reset the microprocessor Clear the instruction register 11 HOMEWORK
  • 12. Q3. In generic microprocessor instruction time is A. Shorter than machine cycle time B. Larger than machine cycle time C. Ten times machine cycle time D. Exactly same as machine cycle time Answers:1.A,2.D,3.D 12 HOMEWORK
  • 13. REFERENCES Reference Books: 1. J.P. Hayes, “Computer Architecture and Organization”, Third Edition. 2. Mano, M., “Computer System Architecture”, Third Edition, Prentice Hall. 3. Stallings, W., “Computer Organization and Architecture”, Eighth Edition, Pearson Education. Text Books: 1. Carpinelli J.D,” Computer systems organization &Architecture”, Fourth Edition, Addison Wesley. 2. Patterson and Hennessy, “Computer Architecture” , Fifth Edition Morgaon Kauffman. Reference Website 1. https://www.geeksforgeeks.org/computer-organization-and-architecture-tutorials/ 2. https://www.eventhelix.com/RealtimeMantra/FaultHandling/bus_cycles.htm 3. https://stackoverflow.com/questions/10383354/difference-between-machine- cycle-bus-cycle-and-execution- cycle#:~:text=The%20bus%20cycle%20is%20the,more%20here. 13