0% found this document useful (0 votes)
12 views18 pages

9-Addressing modes and Instruction Set-06-01-2025

The document outlines various instruction set groups used in computer architecture, including data transfer, arithmetic, logical, string manipulation, control transfer, and processor control instructions. It details specific instructions within these groups, such as MOV for data transfer, ADD for arithmetic operations, and IN/OUT for input/output operations. Additionally, it mentions instructions for managing program execution and processor control, emphasizing their roles in data handling and program flow.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views18 pages

9-Addressing modes and Instruction Set-06-01-2025

The document outlines various instruction set groups used in computer architecture, including data transfer, arithmetic, logical, string manipulation, control transfer, and processor control instructions. It details specific instructions within these groups, such as MOV for data transfer, ADD for arithmetic operations, and IN/OUT for input/output operations. Additionally, it mentions instructions for managing program execution and processor control, emphasizing their roles in data handling and program flow.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

Instruction set

Instruction set groups


Instruction Set Definition
• The data transfer group includes instructions for moving data between registers,
register and memory, register and stack memory, and accumulator and IO device.
• The arithmetic group includes instructions for addition and subtraction of binary,
BCD and ASCII data, and instructions for multiplication and division of signed and
unsigned binary data.
• The logical group includes instructions for performing logical operations like AND,
OR, Exclusive-OR, Complement, Shift, Rotate, etc.
• The string manipulation group includes instructions for moving string data
between two memory locations and comparing string data word by word or byte
by byte.
• The control transfer group includes instructions to call a procedure / subroutine in
the main program. It also includes instructions to jump from one part of a program
to another part either conditionally or unconditionally (without checking flags).
• The processor control group includes instructions to set / clear the flags, to delay
and halt the processor execution.
Data Transfer Instructions
• Instruction to transfer a word
MOV −Used to copy the byte or word from the
provided source to the provided destination.
PPUSH −Used to put a word at the top of the stack.
POP −Used to get a word from the top of the stack to
the provided location.
PUSHA −Used to put all the registers into the stack.
POPA −Used to get words from the stack to all
registers.
XCHG −Used to exchange the data from two locations.
XLAT −Used to translate a byte in AL using a table in
the memory.
Data Transfer Instructions
Instructions for input and output port transfer
IN −Used to read a byte or word from the provided port to the
accumulator.
OUT −Used to send out a byte or word from the accumulator to the
provided port.
Instructions to transfer the address
LEA −Used to load the address of operand into the provided register.
LDS −Used to load DS register and other register from the memory
LES −Used to load ES register and other register from the memory.
Instructions to transfer flag registers
LAHF −Used to load AH with the low byte of the flag register.
SAHF −Used to store AH register to low byte of the flag register.
PUSHF −Used to copy the flag register at the top of the stack.
POPF −Used to copy a word at the top of the stack to the flag register.
Data Transfer Instruction
• MOV
MOV Instruction
Which of the following are correct?
Arithmetic Instructions
Arithmetic Instructions
ADD Instruction
Logical Instructions
Logical Instructions
String Instructions
Program Execution Transfer Instructions
(Branch and Loop Instructions)
Program Execution Transfer Instructions
(Branch and Loop Instructions)
Processor Control Instructions
Iteration Control Instructions
Interrupt Instructions

You might also like