السلام عليكم ورحمة الله وبركاته ..
اخواني الاعزاء ... عندي 8 اسئلة في الاسمبلي ..
بصراحة مرة ماني عارفة احلها ...
اتمنى انكم تساعدوني فيها لاني مرة مبتدئـــــــــة مع الاسمبلي ...
مو ضروري الحلول بس فهموني ايش المطلوب من الاسئلة ..
الله يجزاكم الف خير ..
For the following questions in each category:
• Write the 68HC11 instruction needed to implement the task
• Describe the operation implemented by the instruction using the notation used in Table 1 of Programming Reference Guide. You may also refer to detailed description about each instruction in Appendix A of the Reference Manual.
• Write the machine language code for that instruction in hexadecimal notation.
• Give any additional answers required by the question.
(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.



