Microprocessor 8085 Appendix A
Microprocessor 8085 Appendix A
Appendix A
Explanation :
Algorithm :
Step I
Step II
Step III
Step IV
Step V
Step VI
Step VII
Step VIII
Step IX
:
:
:
:
:
:
:
:
:
Program :
Instruction
LXI H, D100H
LXI D, D000H
LXI B, D200H
BACK: LDAX D
MOV L,A
MOV A,M
STAX B
Comment
;
Initialize
lookup
;
table
pointer
;
Initialize
source
; memory
pointer
; Initialize
; destination
; memory
pointer
; Get
the
number
; A point to
the
; square
; Get
the
square
; Store
the
result
; at
destination
; memory
location
Microprocessor 8085
INX D
INX B
MOV A,C
CPI 05H
JNZ BACK
HLT
Appendix A
; Increment
; source
memory
pointer
; Increment
destination
; memory
pointer
; Check
for
number
; If
not
repeat
;
End of
program
last
Flowchart 32