From 21d34a30ced17b8564e90caf28652a062dd209a2 Mon Sep 17 00:00:00 2001 From: Stephen Heumann Date: Fri, 9 Mar 2018 17:38:14 -0600 Subject: [PATCH] mktime: tm_yday should be indexed from 0 for January 1st, not 1. This fixes the libca07.c test case. --- time.asm | 1 - 1 file changed, 1 deletion(-) diff --git a/time.asm b/time.asm index 8f868d4..abe25b5 100644 --- a/time.asm +++ b/time.asm @@ -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