मराठी

A two byte number is stored at location COOO H and COOl H. Write on Assembly Language Program to rotate this number to left side by 3 places and store the rotated number in BC register pair.

Advertisements

प्रश्न

A two-byte number is stored at location C000 H and C001 H. Write on Assembly Language Program to rotate this number to the left side by 3 places and store the rotated number in the BC register pair.

थोडक्यात उत्तर
Advertisements

उत्तर

Label Mnemonics + Operand Comment
  LHLD C000 ; Load HL pair from C000 memory location
  DAD H ; Add register pair to HL pair
  DAD H ; Add register pair to HL pair
  DAD H ; Add register pair to HL pair
  SHLD BC ; Store HL pair to BC register pair
  RST 1.0 ; Restart                                                              
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
2015-2016 (March)

APPEARS IN

Advertisements
Share
Notifications



      Forgot password?
Use app×