Computer Science, asked by gmandal534, 1 year ago

add all the byte values stored in five consecutive memory location at 8086

Answers

Answered by aqsaahmed19945
0

Here is a program to gives say a chance to include 100 memory areas byte esteem:  

LDA 8500/Some memory area state 8500  

/Load the gatherer with the location of memory viz 8500  

MOV D, A  

/Move the collector incentive to the enroll D  

MVI E, 99  

/Load the E enroll with the counter 100 - 1  

LXI B, 8500 + 1/Next memory area from where we have done LDA - 8501  

/Load quick B C with the memory area  

LDAX B  

/Load Accumulator backhanded A=[BC]  

Include D  

/Add the substance of the Accumulator to the Register D  

MOV D, A  

/Move the incentive in D to the Accumulator or enlist A  

INX B  

/Increment BC enlist sets  

DCR E  

/Decrement the counter enlist  

LDAX B  

JNZ 9000/  

/Jump on no zero  

STA 9000/Suitable memory area  

/Store the yield into a memory area  

HLT  

//Stop the program

Similar questions