3.1 Experiment No.:03 3.2 Experiment Name: Experimental Study of 8 Bit Subtraction, Multiplication, and Division and Get
3.1 Experiment No.:03 3.2 Experiment Name: Experimental Study of 8 Bit Subtraction, Multiplication, and Division and Get
3.1 Experiment No.:03 3.2 Experiment Name: Experimental Study of 8 Bit Subtraction, Multiplication, and Division and Get
:03
3.2 Experiment name: Experimental Study of 8 bit Subtraction, Multiplication, and Division and get
familiar with MASM using EMU- 8086 Software
3.3 Objectives:
3.4 Theory:
In 8086 microprocessor four general purpose registers (AX, BX, CX, DX) are being used to perform
different arithmetic and logic operations.
Subtraction between registers can also be held with proper instruction and that is
SUB AX, BX.
For borrow operation we use opcode SBB. Example: SBB AX, BX.
The Microsoft Macro Assembler (MASM) is an x86 assembler that uses the Intel
syntax for MS-DOS and Microsoft Windows. Beginning with MASM 8.0, there are
two versions of the assembler: One for 16-bit & 32-bit assembly sources, and
another (ML64) for 64-bit sources only.
3.6 Procedure
3.7 Program
3.7.1 Multiplication:
MUL CX
3.7.2 Division
DIV CX
3.7.3 Subtraction
SBB AX,CX
3.8 Table :
The experiment have been about the study of 8 bit division, multiplication, subtraction using EMU-8086
software. The registers of 8086 are 16 bit. For the subtraction SBB instructions have been used to
calculate with carry. The machine code that has been found in the emulator software, and recorded in
the table(3.8). This experiment has been successfully completed. Using MASM a square asterisk is
printed in EMU-8086 software shown in the figure 3.6. To perform this task nested loop is used inside
the assembly languages. The output shown in the figure executed perfectly.
Rajshahi University of Engineering
& Technology (RUET)
Experiment no: 03
Name of the experiment: Experimental Study of 8 bit Subtraction, Multiplication,
Division, using EMU- 8086 Software and get familiar with MASM using EMU- 8086
Software
Submitted by-
Name: Afser Jani Rabby
Roll no: 1601042
Section: A
Session: 2016-2017