LXI H 1000h
MVI C 05h
MOV A M
LOOP: INX H
CMP M
JNC GREATER
MOV A M
GREATER: DCR C
JNZ LOOP
STA 2000h
HLT
Please fill the user grid which begin from 1000h to 1006h and insert the value to find the largest number.
MVI C 05h
MOV A M
LOOP: INX H
CMP M
JNC GREATER
MOV A M
GREATER: DCR C
JNZ LOOP
STA 2000h
HLT
Please fill the user grid which begin from 1000h to 1006h and insert the value to find the largest number.
No comments:
Post a Comment