Question Completion Status: if you do not have a textbook translate the followin
ID: 3748736 • Letter: Q
Question
Question Completion Status: if you do not have a textbook translate the following Engish statement into a vald machine language instruction STORE the bit pattern found in register 8 in the memory cell whose address is 85 Enter only the valid machine language instruction case-sensitive, and do not include any extra best or spaces QUESTION 6 3 points Convert the following two's cmplement number (assume were using 5 bieo0 into its equivalent base t0 QUESTION7 5 points The following message is encoded in ASCII using one byse per character, and then repeesented in bexadecimal hexadecimal digns represent l byse Enter exact message (case sensitive. exact number of spaces, so entra characters or spaces). Refer to Appendix A of your texdbook, or the Homework 1 Additional Resoweces if you do not have a testbook. Message: 47444420444F42 Cliel Seve and Selnit to save and sbCie Save All Ansvers to save all O Type here to searchExplanation / Answer
Firstly, I'm assuming you only want the answer to questions 6 and 7 since the question above 6 is not fully visible.
Alright, so Q.6 first.
In order to convert a decimal number into binary 2's complement. We take the positive part of the decimal number, convert it to binary and then flip all the bits and then add 1.
So, to do the reverse we need to basically do the process backwards.
But, to do this faster you can just take the rightmost bit as negative decimal equivalent and calculate the decimal value of the binary number normally.
Which means 10110 would be -(24) + 22 + 21 = -16 + 4 + 2 = -10 which gives the same answer.
Now to Q.7:
The message is 47 4F 4F 44 20 4A 4F 42, now you must be wondering why I wrote it in pairs. It is because in the question it's given that the English character is in 1 byte and 2 hexadecimal digits make up 1 byte, which basically means that each of these pairs is a 1 byte character.
To get the ASCII value, we need to convert each hexadecimal pair into decimal value. You can do this by multiplying the digit with increasing powers of 16 from right to left.
So, 47 in hex = 4*(161) + 7*(160) = 64 + 7 = 71
Similarly 4F in hex = 4*(161) + 15*(160) = 64 + 15 = 79 (Remember A = 10, B = 11 ...... F = 15 for hexadecimals)
So the whole message is now 71 79 79 68 32 74 79 66. Now in ASCII, 'A' is for 65, 'B' for 66 and so on.. and 32 is for empty space character ' '.
Hence, the message then becomes 'G' 'O' 'O' 'D' ' ' 'J' 'O' 'B'. Which is the answer => "GOOD JOB".
Hope this helps.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.