title MS-DOS Function Calls - 2 (DOS2-3.ASM) ;Problem statement: ;Write a program that inputs the month, day, and ;year from the user. Use the values to set the system ;date with DOS function 2Bh. INCLUDE Irvine16.inc .data monthPrompt db "Enter the month: ",0 dayPrompt db "Enter the day: ",0 yearPrompt db "Enter the year: ",0 blankLine db 30 dup(" "),0dh,0 month db ? day db ? year dw ? .code main proc mov ax,@data mov ds,ax mov dx,offset monthPrompt call Writestring call Readint mov month,al mov dx,offset blankLine call Writestring mov dx,offset dayPrompt call Writestring call Readint mov day,al mov dx,offset blankLine call Writestring mov dx,offset yearPrompt call Writestring call Readint mov year,ax mov ah,2Bh ; MS-DOS Set Date function mov cx,year mov dh,month mov dl,day int 21h ; set the date now ;(AL = FFh if the date could not be set) exit main endp end main