a) Addition: i)16 bit addition: AIM: - To write an assembly language program for Addition of two 16-bit numbers APPARATUS: 1 8086 microprocessor kit/MASM
Previous PDF | Next PDF |
[PDF] Programs for 16 bit arithmetic operations for 8086 - NARSIMHA
a) Addition: i)16 bit addition: AIM: - To write an assembly language program for Addition of two 16-bit numbers APPARATUS: 1 8086 microprocessor kit/MASM
[PDF] ARITHMETIC OPERATIONS A 16 BIT ADDITION
AIM : Write and execute an assembly language program to 8086 processor to add, subtract and multiply two 16 bit unsigned numbers EQUIPMENT REQUIRED:
[PDF] 1 PROGRAMS FOR ARITHMETIC OPERATION A 16 BIT ADDITION
Programs for 16 bit arithmetic operations of 8086 (using various addressing modes) perform addition/ subtraction/ multiplication/ division and store the sum/
[PDF] ADDITION & SUBTRACTION 11 OBJECTIVE To add and subtract
To find the sum of a series of 8-bit or 16 bit numbers in a given array of 6 numbers 3 2 RESOURCES The 8086 Microprocessor kit, Power Supply 3 3 PROGRAM
[PDF] LABORATORY MANUAL - Muffakham Jah College of Engineering
(a) Program for addition/subtraction of two 16 bit numbers (b) Program for MASM for all instructions on each processor beginning with 8086 To assemble the
[PDF] I 8086 Microprocessor Programs using Sof - SVCET
1 ALPs (8086) for addition and subtraction 2 a) ALPs (8086) for multiplication and Division b) ALPs (8086) to determine GCD and LCM of two 16-bit numbers
[PDF] LAB MANUAL - DECCAN COLLEGE OF ENGINEERING AND
Decimal Subtraction Of Two 8-Bit Numbers, Sum is 16-Bit 29 6 A 16 bit program counter (PC) • A 16 bit stack Steps to Execute the Program on 8085 Microprocessor Kit MASM for all instructions on each processor beginning with 8086
[PDF] MICROPROCESSOR - MGMs JNEC, Aurangabad
16 Study of 8086 microprocessor and emulator III Quiz on the subject IV Aim : To write assembly language program for addition of two 16 bit numbers
[PDF] MPMC - MGMs JNEC, Aurangabad
8bit 16bit addition ii The microprocessor can read/write 16 bit data from or to ______ environment for assembly language programming for 8086
[PDF] 8 – BIT ADDITION - SRM University
To perform the 8 bit binary addition using 8085 Thus the above program is executed properly To obtain the sum of two numbers ( 8 or 16 bit) using 8086
[PDF] 16 bit division program in 8086
[PDF] 16 eur 50 en lettre
[PDF] 16 hundred hours
[PDF] 16 inch macbook pro
[PDF] 16 weeks pregnant blood in discharge
[PDF] 16 weeks pregnant blood in stool
[PDF] 16 weeks pregnant blood in urine
[PDF] 16 weeks pregnant blood test
[PDF] 160 country area code
[PDF] 160 pearl st
[PDF] 164 area code usa
[PDF] 165 lnts 19; 49 stat 3097
[PDF] 165 rue de javel 75015 paris france
[PDF] 17 90 euros en lettre
Electronics and Communication Engineering MPMC Lab
Narsimha Reddy Engineering College Page -1
Exp No.1: Programs for 16 bit arithmetic operations for 8086 (usingVarious Addressing Modes). a) Addition: i)16 bit addition: AIM: - To write an assembly language program for Addition of two 16-bit numbers.APPARATUS: 1. 8086 microprocessor kit/MASM ----1
2. RPS (+5V) ----1
PROGRAM:
i) By using MASM:Assume cs: code
Code segment
Start: MOV AX, 4343
MOV BX, 1111
ADD AX, BX
INT 3Code ends
End start
ii) By using 8086 kit:Electronics and Communication Engineering MPMC Lab
Narsimha Reddy Engineering College Page -2
MEMORY LOCATION OP-CODE LABEL MNEMONIC
4000 MOV AX,4343
MOV BX,1111
ADD AX,BX
INT 3OUTPUT:
Input output
Register Data Register Data
AX 4343 AX 5454
BX 1111
ii) Multi byte additionAIM: - Program to perform multi byte addition
APPARATUS: 1. 8086 microprocessor kit/MASM ----1
2. RPS (+5V) ----1
PROGRAM:
j) By using MASM:Assume cs: code
Code segment
Start: MOV AX, 0000
MOV SI, 2000
MOV DI, 3000
MOV BX, 2008
Electronics and Communication Engineering MPMC Lab
Narsimha Reddy Engineering College Page -3
MOV CL, 04
UP : MOV AL, [SI]
ADD AL,[BX]
MOV [DI], AL
INC SI
INC BX
INC DI
DEC CL
JNZ UP
INT 3CODE ENDS
END START
ii) By using 8086 kit:MEMORY LOCATION OP-CODE LABEL MNEMONIC
4000 MOV AX,0000
MOV SI, 2000
MOV DI, 3000
MOV BX, 2008
MOV CL, 04
UP MOV AL, [SI]
ADD AL, [BX]
MOV [DI], AL
INC SI
INC BX
INC DI
DEC CL
JNZ UP
INT 3Electronics and Communication Engineering MPMC Lab
Narsimha Reddy Engineering College Page -4
OUTPUT:
Input output
MEMORY Data MEMORY Data MEMORY Data
LOCATION LOCATION LOCATION
2000 01 2008 23 3000 24
2001 02 2009 27 3001 29
2002 07 200A 10 3002 17
2003 08 200B 14 3003 1C
2004 X
2005 X
2006 X
2007 X
b) Subtraction: i) 16 bit subtraction: AIM: - To write an assembly language program for subtraction of two 16-bit numbers. APPARATUS: 1. 8086 microprocessor kit/MASM ----1 2.RPS (+5V) ----1
Electronics and Communication Engineering MPMC Lab
Narsimha Reddy Engineering College Page -5
PROGRAM:
k) By using MASM:Assume cs: code
Code segment
Start: MOV AX, 4343
MOV BX, 1111
SUB AX, BX
INT 3Code ends
End start
iii) By using 8086 kit:MEMORY LOCATION OP-CODE LABEL INSTRUCTION
4000 MOV AX,4343
MOV BX,1111
SUB AX,BX
INT 3Electronics and Communication Engineering MPMC Lab
Narsimha Reddy Engineering College Page -6
OUTPUT:
Input output
Register Data Register Data
AX 4343 AX 3232
BX 1111
ii) Multi byte subtraction AIM: - Program to perform multi byte subtraction.APPARATUS: 1. 8086 microprocessor kit/MASM ----1
2. RPS (+5V) ----1
PROGRAM:
1) By using MASM:
Assume cs: code
Code segment
Start: MOV AX, 0000
MOV SI, 2000
MOV DI, 3000
MOV BX, 2008
MOV CL, 04
UP : MOV AL, [SI]
SUB AL, [BX]
MOV [DI], AL
INC SI
INC BX
INC DI
Electronics and Communication Engineering MPMC Lab
Narsimha Reddy Engineering College Page -7
DEC CL
JNZ UP
INT 3CODE ENDS
END START
2) By using 8086 kit:
MEMORY LOCATION OP-CODE LABEL MNEMONIC
4000 MOV AX,0000
MOV SI, 2000
MOV DI, 3000
MOV BX, 2008
MOV CL, 04
UP MOV AL, [SI]
SUB AL, [BX]
MOV [DI], AL
INC SI
INC BX
INC DI
DEC CL
JNZ UP
INT 3Electronics and Communication Engineering MPMC Lab
Narsimha Reddy Engineering College Page -8
OUTPUT:
Input output
MEMORY Data MEMORY Data MEMORY Data
LOCATION LOCATION LOCATION
2000 23 2008 02 3000 21
2001 27 2009 04 3001 23
2002 44 200A 01 3002 43
2003 43 200B 03 3003 40
2004 X
2005 X
2006 X
2007 X
c) Multiplication: i) 16 bit multiplication: AIM: - To write an assembly language program for multiplication of two 16-bit numbers.APPARATUS: 1. 8086 microprocessor kit/MASM ----1
2. RPS (+5V) ----1
Electronics and Communication Engineering MPMC Lab
Narsimha Reddy Engineering College Page -9
PROGRAM:
A) By using MASM:
Assume cs: code
Code segment
Start: MOV AX, 4343
MOV BX, 1111
MUL BX
INT 3Code ends
End start
B) By using 8086 kit:
MEMORY LOCATION OP-CODE LABEL MNEMONIC
4000 MOV AX,4343
MOV BX,1111
MUL BX
INT 3Electronics and Communication Engineering MPMC Lab
Narsimha Reddy Engineering College Page -10
OUTPUT:
Input Output
Register Data Register Data
AX 4343 AX EA73
BX 1111 DX 047B
ii) 16 bit multiplication (signed numbers) AIM: - To write an assembly language program for multiplication of two 16-bit signed numbers.APPARATUS: 1. 8086 microprocessor kit/MASM ----1
2. RPS(+5V) ----1
PROGRAM:
A) By using MASM:
Assume cs: code
Code segment
Start: MOV SI, 2000
MOV DI, 3000
MOV AX, [SI]
ADD SI, 02
MOV BX, [SI]
Electronics and Communication Engineering MPMC Lab
Narsimha Reddy Engineering College Page -11
IMUL BX
MOV [DI], AX
ADD DI, 02
MOV [DI], DX
INT 3Code ends
End start
B) By using 8086 kit:
MEMORY LOCATION OP-CODE LABEL MNEMONIC
4000 MOV SI,2000
MOV DI,3000
MOV AX,[SI]
ADD SI,02
MOV BX,[SI]
IMUL BX
MOV [DI],AX
ADD DI,02
MOV [DI],DX
INT 3Electronics and Communication Engineering MPMC Lab
Narsimha Reddy Engineering College Page -12
OUTPUT:
Input Output
MEMORY Data MEMORY Data
LOCATION LOCATION
2000 E4(-28) 3000 8C
2001 E4(-28) 3001 4C
2002 3B(+59) 3002 F5
2003 3B(+59) 3003 34
d) Division:I) 16 bit division:
AIM: - To write an assembly language program for multiplication of two 16-bit numbers.APPARATUS: 1. 8086 microprocessor kit/MASM ----1
2. RPS (+5V) ----1
PROGRAM:
A) By using MASM:
Assume cs: code
Code segment
Start: MOV AX,4343
Electronics and Communication Engineering MPMC Lab
Narsimha Reddy Engineering College Page -13