SlideShare a Scribd company logo
Multiplication and Division
Instructions
MUL and IMUL
• Because signed and unsigned multiplication
lead to different results, there.re two
multiplication Instructions: MUL for unsigned
and IMUL multiplication for signed
multiplication. These instructions multiply
bytes or words. If two bytes are multiplied,
the product is word (16 bits). If two words
are multiplied, the product is a double word
(32 bits)
• Byte form
For byte multiplication, one number is contained In the source and the
other is assumed to be in AL. The 16-bit product will be in AX. ·The
source may be a byte register or memory byte, but not a constant.
• Word Form
For word multiplication, one number is contained in the source and
the other is assumed to be in AX. The most significant 16 bits of the
double word product will be in DX, and the least significant 16 bits will
be in AX (we sometimes write this as DX:AX.). The source may be a 16-
bit register or memory word, but not a constant. For multiplication of
positive numbers (0 in the most significant bit), MUL and lMUL give the
same result.
Multiplication and Division Instructions.pptx
• Write a procedure FACTORIAL that will compute N! for a positive integer
N. The procedure should receive N in CX and return N! in AX. Suppose that
overflow does not occur.
DIV and IDIV
• When division Is performed, we obtain two
results, the quotient and the remainder. As
with multiplication, there are separate
Instructions for unsigned and signed division;
DIV (divide) Is used for unsigned division and
IDIV-(lnteger dlvlde)-for signed division.
Byte Form
In this form, the divisor is an 8-bit register or memory
byte. The 16-bit dividend is assumed to be in AX. After
division, the 8-bit quotient is in AL and the 8-bit
remainder Is in AH. The divisor may not be a constant.
Word Form
Here the divisor is a 16-bit register or memory word. The
32-bit - dividend Is assumed to be In DX:AX, After
division, the 16-bit quotient is In AX and the 16 bit
remainder is In DX. The divisor may not be a constant.

More Related Content

PPTX
Introduction to computer Architecture. this will be helpful for Information T...
rmidetprogress
 
