Write a Program for ascending order in 8085 microprocessor?
페이지 정보

본문
Source program :
MVI D, COUNT : Initialize counter
MVI B, 00 : Initialize variable to store previous number
MVI C, 01 : Initialize variable to store current number
MOV A, B :[Add two numbers]
BACK: ADD C :[Add two numbers]
MOV B, C : Current number is now previous number
MOV C, A : Save result as a new current number
DCR D : Decrement count
JNZ BACK : if count 0 go to BACK
HLT : Stop.
Wiki User
∙ 13y ago
This answer is:
MVI D, COUNT : Initialize counter
MVI B, 00 : Initialize variable to store previous number
MVI C, 01 : Initialize variable to store current number
MOV A, B :[Add two numbers]
BACK: ADD C :[Add two numbers]
MOV B, C : Current number is now previous number
MOV C, A : Save result as a new current number
DCR D : Decrement count
JNZ BACK : if count 0 go to BACK
HLT : Stop.
Wiki User
∙ 13y ago
This answer is:
- 이전글A Glimpse Into Locksmith Near Me Car's Secrets Of Locksmith Near Me Car 24.05.21
- 다음글еркін нұржанов ақ бұлт скачать - мен сені әдемі ақ бұлттан скачать 24.05.21
댓글목록
등록된 댓글이 없습니다.