I am a beginner and am trying to display the current date. So far I have this but it just keeps printing Sunday which is the first entry in the "DayName" array. I am trying to get the current date from the system to display. Can anyone direct me in what I am doing wrong.
Heres my code...if need to see my macro file let me know.
.DATA
Day_length EQU 11
DayName DB 'Sunday.$ ',
'Monday.$ ',
'Tuesday.$ ',
'Wednesday.$' ,
'Thursday.$ ',
'Friday.$ ',
'Saturday.$ '
Message DB 'Today is $'
.CODE
main PROC
_initreg
_showText Message
_initreg
_GetDate
mov bl, Day_length
imul bl
mov ax, OFFSET DayName
_showDay DayName
_endProg
Any help in the right direction would be appreciated!!
Heres my code...if need to see my macro file let me know.
.DATA
Day_length EQU 11
DayName DB 'Sunday.$ ',
'Monday.$ ',
'Tuesday.$ ',
'Wednesday.$' ,
'Thursday.$ ',
'Friday.$ ',
'Saturday.$ '
Message DB 'Today is $'
.CODE
main PROC
_initreg
_showText Message
_initreg
_GetDate
mov bl, Day_length
imul bl
mov ax, OFFSET DayName
_showDay DayName
_endProg
Any help in the right direction would be appreciated!!