Professional Documents
Culture Documents
INDEX
1. Introduction to 8086 trainer kit
1) This program initializes the register with immediate data. After the
execution of this program the following register contain the data shown
against them.
Output:- AX = 1111,BX=2222,CX=3333,DX=4444,SI=5555,DI=6666
MICROPROCESSOR AND INTERFACING LAB MANUAL
4) This program interchanges two words from 4100 and 4102 locations
5) This program adds two words in memory locations and stores the
results in subsequent memory locations
6) Program to add 4 words stored consecutively in memory locations. The numbers are in
binary
Address Opcode LABEL Mnemonics Comments
4000 B9 04 00 MOV CX,04 Set counter to 4, to add 4
words ptr
4003 BE 00 41 MOV SI,4100 To 4100 location
4006 03 04 L1 ADD AX,[SI] Add first word to AX
Input : 4100:11 11 22 22 33 33 44 44
SET AX=0
Output : REG AX=AAAA
MICROPROCESSOR AND INTERFACING LAB MANUAL
Input: 4100 11 11 22 22
4104 33 33 44 44
Output: 4108:- 44 44 66 66
MICROPROCESSOR AND INTERFACING LAB MANUAL
Input : 4100 33
4101 22
Output : 4102 06 C6
Input : 4100 56
4101 24
Output : 4102 80
Result is stored in AL
Result is stored in AL
Result is stored in BL
16) Program to compute the logical 1’s in a word and store the result in
memory
MICROPROCESSOR AND INTERFACING LAB MANUAL
INPUT: 4100 32 00
OUTPUT: 4102 03
INPUT:-0:4100-40,4101-00(64)
OUTPUT:-AX-08
INPUT:-0:4100-52(DECIMAL NO)
OUTPUT:-AL-34(HEX EQUIVALENT
Input 4100-52
Output ax-143
Input 4100-3A
Output AL=33 AH=41