The sun is 93,000,000 miles from the Earth. The speed of light is 186,000 miles
ID: 1716911 • Letter: T
Question
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:
a
mov dx,1
mov ax,6b48
mov bx,00ba
div bx
mov bl,3c
div bl
r
t 6
q
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?
I executed the commands and got the following:
I'm stuck on questions 3 and 4 because I'm not sure how the mathematical operation was completed with only the commands given.
Explanation / Answer
3) the AX register hold 1408, thats is in AX register HOLD 14 in msb which represent the second, if we convert 14 to decimal its 20. the remaion 08, if we conveert this to decimal we get 08, which is represent mintes.
so AX hold the result, the msb represent the seconds, and LSB represent the mintes.
4)initialy AX hold the value 18539, which is aproximate value of 186,000
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.