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

Write an Assembly Language Program to check whether fourth and fifth bits of a hexadecimal number stored in memory location DICH is logicalone then store 00H else FFH of memory location D90IH.

Advertisements
Advertisements

प्रश्न

Write an Assembly Language Program to check whether fourth and fifth bits of a hexadecimal number stored in memory location DICH is logicalone then store 00H else FFH of memory location D90IH.

कोड लेखन
Advertisements

उत्तर

Label    Instructions      Comments 
         LXI H, D900H  ; Load HL to D900H       
         MOV A, M      ; Move M to A           
         ANI 18H       ; AND with 18H          
         SUI 18H       ; Subtract 18H with A    
         JZ Store      ; Jump on zero go to store
         MVI A, FFH    ; SET A To FFH             
         STA D901H     ; Store A to D901H        
         HLT           ; Stop                    
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
2024-2025 (July) Official Board Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×