If register A 05 register B 510 and you compare the accu

If register A = $ 05 & register B = 510, and you compare the accumulators with the instruction CBA (compare B to A), what7 s the contents of A, B after the comparison a) 05, 10 b) 15, 05 c) Fl,00 d) Fl, 10 e) 15,00 v). In the instruction abo e, 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

Solution

4) Compare operation will not result in any change of contents in register ..It just effects the flags correspondingly....

So, option A is true here ..

5) Condition flag N will be set if result is negative ..Here result is negative (A-B)....So flag N will be assigned to \'1\'...

Flag Z will be \'1\' if comparison is success ..here Z=\'0\'..

Carry flag will be assigned \'1\' if there is generation of carry ...Here C=\'1\'....

Option B is true here ...

 If register A = $ 05 & register B = 510, and you compare the accumulators with the instruction CBA (compare B to A), what7 s the contents of A, B after the

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site