0% found this document useful (0 votes)
63 views1 page

Assembly Language Programming: Code Segment

This document provides instructions for a laboratory exercise on using data transfer instructions in assembly language programming. Students are asked to: 1) Run a sample program exchanging the contents of registers using MOV for different starting values 2) Repeat the program exchanging registers using XCHG instead of MOV 3) Comment on their experience using data transfer instructions like MOV, XCHG, LEA, LDS, PUSH, POP, IN, and OUT.

Uploaded by

Raj Gami
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
63 views1 page

Assembly Language Programming: Code Segment

This document provides instructions for a laboratory exercise on using data transfer instructions in assembly language programming. Students are asked to: 1) Run a sample program exchanging the contents of registers using MOV for different starting values 2) Repeat the program exchanging registers using XCHG instead of MOV 3) Comment on their experience using data transfer instructions like MOV, XCHG, LEA, LDS, PUSH, POP, IN, and OUT.

Uploaded by

Raj Gami
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 1

ASSEMBLY LANGUAGE PROGRAMMING

Lab Practice Exercise 3


Title: 8086 Instruction Set Practice: Data Transfer Instructions
Objective: To apply Data Transfer Instructions in Assembly Language Programming
1. Enter the following sample program in
Activities:
Emu 8086.
1. Repeat execution of the program with the following and record
2. Redefine the assembler directives to your results for all registers (general purpose, Special function
make the code run. and Flag):
.code ; indicate start of code segment a) AX= 02H , BX=08H and CX=0.
b) AX= 2AH , BX=008EH and CX=05H
.startup ; indicate start of program c) AX= 12345 , BX=4568 and CX=10.
movAX, 00H 2. With CX initialized to zero i.e CX=0, exchange contents of AX
mov BX, 0000H and BX in a)-c) above and record your results.
mov CX, 0 3. Repeat Step 1 and 2 with BX replaced with DX. Comment.
3. Comment on the flow of the program and how the instructions
mov SI, AX are executed.
mov DI, BX 4. Comment on your experience with the mov instruction.
mov BP, CX 5. Using simple examples of your own, show how the
following data transfer instructions may be used with Emu
8086: XCHG, LEA,LDS,PUSH,POP, IN and OUT.
END ; end of file

You might also like