8086 Subtraction

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

Date o / 1 0 / 2 2

Expt. No. L5 Page No. 44


.

gen
To perdermRulbtcaclfoa beL
ATMOE THEEXPERIMENT
tNo16=6Abeaadecfma Dumbes io 80L4 oferopLo

EQUIPMMENT REQUIRED

1a ERTY Kbaard
HS) Peer uppl doard
tu)Tnateuclonmanual

ALGORITHM
a ) Mthed 1 :
DI TRllalezeregfdeE AXand BX aitb detired nunberi
and&tore b difference
LRESutrac Bx ramAX
reqide AX
4Mibaa
LDLad rsqatersAX and BX Afth de AfredDumbeR
tored
from AX and storetoe diflerencein
) Subtrac x
coDAe euve memor
he desfeed

PRoaRAM CoDE IN AsSEMBLy LANaUAGE )

Addrers Mnenmonie s Commeots


MOV AX YyyH_ AX

1016 MoV Bx 2525H_ BX 535


1o19 SUB Ax Bx AX AX= BX
101A- HLT STOP_

bMined 2
Teacher's Signature.
Date o/1o/ 22
Expt. No. 15 Page No. 45

Memory AddreA Mnenonic3 Comnment-


AL Labot1
1o1B Mev_AX 2O0L H- AH (2001+
BL< 2o021
BH 200qL
1o1E Mov ex 2009 H
200A1AX-Bx

1021 SUB AX BX-


[a00B =AHL
1022 Mov 800A HI, AX
1025 HLT STOP

EXECUTION OE PROGRAM
Ca) Methed 1 =
D|ALfer rilfng heProgramo codefn t assermble
PRe A ESe

LEType G&larkfnq addeest, oDding addresi andPreAl


ENTER-
RRAler execulfan pe R and pee ENTER to kee_
outpu
L Metand2 9
i|Pre u E_stardeo addreu and pEes ENTER store
equireded oumber degired_memer ocalPon&
R|Pee ESc y e tbe progcam_codd ln the
asembler pces- ESC gai - Type G G tarlE
addreu ending- addeeAt andpreu ENTER
LRTo&e ouputtp dtariëng addreiu erding-
addreu_and preu ENTER

CONCLUST O Ateryerit oq dhe e Rult JateConalude


h e PraKam_ laaA &uaoOLAuu oxe cued ang
do eired ee l t a a l o l a t a f o R e
Susht Kuma Kalskfa
200SO167_
Teacher's Signature.

You might also like