Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

NAME: Darsh Shah

UID No. 2021700057

BATCH: D4

SUBJECT COMPUTER ARCHITECTURE AND ORGANIZATION

EXPERIMENT No. 2

AIM: Simulate the operation of COPY and PASTE in 8086 (MASM)

Program 1

PROBLEM Write an assembly language program to move 10, 16 bit data between same
STATEMENT :
segments

OBJECTIVES: i. Implement 8086 instruction set to execute a given task.


ii. Execute given task on 8086 platform
iii. Understand the interfacing of interfacing ICS to 8086 microprocessor

REQUIREMENTS: DOSBOX software, MASM, Dyana -86-LU board, SMPS Power supply, RS232 cable, keyb

ALGORITHM: (a) Initialize CS:IP, DS:SI and ES:DI


(b) Initialize counter
(c) Move the first value in one register
(d) Move the same value from register to memory location
(e) Increment the locations
(f) Decrement the counter
(g) Check the zero flag
(h) Continue the loop until the zero flag is set
(i) End the program
PROGRAM:1

RESULT:

BEFORE EXECUTION THE CONTENT OF CODE SEGMENT


AFTER EXECUTION THE CONTENT OF MEMORY
PROGRAM:2

RESULT:

BEFORE EXECUTION THE CONTENT OF CODE SEGMENT


AFTER EXECUTION THE CONTENT OF CODE SEGMENT

CONCLUSION: Successfully performed and understood COPY and PASTE operations in 8086
through assembly language programming.

You might also like