Q) The value of the DS register is 2032H. And the BX register contains a 16 bit value which is equal to 2052H. ADD BX, 0008H MOV [BX], AX Calculate the address at which the value of the AX will be stored. Q) AL=38 BCD, CL=49 BCD. Perform the addition and subtraction of above two registers value and obtain a valid BCD using suitable instruction Ma'am can you please solve these doubts?
Q1 BX will hold 0008 after first instruction 2nd instruction for memory address use formula - 2032 X 10 + 0008=20328 is physical address so contents of Ax will move to 20328
Nice mam
Thank you so much 😊
Best content of cs2 available on UA-cam ❤️🥹🙏🏻
Thanks for your comment 🙂
Q) The value of the DS register is 2032H. And the BX register contains a 16 bit value which
is equal to 2052H.
ADD BX, 0008H
MOV [BX], AX
Calculate the address at which the value of the AX will be stored.
Q) AL=38 BCD, CL=49 BCD. Perform the addition and subtraction of above two registers
value and obtain a valid BCD using suitable instruction
Ma'am can you please solve these doubts?
Q1
BX will hold 0008 after first instruction
2nd instruction for memory address use formula
- 2032 X 10 + 0008=20328 is physical address
so contents of Ax will move to 20328
Q2 - for addition
MOV AL, 38 H
MOV CL, 49
ADD AL, CL
DAA
HLT
for subtraction
MOV AL, 38
MOV CL, 49
SUB CL,AL
DAS
HLT
For Q1 refer video ua-cam.com/video/zazyEbuh9vE/v-deo.html
For Q 2 refer
ua-cam.com/video/D5kempbOruE/v-deo.html
for DAA instruction refer
ua-cam.com/video/9Q3rCGg2bTA/v-deo.html