Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The Problem When Microsoft developed the File Allocation Table ( FAT ) system to record information about disk drives, it included a custom date format.
The Problem When Microsoft developed the File Allocation Table FAT system to record information about disk drives, it included a custom date format. This economized on space by fitting the month, day, and year into a bit word. To accomplish this, the range of dates was limited The FAT date comprises three data items: The year, limited to a range of to seven bits The month four bits The day five bits Hence, the FAT system stores the number of years past rather than the actual year. So a value of decimal in the year represents the year The following image shows the layout of the bit date:Microsoft FAT Date Format
Year
minus
Month
Day
For example, October would be stored as a FAT date of x
Your assignment is to write ARM assembly language instructions which accept an
input FAT date value, validate it and break it into its component fields. You should
also validate the month field.
Input
Your program input will be a FAT date in bits : of register
Output
Your program should place the year in register the month in register and the day
in register Before ending, perform the following validations:
If the month field is not in the range of through place in register
DOS treated zero dates as though they were If the input bit
FAT date was all zeroes, set the year R to zero, the month R to one, and
the day R to one.
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