0% found this document useful (0 votes)
28 views4 pages

25 - Dikshant Solanki - AMC - EXP 1

The document describes an experiment to write an assembly language program for 16-bit arithmetic operations such as addition. It includes the aim, apparatus required, procedure, algorithm, program code, and result of adding two 16-bit numbers in assembly language using registers on a microcontroller.

Uploaded by

dikshant Solanki
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)
28 views4 pages

25 - Dikshant Solanki - AMC - EXP 1

The document describes an experiment to write an assembly language program for 16-bit arithmetic operations such as addition. It includes the aim, apparatus required, procedure, algorithm, program code, and result of adding two 16-bit numbers in assembly language using registers on a microcontroller.

Uploaded by

dikshant Solanki
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/ 4

VIDYAVARDHINI’S COLLEGE OF ENGINEERING AND TECHNOLOGY

DEPARTMENT OF INSTRUMENTATION

NAME :- Dikshant Solanki

ROLL NO :- 25

EXP NO :- 01

D.O.P :-

D.O.S :- 14/10/2021

SIGN :-

EXPERIMENT NO.1
VIDYAVARDHINI’S COLLEGE OF ENGINEERING AND TECHNOLOGY
DEPARTMENT OF INSTRUMENTATION

AIM: To write an assembly language program for 16 bit arithmetic operation.

APPARATUS REQUIRED: Editor like Keil µvision version 4 or less

PROCEDURE:

1. Program is edited and is compiled with Keil compiler.

2. After successful compilation, debugging is started.

3. The memory window is accessed and the input data are entered and the output is seen as

shown in the result.

ALGORITHM:

16 bit Addition:

1. Start

2. Move the data into A register & R0 register.

3. Add the data from register A & R0.

4. Save the addition result into register R1 by moving the addition result from A register

(lower byte).

5. Move the data into A register & R2 register.

6. Add the data from register A & R2.

7. Save the addition result into register R3 by moving the addition result from A register (higher

byte).

16 bit Addition:-
VIDYAVARDHINI’S COLLEGE OF ENGINEERING AND TECHNOLOGY
DEPARTMENT OF INSTRUMENTATION

ORG 0000H

MOV A,#25H ;move 25H in A register

MOV R0,#0CDH ;move CDH in R0 register

ADD A,R0 ;Add A & R0 register data

MOV R1, A ;move A(addition lower byte Result) into R1 register

MOV A, #3AH ;move 3AH in A register

MOV R2, #0ABH ;move ABH in R2 register

ADDC A, R2 ;Add A & R2 register data

MOV R3, A ;move A(addition higher byte Result) into R3 register

END

RESULT:-
VIDYAVARDHINI’S COLLEGE OF ENGINEERING AND TECHNOLOGY
DEPARTMENT OF INSTRUMENTATION

CONCLUSION: - Thus we have performed 16 bit arithmetic operation .

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy