Types of operations in machine instruction

sheiblu 717 views 17 slides Dec 05, 2017
Slide 1
Slide 1 of 17
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17

About This Presentation

Here is describe The types of operation in machine instruction .


Slide Content

Computer Architecture And Organization Presentation Presenting To Sheikh Shah Mohammad Motiur Rahman Lecturer , Department of Software Engineering Daffodil International University Presenting By Ashraful Islam Sheiblu Id:152-35-1129 Sec : B

Topic Types of operations in machine instruction Types of operations in machine instruction 2

Types of operations Data transfer Arithmetic Logical Conversion I/O Transfer of control Types of operations in machine instruction 3

Data transfer Processor Actions Transfer data from one location to another. If memory is involved: Determine memory address Perform virtual-to-actual-memory address transformation Check cache Initiate memory read/write Types of operations in machine instruction 4

Data transfer operation Name Move Store Load Exchange Clear Set Push Pop Types of operations in machine instruction 5

Data transfer Operation Operation Name Description Move (transfer) Transfer word or block from source to destination Store Transfer word from processor to memory Load (fetch) Transfer word from memory to processor Exchange Swap contents of source and destination Set Transfer word of 1s to destination Push Transfer word from source to top of stack Pop Transfer word from top of stack to destination Clear (reset) Transfer word of 0s to destination Types of operations in machine instruction 6

Arithmetic Processor Actions May involve data transfer , before and/or after Arithmetic Perform function in ALU Set condition codes and flags Types of operations in machine instruction 7

Arithmetic Operation Name Add Subtract Multiply Divide Absolute Negate Increment Decrement Types of operations in machine instruction 8

Arithmetic Operation Operation Name Description Add Compute sum of two operands Subtract Compute difference of two operands Multiply Compute product of two operands Divide Compute quotient of two operands Absolute Replace operand by its absolute value Negate Change sign of operand Increment Add 1 to operand Decrement Subtract 1 from operand Types of operations in machine instruction 9

Logical Operation Name And Or Not Exclusive Compare Set Control Variables Shift Rotate LOGICAL PROCESS ACTION Same as arithmetic Types of operations in machine instruction 10

Logical Operation Operation Name Description AND Perform logical AND OR Perform logical OR NOT Perform logical NOT Exclusive-OR Perform logical XOR Test Test specified condition; set flag(s) based on outcome Shift Left (right) shift operand, introducing constants at end Rotate Left (right) shift operand , with wraparound end Types of operations in machine instruction 11

Conversion Operation Name Translate Convert Conversion Processor Actions Similar to arithmetic and logical . May involve special logic to perform conversion Types of operations in machine instruction 12

Input / Output ( i /o ) Operation Name Input (read) Output(read) Start I/O Test I/O Input / Output ( i /o ) Processor Actions Issue command to I/O module If memory-mapped I/O , determine memory-mapped address Types of operations in machine instruction 13

Input / Output ( i /o ) Operation Name Description Input (read) Transfer data from specified I/O port or device to destination. Output (write) Transfer data from specified source to I/O port or device. Types of operations in machine instruction 14

Transfer of Control Name Jump ( branch) Jump Conditional Jump to Subroutine Return Execute Skip Skip Conditional No Operation Transfer of Control Processor Actions Update program counter . For subroutine call/return , manage parameter passing and linkage Types of operations in machine instruction 15

Transfer of Control Operation Operation Name Description Jump Unconditional transfer; load PC with specified address . Return Replace contents of PC and other register from known location. Execute Fetch operand from specified location and execute as instruction; do not modify PC. Skip Increment PC to skip next instruction . No operation No operation is performed, but program execution is continued. Types of operations in machine instruction 16

Thank You Types of operations in machine instruction 17