I followed the instructions to enter the following commands as shown, but I am n
ID: 3919086 • Letter: I
Question
I followed the instructions to enter the following commands as shown, but I am not sure how to answer the questions about my observations. I only need help with 3 or 4
The sun is 93,000,000 miles from the Earth. The speed of light is 186,000 miles per second. How long does it take a ray of light to reach the Earth? The correct answer is 8 minutes, 20 seconds. For this lab assignment, complete the following: 1. Open a command window (or DosBox), start DEBUG, and enter these commands: mov dx,1 mov ax,6b48 mov bx,00ba div bx mov bl,3c div bl t 6 2. Remember that a screenshot showing your DEBUG results should be included in your lab report. 3. What is the final value in the AX register? Does it represent some combination of 8 and 20? Hint: Remember that DEBUG only works with hexadecimal numbers. 4. Explain how the calculations were performed in SUN.SCR. For example, were the numbers 93,000,000 and 186,000 represented anywhere? If not, why not?Explanation / Answer
The value stored in ax is 1408h which is a combination of 14 and 08 in hex where 14h=20d and 08h=8d
where h is hex and d is decimal
Q4
The numbers 93,000,000 and 186000 are represented as 93000 and 186 as on dividing the two the three zeroes will be canceled nullifying the effect hence we don't use them in representation in hex form
as div bx will take the values stored as dx: ax Hence it effectively stores 16B48 in hex format which is 93000 in decimal
and ba is 186 in decimal
which we then divide to get the time in seconds and then we divide it by 60 =3C to get the time in minutes which is stored in AH and AL
Do give a thumbs up
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.