[syslinux:master] ver.com: Fix month calculation for DRMK Build Date

syslinux-bot for Gene Cumm gene.cumm at gmail.com
Sun Nov 14 12:55:22 PST 2010


Commit-ID:  493d85538405c0d631e82437c2aaccf1cb9ca75a
Gitweb:     http://syslinux.zytor.com/commit/493d85538405c0d631e82437c2aaccf1cb9ca75a
Author:     Gene Cumm <gene.cumm at gmail.com>
AuthorDate: Tue, 2 Nov 2010 22:52:09 -0400
Committer:  Gene Cumm <gene.cumm at gmail.com>
CommitDate: Tue, 2 Nov 2010 22:52:09 -0400

ver.com: Fix month calculation for DRMK Build Date



---
 modules/ver.asm |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/modules/ver.asm b/modules/ver.asm
index d3b6cb6..ddb96a7 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



More information about the Syslinux-commits mailing list