
BASICS OF COMPUTER SYSTEMS 41
Solution
LDA 4566H ;load into A, the number in memory
CMP A,B ;compare it to the number in B
JNC YES ;If C = 0, it means that A>B, jump to YES
MOV A,B ;C = 1, means B>A, so copy bigger no to A
YES: OUT 67H ;send the bigger number to the output port
With this, we come to an end of our discussion on 8085 programming. ere are a few
more instructions, but since only a brief introduction to 8085 is possible here, we will straight-
way go into the hardware aspects of 8085.
0.9.4 | Hardware Aspects of the 8085
Fig 0.13 shows the pin diagram of the processor. Let us discuss the pins in detail. As we do that,