Iwsievietei Dr Fernando Rio. Rive sections as la as you clea hich five should se
ID: 2083105 • Letter: I
Question
Explanation / Answer
(i) Instruction ABA means "Add contents in B register to contents in A register".
Given, A=$AB=171 in decimal and B=$CD=205 in decimal
Instruction ABA will cause (A)+(B) and stores the result in A register by default which is accumulator.
Therefore, after execution of instruction ABA, COntents of Register A=171+205=376 in decimal=$178 in hexadecimal... and contents of B are the same as loaded i.e. B=$CD
Option D is correct. A=$178, B=$CD, after execution of the instruction ABA.
(ii) N bit is set if result of operation in negative (MSB = 1)
Z bit is set if result of operation is zero (All bits = 0)
V bit is set if operation produced an overflow
C bit is set if operation produced a carry (borrow on subtraction)
In the above instruction, N is '0' as MSB is not 1, Z is '0' as the result is not zero, V is '1' as there is an overflow '1'78 and C is '1' as there is a carry generated during operation.
Hence, Option C is correct. (N Z V C) = (0 0 1 1)
(viii) Option is 'C' Registers
(ix) Option is 'D' Stack
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.