A string of ten data bytes is stored starting from memory location8500H.The string includes some blanks (bytes with zero values). Write an assembly language program to save the new string by eliminating all BLANKS from that string. Given Data:
A0H,00H,00H,4AH,98H,00H,78H,90H,00H, FFH
#ORG 8000
START : LXI H,8500H
LXI D, 8500H
MVI C,0AH
LOOP: MOV A,M
CPI 00H
JZ NEXT
STAX D
INX D
NEXT: INX H
DCR C
JNZ LOOP
HLT
Post a Comment
0 Comments