Question: Assembly language to DOS_ file_time (Chapter 7, Supplied) Suppose the time field of a file directo hours (24-hour clock). Write a procedur displays the time

Assembly language  Assembly language to DOS_ file_time (Chapter 7, Supplied) Suppose the time

to DOS_ file_time (Chapter 7, Supplied) Suppose the time field of a file directo hours (24-hour clock). Write a procedur displays the time in hh:mm:ss format. hh:mm:ss format: ry entry uses bits 0-4 for 2-second increments, bits 5-10 for minutes, and bits 11-15 for e named ShowFileTime that receives a binary file time value in the AX register and t. For example, the binary 0001 0010 0000 0111 indicates a time of 02:16:14, in binary 0 00010 010000 0011 For simplicity, we want to input 4-digit hexadecimal and show its binary to verify. For this, you can call ReadHex and WriteBinB. Then you can call your ShowFileTime to display the file time. You may call WriteDec, WriteChar, and consider prefixed zeros. Run your program; the screen will be like this C:Teaching\csc1241\KipIrvine\SixthEdition\Prog_Ex SMch07\Debug project Please enter 16-bit hexadecimal (4-digit, e.g., 1207): A103 Your equivalent binary is 1010 0001 0000 0011 Your Dos file time is 20:08:06 c:Teaching\cscI241\KipIrvinelSixthEdition\Prog_Ex_ SMch07\Debug project Please enter 16-bit hexadecimal (4-digit, e.g., 1207): 1207 Your equivalent binary is 0001 0010 0000 0111 Your DOS file time is 02:16:14 Any reusable helper procedure is preferred, such as displaying a leading zero character if the value of hours, minutes, or seconds less than 10, else displaying an original two digits

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!