Skip to content

Commit

Permalink
[UTIL] fix setting month when a year is a leap year
Browse files Browse the repository at this point in the history
  • Loading branch information
mooinglemur committed Jan 11, 2024
1 parent 1d14c5c commit b76eb1d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions util/control.s
Original file line number Diff line number Diff line change
Expand Up @@ -1998,6 +1998,7 @@ dec_month:
ldx #rtc_address
ldy #5
jsr i2c_read_byte
and #$1f
sed
sec
sbc #1
Expand Down Expand Up @@ -2088,6 +2089,7 @@ inc_month:
ldx #rtc_address
ldy #5
jsr i2c_read_byte
and #$1f
sed
clc
adc #1
Expand Down

0 comments on commit b76eb1d

Please sign in to comment.