PPTX
assembly language programming organization of IBM PC chapter 9 part-1(MULTIPL...
Bilal Amjad
 
PPTX
Arithmetic Operations in Assembly Language: Fundamentals & Implementation
Marcel David
 
PPTX
Chapter 3 8086 ins2 math
HarshitParkar6677
 
PPTX
Chap3 8086 artithmetic
HarshitParkar6677
 
PPTX
8086 ins2 math
HarshitParkar6677
 
PPTX
Assembly language
Usama ahmad
 
PPTX
Arithmetic instrctions
HarshitParkar6677
 
Introduction to computer Architecture. this will be helpful for Information T...
rmidetprogress
 
assembly language programming organization of IBM PC chapter 9 part-1(MULTIPL...
Bilal Amjad
 
Arithmetic Operations in Assembly Language: Fundamentals & Implementation
Marcel David
 
Chapter 3 8086 ins2 math
HarshitParkar6677
 
Chap3 8086 artithmetic
HarshitParkar6677
 
8086 ins2 math
HarshitParkar6677
 
Assembly language
Usama ahmad
 
Arithmetic instrctions
HarshitParkar6677
 

Similar to Multiplication and Division Instructions.pptx (20)

PPTX
8086 architecture
Self-Employed
 
PPT
Chapter 5
yashshailesh
 
PDF
Digital Electronics Codes.pdf
PrasenjitKumarDas2
 
PDF
Topic 6 - Programming in Assembly Language_230517_115118.pdf
ezaldeen2013
 
PPT
Intel 8086
Vatsal Dave
 
PDF
8085 Instructions.pdf
SaurabhPorwal14
 
PPTX
microcomputer architecture - Arithmetic instruction
ramya marichamy
 
PDF
numbering system binary and decimal hex octal
noor300491
 
PDF
110 ec0644
Subhajit Sahu
 
PDF
itft-Instruction set-of-8085
Shifali Sharma
 
PPTX
Mastering Assembly Language: Programming with 8086
sravanithonta79
 
PPT
Unit 2 8086 Instruction set.ppt notes good
SahilSingh866567
 
PPT
12117188.ppt
Harshal Vaidya
 
PPT
12117188.ppt
Harshal Vaidya
 
DOCX
computer organization and assembly language.docx
alisoftwareengineer1
 
PPT
microprocessor Lec 02 mic
iqbal ahmad
 
PDF
15CS44 MP & MC Module 2
RLJIT
 
PPT
Assembly Language Basics
Education Front
 
PPT
SAURABH MITRA-8086 MICROPROCESSOR
SAURABH MITRA
 
PPTX
Combinational Circuits digital design logic
Anil Yadav
 
8086 architecture
Self-Employed
 
Chapter 5
yashshailesh
 
Digital Electronics Codes.pdf
PrasenjitKumarDas2
 
Topic 6 - Programming in Assembly Language_230517_115118.pdf
ezaldeen2013
 
Intel 8086
Vatsal Dave
 
8085 Instructions.pdf
SaurabhPorwal14
 
microcomputer architecture - Arithmetic instruction
ramya marichamy
 
numbering system binary and decimal hex octal
noor300491
 
110 ec0644
Subhajit Sahu
 
itft-Instruction set-of-8085
Shifali Sharma
 
Mastering Assembly Language: Programming with 8086
sravanithonta79
 
Unit 2 8086 Instruction set.ppt notes good
SahilSingh866567
 
12117188.ppt
Harshal Vaidya
 
12117188.ppt
Harshal Vaidya
 
computer organization and assembly language.docx
alisoftwareengineer1
 
microprocessor Lec 02 mic
iqbal ahmad
 
15CS44 MP & MC Module 2
RLJIT
 
Assembly Language Basics
Education Front
 
SAURABH MITRA-8086 MICROPROCESSOR
SAURABH MITRA
 
Combinational Circuits digital design logic
Anil Yadav
 
Ad

Recently uploaded (20)

PPTX
How to Manage Global Discount in Odoo 18 POS
Celine George
 
PPTX
Skill Development Program For Physiotherapy Students by SRY.pptx
Prof.Dr.Y.SHANTHOSHRAJA MPT Orthopedic., MSc Microbiology
 
PPTX
Tips Management in Odoo 18 POS - Odoo Slides
Celine George
 
PPTX
CARE OF UNCONSCIOUS PATIENTS .pptx
AneetaSharma15
 
PDF
3.The-Rise-of-the-Marathas.pdfppt/pdf/8th class social science Exploring Soci...
Sandeep Swamy
 
PPTX
vedic maths in python:unleasing ancient wisdom with modern code
mistrymuskan14
 
PPTX
Nursing Management of Patients with Disorders of Ear, Nose, and Throat (ENT) ...
RAKESH SAJJAN
 
PPTX
NOI Hackathon - Summer Edition - GreenThumber.pptx
MartinaBurlando1
 
PPTX
Software Engineering BSC DS UNIT 1 .pptx
Dr. Pallawi Bulakh
 
DOCX
Action Plan_ARAL PROGRAM_ STAND ALONE SHS.docx
Levenmartlacuna1
 
PPTX
TEF & EA Bsc Nursing 5th sem.....BBBpptx
AneetaSharma15
 
PDF
1.Natural-Resources-and-Their-Use.ppt pdf /8th class social science Exploring...
Sandeep Swamy
 
PPTX
Strengthening open access through collaboration: building connections with OP...
Jisc
 
PDF
2.Reshaping-Indias-Political-Map.ppt/pdf/8th class social science Exploring S...
Sandeep Swamy
 
PPT
Python Programming Unit II Control Statements.ppt
CUO VEERANAN VEERANAN
 
PPTX
PPTs-The Rise of Empiresghhhhhhhh (1).pptx
academysrusti114
 
PDF
Types of Literary Text: Poetry and Prose
kaelandreabibit
 
PPTX
Care of patients with elImination deviation.pptx
AneetaSharma15
 
PDF
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
PDF
PG-BPSDMP 2 TAHUN 2025PG-BPSDMP 2 TAHUN 2025.pdf
AshifaRamadhani
 
How to Manage Global Discount in Odoo 18 POS
Celine George
 
Skill Development Program For Physiotherapy Students by SRY.pptx
Prof.Dr.Y.SHANTHOSHRAJA MPT Orthopedic., MSc Microbiology
 
Tips Management in Odoo 18 POS - Odoo Slides
Celine George
 
CARE OF UNCONSCIOUS PATIENTS .pptx
AneetaSharma15
 
3.The-Rise-of-the-Marathas.pdfppt/pdf/8th class social science Exploring Soci...
Sandeep Swamy
 
vedic maths in python:unleasing ancient wisdom with modern code
mistrymuskan14
 
Nursing Management of Patients with Disorders of Ear, Nose, and Throat (ENT) ...
RAKESH SAJJAN
 
NOI Hackathon - Summer Edition - GreenThumber.pptx
MartinaBurlando1
 
Software Engineering BSC DS UNIT 1 .pptx
Dr. Pallawi Bulakh
 
Action Plan_ARAL PROGRAM_ STAND ALONE SHS.docx
Levenmartlacuna1
 
TEF & EA Bsc Nursing 5th sem.....BBBpptx
AneetaSharma15
 
1.Natural-Resources-and-Their-Use.ppt pdf /8th class social science Exploring...
Sandeep Swamy
 
Strengthening open access through collaboration: building connections with OP...
Jisc
 
2.Reshaping-Indias-Political-Map.ppt/pdf/8th class social science Exploring S...
Sandeep Swamy
 
Python Programming Unit II Control Statements.ppt
CUO VEERANAN VEERANAN
 
PPTs-The Rise of Empiresghhhhhhhh (1).pptx
academysrusti114
 
Types of Literary Text: Poetry and Prose
kaelandreabibit
 
Care of patients with elImination deviation.pptx
AneetaSharma15
 
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
PG-BPSDMP 2 TAHUN 2025PG-BPSDMP 2 TAHUN 2025.pdf
AshifaRamadhani
 
Ad

Multiplication and Division Instructions.pptx

  • 2. MUL and IMUL • Because signed and unsigned multiplication lead to different results, there.re two multiplication Instructions: MUL for unsigned and IMUL multiplication for signed multiplication. These instructions multiply bytes or words. If two bytes are multiplied, the product is word (16 bits). If two words are multiplied, the product is a double word (32 bits)
  • 3. • Byte form For byte multiplication, one number is contained In the source and the other is assumed to be in AL. The 16-bit product will be in AX. ·The source may be a byte register or memory byte, but not a constant. • Word Form For word multiplication, one number is contained in the source and the other is assumed to be in AX. The most significant 16 bits of the double word product will be in DX, and the least significant 16 bits will be in AX (we sometimes write this as DX:AX.). The source may be a 16- bit register or memory word, but not a constant. For multiplication of positive numbers (0 in the most significant bit), MUL and lMUL give the same result.
  • 5. • Write a procedure FACTORIAL that will compute N! for a positive integer N. The procedure should receive N in CX and return N! in AX. Suppose that overflow does not occur.
  • 6. DIV and IDIV • When division Is performed, we obtain two results, the quotient and the remainder. As with multiplication, there are separate Instructions for unsigned and signed division; DIV (divide) Is used for unsigned division and IDIV-(lnteger dlvlde)-for signed division.
  • 7. Byte Form In this form, the divisor is an 8-bit register or memory byte. The 16-bit dividend is assumed to be in AX. After division, the 8-bit quotient is in AL and the 8-bit remainder Is in AH. The divisor may not be a constant. Word Form Here the divisor is a 16-bit register or memory word. The 32-bit - dividend Is assumed to be In DX:AX, After division, the 16-bit quotient is In AX and the 16 bit remainder is In DX. The divisor may not be a constant.