Skip to content

Commit

Permalink
Version number increased
Browse files Browse the repository at this point in the history
  • Loading branch information
freitz85 committed Aug 19, 2021
1 parent 668ace8 commit 20ff00e
Show file tree
Hide file tree
Showing 6 changed files with 263 additions and 220 deletions.
Binary file modified SMWCLOCK.COM
Binary file not shown.
16 changes: 11 additions & 5 deletions SOURCE/SMWCLOCK.ASM
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
TITLE SMW$CLOCK V01.02
TITLE SMW$CLOCK V01.03
NAME SMW$CLOCK
PAGE 64,132
;----------------------------------------------------------------------;
Expand Down Expand Up @@ -86,6 +86,11 @@
; Fix bug in setting of 24-hour mode. ;
; 24-hour mode is selected by clearing ;
; rather than setting the mode bit. ;
; ;
; V01.03 - 21-DEC-2020, Florian Reitz ;
; Y2K fix in DISPLAY. ;
; Years after 1999 are now printed ;
; correctly. ;
;----------------------------------------------------------------------;
; Assemble using standard instructions and suppress expansions ;
;----------------------------------------------------------------------;
Expand Down Expand Up @@ -591,7 +596,7 @@ VECTOR: CASE BX,0,2,<>,<FIND,CAL,SET>
;----------------------------------------------------------------------;
; Display the SmartWatch segment address ;
;----------------------------------------------------------------------;
FIND: PRINT ,<'SmartWatch V01.02 found at address '>
FIND: PRINT ,<'SmartWatch V01.03 found at address '>

MOV AX,SW$PARA ; Get address segment
BIN_HEX AH ; Display high nibble
Expand Down Expand Up @@ -747,15 +752,16 @@ DISPLAY:MOV AL,SW$TIME.DY ; Get day-of-week
;----------------------------------------------------------------------;
; Display the year ;
;----------------------------------------------------------------------;
CMP SW$TIME.YY,160 ; Is year greater 99?
CMP SW$TIME.YY,0A0h ; Is year greater 99?
JGE MIL ; Jump into new millenium
PRINT <'1'> ;
PRINT <'9'> ;
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
MOV AL,SW$TIME.YY ;
SUB AL,0A0h ; Subtract 100 years in BCD
DISPL: BIN_HEX AL ; Display year
PRINT <','> ;
PRINT <' '> ;
;----------------------------------------------------------------------;
Expand Down
Binary file modified SOURCE/SMWCLOCK.COM
Binary file not shown.
Loading

0 comments on commit 20ff00e

Please sign in to comment.