-->

Career Market

CEO Start

Write a Program for ascending order in 8085 microprocessor?

페이지 정보

profile_image
작성자 Margarette Coll…
댓글 0건 조회 82회 작성일 24-05-21 12:07

본문

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:

댓글목록

등록된 댓글이 없습니다.