You are on page 1of 2

EX.

P NO: 2

SUBTRACTION OF MULTI BYTES

Aim: To write machine level programs to perform subtraction 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: 2.a (Subtraction of two 8-bit numbers) MOV AL, 08H MOV BL, 05H SUB AL, BL INT 03H MPI Lab Manual of SVIST Page 1

EX.P NO: 2

SUBTRACTION OF MULTI BYTES

Program: 2.b (Subtraction of two 16-bit numbers) MOV AX, 0AB0H MOV BX, 1100H SUB AX, BX INT 03H Result: The subtraction of multi bytes programs were executed successfully and results as follows: 2.a: 2.b:

MPI Lab Manual of SVIST

Page 2

You might also like