Sorting of array in 8085
Description:
Here all the array input is provided through address shown in simulator.
code:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LXI H 4200h | |
MOV C M | |
DCR C | |
REPEAT: MOV D C | |
LXI H 4201h | |
LOOP: MOV A M | |
INX H | |
CMP M | |
JC SKIP | |
MOV B M | |
MOV M A | |
DCX H | |
MOV M B | |
INX H | |
SKIP: DCR D | |
JNZ LOOP | |
DCR C | |
JNZ REPEAT | |
HLT |
No comments:
Post a Comment