aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGene Cumm <gene.cumm@gmail.com>2010-11-02 22:52:09 -0400
committerGene Cumm <gene.cumm@gmail.com>2010-11-02 22:52:09 -0400
commit493d85538405c0d631e82437c2aaccf1cb9ca75a (patch)
tree224e9b2c6176428879aa0f04afccdc3ec02924c4
parent4517ddd4b4c8be2d575db4e7743fee32718f9fd9 (diff)
downloadsyslinux-493d85538405c0d631e82437c2aaccf1cb9ca75a.tar.gz
syslinux-493d85538405c0d631e82437c2aaccf1cb9ca75a.tar.xz
syslinux-493d85538405c0d631e82437c2aaccf1cb9ca75a.zip
ver.com: Fix month calculation for DRMK Build Date
-rw-r--r--modules/ver.asm8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/ver.asm b/modules/ver.asm
index d3b6cb61..ddb96a77 100644
--- a/modules/ver.asm
+++ b/modules/ver.asm
@@ -410,10 +410,16 @@ getprn_drmkver:
;writedate_ax Write a date in AX in ISO8601 big endian format
; Input
; AX Date in 16-bit DOS format
+; 2006-01-11
+; 0011010 0001 01011
writedate_ax:
pushad
pushfd
mov dx,ax
+%ifdef DEBUG
+ call writehex4
+ call crlf
+%endif
.year:
shr ax,9
add ax,1980
@@ -422,7 +428,7 @@ writedate_ax:
call writechr
mov ax,dx
.month:
- shr ax,9
+ shr ax,5
and ax,0Fh
; cmp ax,10
; jae .month_wri