मराठी
महाराष्ट्र राज्य शिक्षण मंडळएचएससी विज्ञान (संगणक विज्ञान) इयत्ता १२ वी

Write Alp to Find 2'S Complement of a 16 Bit Number Stored in De Pair. Store Result in Hl Pair. - Computer Science 2

Advertisements
Advertisements

प्रश्न

Write ALP to find 2's complement of a 16 bit number stored in DE Pair. Store result in HL Pair.

उत्तर

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
Instruction Set and Programming of 8085
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
2014-2015 (March)

APPEARS IN

Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×