Thanks!! I got it. I just moved the ax into another variable and created a new macro as such, to display the correct day:
_showDay MACRO text
mov dx, text
mov ah, 09h
int 21h
ENDM
I still get "Today is Sunday." as my result. Am I missing the concept of something? It seems to be just taking the first one on the list.
Heres my .asm and .lib:
; Macro to initialize registers at program start
_initreg MACRO
mov ax, @data ; Initialize
mov ds, ax ; Segment registers
sub...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.