You are on page 1of 3

EX.

P NO: 1

ADDITION OF MULTI BYTES

Aim: To write machine level programs to perform addition of two multi byte hexadecimal numbers. Apparatus:
1. 8086 microprocessor kit ---- 01(Q.ty)

2. Keyboard ----- 01(Q.ty) 3. Power cord ----- 01(Q.ty) Procedure: 1. Connect the power cord and keyboard to the 8086 microprocessor kit.
2. Check the status of red switch in the back side of 8086 microprocessor kit. If it is in ON

position, turn it into OFF position.


3. Connect the power cord to power supply.

4. Switch ON power supply first ant then turn the switch(which is in back side of 8086 microprocessor kit) into ON position. 5. Enter the returned key from keyboard. And choose A option for entering the program, then press returned key. 6. Type the program in order of one by one instruction. For storing purpose after each instruction press the returned key. And note down address of each instruction. 7. After completion of program typing, press F7 in keyboard for getting the options. 8. Choose the G option for execution of program, and then press F7 again for getting the options. And then press the R option for show the contents of general purpose registers (AX, BX, CX, DX). Then note down result from suitable register. Program: 1.a(Addition of two 8-bit numbers) MOV AL, 08H MOV BL, 03H ADD AL, BL INT 03H MPI Lab Manual of SVIST Page 1

EX.P NO: 1

ADDITION OF MULTI BYTES

Program: 1.b(Addition of two 16-bit numbers) MOV AX, 0AB0H MOV BX, 1100H ADD AX, BX INT 03H Program: 1.c (Addition of N-8 bit numbers), Here N=5 MOV CX, 0005H MOV SI, 4500H MOV AL, [SI] DEC CX UP: INC SI ADC AL, [SI] DEC CX JNZ UP INC SI MOV [SI], AL INT 03H Program: 1.d (Addition of two 32-bit numbers) MOV AX, 6782H MOV BX, 7813H ADD AX, BX MOV CX, 2602H MOV DX, 2763H MPI Lab Manual of SVIST Page 2

EX.P NO: 1
ADC CX, DX INT 03H

ADDITION OF MULTI BYTES

Result: The addition of multi bytes programs were executed successfully and results as follows: 1.a: 1.b:

1.c:

1.d:

MPI Lab Manual of SVIST

Page 3

You might also like