need help adding onto already built code. assembly language prompt: create progr

need help adding onto already built code. assembly language
prompt: create program that will ask the user the time and date (see format below), and pack it up into MS-DOS File Date format, display that number, and then unpack it and display it display it to the screen
When asking the user for the date, ask for the Date, Month, and Year and read in each as a Dec (ReadDec). The MS-DOS File Date is
Bit index # Num of Bits
Day 0-4 5
Month: 5-8 4
Year: 9-15 7
The year is stored as number of years since 1980
So 31st Dec 1999 would be store as 31, 12, and 19 in binary
day month year
31 12 19
11111 1100 0010011
modify code as you wish: ->
INCLUDE Irvine32.inc
INCLUDE macros.inc
.data
day WORD 10   
month WORD 11
year WORD 2021
.code
main PROC
;
;
mov dx, year
sub dx, 1980
; add month
shl dx, 4
add dx, month
;
shl dx, 5
add dx, day
movzx eax, dx
mov ebx, TYPE WORD
call WriteBinB
call CRLF
mwriteln  “0101 0011 0110 1010”
mov ax, dx
and ax, 011111b
call WriteInt
call CRLF
;month
mov ax, dx
;shr ax, 5
;and ax, 01111b
and ax, 0111100000b
shr ax, 5
call WriteInt
call CRLF
;year
mov ax, dx
shr ax, 9
add ax, 1980
call WriteInt
call CRLF
exit
main ENDP
END main

Posted in Uncategorized

Place this order or similar order and get an amazing discount. USE Discount code “GET20” for 20% discount