السلام عليكم ورحمة الله وبركاته
ارجو منكم مساعدتي في حل هذا الواجب عليه 20 درجه
ونا مش فاهمه فيه حاجه
الله يرزقكم جنته ورضاه ارجوكم ساعدوووني
(Q1) Load A with data from memory location (address) $D0F2.
(Q2) Store B into memory location whose address is obtained by adding an offset of $20 to the index
register Y.
(Q3) Add with carry to B and to data at memory location $202C and store the result in B. Assuming
M[$202C] = 11001001 and B = 10010011, Carry = 1 before the instruction is executed, what
is the value of B after this instruction is executed? Also, what bits of CCR are affected and what
are their values after this instruction is executed?
(Q4) Exclusive OR A with data at memory location whose address is obtained by adding an offset of
$3E to the index register X. Store the result in A.
(Q5) Clear bit 6, bit 5 and bit 1 of the byte stored at memory address $102C.
(Q6) Logical shift right B. Assuming B = 11100111 before the instruction is executed, what is the value of
B after this instruction is executed? Write the values of B, before and after this instruction is executed,
as signed decimal numbers assuming that the binary value stored in B is in 2’s complement notation.
(Q7) Arithmetic shift right B. Assuming B = 11100111 before the instruction is executed, what is the value
of B after this instruction is executed? Write the values of B, before and after this instruction is
executed, as signed decimal numbers assuming that the binary value stored in B is in 2’s complement
notation.
(Q8) Load index register X with two bytes stored starting at memory address $E080.
الله يرزقكم اللي تتمنوه
ارجو منكم مساعدتي في حل هذا الواجب عليه 20 درجه
ونا مش فاهمه فيه حاجه
الله يرزقكم جنته ورضاه ارجوكم ساعدوووني
(Q1) Load A with data from memory location (address) $D0F2.
(Q2) Store B into memory location whose address is obtained by adding an offset of $20 to the index
register Y.
(Q3) Add with carry to B and to data at memory location $202C and store the result in B. Assuming
M[$202C] = 11001001 and B = 10010011, Carry = 1 before the instruction is executed, what
is the value of B after this instruction is executed? Also, what bits of CCR are affected and what
are their values after this instruction is executed?
(Q4) Exclusive OR A with data at memory location whose address is obtained by adding an offset of
$3E to the index register X. Store the result in A.
(Q5) Clear bit 6, bit 5 and bit 1 of the byte stored at memory address $102C.
(Q6) Logical shift right B. Assuming B = 11100111 before the instruction is executed, what is the value of
B after this instruction is executed? Write the values of B, before and after this instruction is executed,
as signed decimal numbers assuming that the binary value stored in B is in 2’s complement notation.
(Q7) Arithmetic shift right B. Assuming B = 11100111 before the instruction is executed, what is the value
of B after this instruction is executed? Write the values of B, before and after this instruction is
executed, as signed decimal numbers assuming that the binary value stored in B is in 2’s complement
notation.
(Q8) Load index register X with two bytes stored starting at memory address $E080.
الله يرزقكم اللي تتمنوه