Adding Two 8-bit NumbersWrite a program to add data at 3005H & 3006H memory location and store the result at 3007H memory location.Problem demo −(3005H) = 14H (3006H) = 89H Result −14H 89H = 9DHThe program code can be written like this −LXI H 3005H : 'HL points 3005H' MOV A, M : 'Getting first operand' INX H : 'HL points 3006H' ADD M : 'Add second operand' INX H : 'HL points 3007H' - Study24x7
Social learning Network
05 Mar 2019 11:45 AM study24x7 study24x7

Adding Two 8-bit NumbersWrite a program to add data at 3005H & 3006H memory location and store the result at 3007H memory location.Problem demo −(3005H) = 14H (3006H) = 89H Result −14H + 89H = 9DHThe program code can be written like this −LXI H 3005H : "...

See more

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles