Professional Documents
Culture Documents
Appendix A
Explanation :
Program :
Instruction
LDA D000H
MOV
C, A
XRA A
;
;
LXI H, D001H
BACK: CMP M
;
JNC SKIP
MOV
A, M
;
SKIP: INX H
DCR C
JNZ BACK
STA E000H
;
HLT
;
Comment
; Initialize counter
Maximum = Minimum
possible value = 0
; Initialize pointer
Is number > maximum
Flowchart 23
; If number > maximum then
interchange.