Advertisements
Advertisements
प्रश्न
Write ALP to find 2's complement of a 16 bit number stored in DE Pair. Store result in HL Pair.
Advertisements
उत्तर
| Mnemonics | Comment | |
| Opcode | Operand | |
| MOV A, E | ; Copy E content to Accumulator | |
| CMA | ; Compliment Accumulator | |
| MOV L, A | ; Copy Accumulator to L Register | |
| MOV A, D | ; Copy D content to Accumulator | |
| CMA | ; Compliment Accumulator | |
| MOV H, A | ; Copy Acc. to HL Pair | |
| INX H | ; Increment HL pair by 1 | |
| RST 1.0 | ; Restart | |
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
