Welcome! Log In Create A New Profile

Advanced

Assign 02 Question 37

Posted by AndreB 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
Assign 02 Question 37
May 01, 2007 12:23PM
I've played with this question quite a bit, but I don't see that any of the options are correct.
I get the mask used to extract the bits used for Matches Lost as 3800h. No problem. However, to get this bits in the lower part of al, you would need to shift them right by a max number of 11 bits. The only options this question has with the appropriate mask are 2 or 13. A shift of 2 bits, means that the required bits would remain in ah, while a shift of 13 bits would see the 1st required bit dissappear and the 2nd required bit move to the Carry Flag.
Am I missing something here?
Can anyone see where I'm going wrong?
Cheers,
Re: Assign 02 Question 37
May 01, 2007 03:11PM
I could not see any of the alternatives being correct either. I had it as the contents to be shifted right 11 times. Hope there was a typo with the alternatves.

Cheers
Re: Assign 02 Question 37
May 01, 2007 03:52PM
BX should = 3800h and CL = 10 all options are wrong I choose 1 seeing it's the closet match and i can see how they could of made such a mistake.
Re: Assign 02 Question 37
May 01, 2007 04:07PM
Thanks for the feedback - kind of a relief knowing that there are others battling with the same thing.
Theunis - I tested this manually (written) as well as a test program and I pretty sure that CL should = 11.
You've stated 10 - Could you explain why?
Cheers,
Re: Assign 02 Question 37
May 01, 2007 07:00PM
CL is meant to be 11 I wrote the base instead of the number when i posted.
Re: Assign 02 Question 37
May 02, 2007 02:30PM
Thanks
Sorry, only registered users may post in this forum.

Click here to login