Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The MS - DOS file date field packs the year, month, and day into 1 6 bits as follows ( as discussed in class )
The MSDOS file date field packs the year, month, and day into bits as follows as discussed in class: pts
year month day
Write the code to isolate the Day field in AL if the packed date was in AX:
mov ax dx ; make a copy of the packed data into AX
Question Blank of
type your answer...
ax
Question Blank of
type your answer...
b
CALL WriteDec ; print out the day of the month
Write the code to isolate the Month field into AL: requirement: and and then shift
mov ax dx ; make a copy of DX
AND AX
Question Blank of
type your answer...
b
Question Blank of
type your answer...
AX
Question Blank of
type your answer...
call WriteDec ; print out the month
Write the code to isolate the Year field into AL:
mov ax dx ; make a copy of DX
sar AX
Question Blank of
type your answer...
; could be hegative year less than
add ax ; add back start of time for MircoSoft
call WriteDec ; print out year
What is the date stored in DX
Day of month
Question Blank of
type your answer...
Month
Question Blank of
type your answer...
Year
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started