Skip to content

Commit

Permalink
Y2K fix
Browse files Browse the repository at this point in the history
  • Loading branch information
freitz85 committed Feb 9, 2021
1 parent f227228 commit 668ace8
Show file tree
Hide file tree
Showing 5 changed files with 213 additions and 195 deletions.
8 changes: 7 additions & 1 deletion SOURCE/SMWCLOCK.ASM
Original file line number Diff line number Diff line change
Expand Up @@ -747,9 +747,15 @@ DISPLAY:MOV AL,SW$TIME.DY ; Get day-of-week
;----------------------------------------------------------------------;
; Display the year ;
;----------------------------------------------------------------------;
CMP SW$TIME.YY,160 ; Is year greater 99?
JGE MIL ; Jump into new millenium
PRINT <'1'> ;
PRINT <'9'> ;
BIN_HEX SW$TIME.YY ; Display year
JMP DISPL ;
MIL: PRINT <'2'> ;
PRINT <'0'> ;
SUB SW$TIME.YY,160 ; Subtract 100 years in BCD
DISPL: BIN_HEX SW$TIME.YY ; Display year
PRINT <','> ;
PRINT <' '> ;
;----------------------------------------------------------------------;
Expand Down
Binary file modified SOURCE/SMWCLOCK.COM
Binary file not shown.
Loading

0 comments on commit 668ace8

Please sign in to comment.