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

Write an Assembly Language Program to find one’s (1’s) compliment of a number stored at memory location D000H without using CMA instruction and store result at memory location D00IH. - Computer Science 2

Advertisements
Advertisements

प्रश्न

Write an Assembly Language Program to find one’s (1’s) compliment of a number stored at memory location D000H without using CMA instruction and store result at memory location D00IH.

कोड लेखन
Advertisements

उत्तर

Label      Instructions                Comments

       MVI A, FFH    ; Set A to FFH            
       LXI H, D000H  ; Load HL to D000H       
       SUB M         ; Subtract memory with A 
       STA D001H     ; Store A to D001H         
       HLT           ; Stop                  
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
2024-2025 (July) Official Board Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×