Assembly Language Programming Examples
Assembly Language Programming Examples
Two address
LXI H, 2501H : "Get address of first number in H-L pair. Now H-L points to 25
01H"
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"