![8085 Programming 8085 Programming](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiX7Tr_ZLAw8IWCx_UzUTiWaF7XJVsHoqqkXQAVzvt2s20wPkJwrhVykVpZ-IvdDgxhp-wz_027MYSDnwYwUX3s3KzwBU1O8WS62zZVXwHyga1Q5qyQmTmIYCdUh9rAsu732cJw3J2IZN0/s1600/8085.jpg)
If 2nd no is greater than 1st no then the answer will in 2's complement
Manually strore 1st 8 bit no in the memory location C050
Manually store 2nd 8 bit no in the memory location C051
Result is stored in C052
LXI H,C051
MVI A,99
SUB M
INR A
DCX H
ADD M
DAA
STA C052
HLT
EXAMPLE-> 99-48=51
STORE-> C050=99,C051=48
OUTPUT:
C052=51
0 Comments