Answered step by step
Verified Expert Solution
Link Copied!

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 MS-DOS file date field packs the year, month, and day into 16 bits as follows (as discussed in class): {10 pts}
year month day
|-------------||-------||---------|
0001100010111101
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 1 of 9
type your answer...
ax,
Question Blank 2 of 9
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 3 of 9
type your answer...
b
Question Blank 4 of 9
type your answer...
AX,
Question Blank 5 of 9
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 6 of 9
type your answer...
; could be hegative (year less than 1980)
add ax,1980 ; add back start of time (for MircoSoft)
call WriteDec ; print out year
What is the date stored in DX?
Day of month
Question Blank 7 of 9
type your answer...
Month
Question Blank 8 of 9
type your answer...
Year

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Creating A Database In Filemaker Pro Visual QuickProject Guide

Authors: Steven A. Schwartz

1st Edition

0321321219, 978-0321321213

More Books

Students also viewed these Databases questions

Question

If f(x) dx = (7x - 13)10 + C, find f(x).

Answered: 1 week ago