mktime: tm_yday should be indexed from 0 for January 1st, not 1.

This fixes the libca07.c test case.
This commit is contained in:
Stephen Heumann 2018-03-09 17:38:14 -06:00
parent a77e44d7b5
commit 21d34a30ce
1 changed files with 0 additions and 1 deletions

View File

@ -424,7 +424,6 @@ temp2 equ 5 temp variable
div4 count,#60*60*24
ldy #14 set the days
lda count
inc A
sta [tmptr],Y
div4 temp,#60*60*24,temp2 compute the day of week
add4 temp2,#4