i). - If register A=$AB & register B=%1100 1101, and you execute the instruction
ID: 2083036 • Letter: I
Question
i). - If register A=$AB & register B=%1100 1101, and you execute the instruction ABA, what's the contents of registers A, B after the execution: a) CD, AB b) AB, CD c) 178,00 d) 178, CD e) 78, CD ii). - In the instruction above, what's the value of the Condition Codes (N, Z, V, C) after the execution: a) 0, 0, 1, 0 b) 0, 1, 1, 0 c) 0, 0, 1, 1 d) 1, 0, 0, 1 e) 1, 1, 0, 1 iii). - If register A= % 1100 1101 & register B=@ 253, and you execute the instruction SBA, what's the contents of A, B after the execution: a) 65, AB b) 22,00 c) 44, CD d) 22, AB e) CD, AB iv).-- If register A=$05 & register B=$10, and you compare the accumulators with the instruction CBA, what's the contents of A, B after the comparison: a) 05, 100 b) 15, 05 c) F1,00 d) F1, 10 e) 15,00 v). - In the instruction above, what's the value of the Condition Codes (N, Z, C) after the execution: a) 0, 0, 1 b) 1, 0, 1 c) 0, 1, 1 d) 1, 1, 1, 1 e) 0, 0, 0 vi). - If A = $AB, and you execute a logical shift right instruction (LSRA), what are the contents of A and carry after the execution.Explanation / Answer
i) Given A=$AB and B=%1100 1101=$CD
Instruction ABA means Add B to A.
This instruction adds the B value to A and the result is stored in A.
So A=A+B=$AB+$CD=$178
Answer:d
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.