electroboy
Member level 5
this is a program to find the largest number in a given set of 5 numbers in 8085 microprocessor......
LXI H,0091H
LDA 0090H
MVI B,03H
CMP M
JM 0015H
INX H
DCR B
JNZ 0008H
STA 00A0H
HLT
MOV A,M
INX H
JMP 0008H
i have stored the 5 numbers from address 0090H to 0094H..... the starting address of the program is 0000H...
Is there any way to reduce the program size i.e no. of bytes....?? please help..thanks in advance..
LXI H,0091H
LDA 0090H
MVI B,03H
CMP M
JM 0015H
INX H
DCR B
JNZ 0008H
STA 00A0H
HLT
MOV A,M
INX H
JMP 0008H
i have stored the 5 numbers from address 0090H to 0094H..... the starting address of the program is 0000H...
Is there any way to reduce the program size i.e no. of bytes....?? please help..thanks in advance..
Last edited: