LXI H, 2501H : "Get address of first number in H-L pair. Now H-L points to 2501H"
MOV A, M : "Get first operand in accumulator"INX H : "Increment content of H-L pair. Now, H-L points 2502H"ADD M : "Add first and second operand"INX H : "H-L points 4002H"MOV M, A : "Store result at 2503H"HLT : "Stop"
0 Comments