org 100h
;print msg
mov ah, 9
mov dx, msg
int 21h
;store current year at register CX
mov ah, 2Ah
int 21h
;attempt to print year
mov ah, 9
mov dx, cx
int 21h
mov ah, 4Ch
int 21h
msg db "Current Year: ", '$'
I coded this hoping to print the current year (2011).
How can I make this work?