nathanielbabiak 2021-08-17 23:16 (Edited)
I wrote this for the updated drugwars game. It was harder than I thought it'd be, figured I'd share it.
Date serial number calculation from date (and vice versa) is based on the Wikipedia article Julian Day.
I learned LowRes NX rounds towards negative infinity (as the manual shows) when using the INT
instruction, but rounds towards zero when using \
(integer division).
This caused an update to my notes on how LowRes NX works.