Assembly language programming

Subtract 8-bit data stored at memory location 2050H from data stored at memory location 2051H and store result at 2052H.



1. LDA 2051; load accumulator from memory location 2051H

2. LXI H 2050; load 16-bit address in HL register

3. SBB M; subtraction accumulator and M[HL]

4. STA 2052; store result on memory location 2052H

5. HLT; halt program

Post a Comment

0 Comments