A set of data bytes containing the following data 01H, 02H, 03H, 04H, 05H, 06H, 07H,08H, 09H, 0AH, 0BH, 0CH, 0DH, 0EH, 0FH are stored at memory location starting from 8500H. Write an assembly language program to store the Data in REVERSE ORDER at location starting from 9600H (i.e., data of 8500H location will save to last location of destination)
#ORG 8000
START: LXI H,8500
LXI D,960E
MVI C,0F
LOOP:
MOV A,MSTAX D
INX H
DCX D
DCR C
JNZ LOOP
HLT
Post a Comment
0 Comments