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
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
