Microprocessor 8085 program TO SUBTRACT TWO 16-BIT DATA


#1

TO SUBTRACT TWO 16-BIT DATA

LDA 002
MOV B,A
LDA 000
SUB B
STA 004
LDA 003
MOV B,A
LDA 001
SBB
STA 005
HLT

Here, 000 & 001 -> 1st Operand 002 & 003 -> 2nd Operand
004 & 005 -> Subtracted Result