Beruflich Dokumente
Kultur Dokumente
CpE 321
Computer System Organization with
Assembly Language
Laboratory
Laboratory Exercise # 3
Advance Arithmetic
Student Name
(LN, FN MI)
Subject Teacher
Date Submitted
Score
Objective:
Material:
Emulator 8086
Introduction:
Mul Instruction
The mul instruction multiplies an 8-bit, 16-bit operand by either al, ax.
Implied Operands:
Div Instruction
The div instruction performs 8-bit, 16-bit division on integers
A single operand is supplied which is assumed to be the divisor.
Instruction formats are:
DIV r/m8 ; r-register or memory[8-bits]
DIV r/m16 ; r-register or memory[16-bit]
Default Operands:
Conditional Jump:
Following are the conditional jump instructions used on signed data used for
arithmetic operations.
Following are the conditional jump instructions used on unsigned data used for
logical operations .
The following conditional jump instructions have special uses and check the
value of flags.
Sample Program:
.data
multiplydb 13,10, ' MULTIPLICATION $'
firstdb 13,10,10, ' Enter First Number: $'
seconddb 13,10, ' Enter Second Number: $'
answerdb 13,10,10,10, ' The product is $'
num1db ?
Output:
Questions:
1. What particular commands did you use to make a selection?
Answer:
3. How did you check if the input of the user is a number or a letter?
Answer:
4. In the given task what particular code or part of the code you have
difficulty dealing with?
Answer:
5. How did you solve the difficulty you encountered during making the
program?
Answer:
Observations: