Rewrite mktime in assembly

-415 bytes,
-39% cycles,
Unit test expanded to cover more cases (there was a bug in 2100 before!)
This commit is contained in:
Colin Leroy-Mira
2024-01-10 22:20:43 +01:00
parent 348a9048b7
commit 03d5e5fba0
8 changed files with 575 additions and 283 deletions

View File

@@ -41,7 +41,7 @@ __time_t_to_tm:
ldx #.sizeof(tm)-1
: sta TM,x
dex
bne :-
bpl :-
; Divide t/86400
jsr udiv32