Skip to content

Commit

Permalink
Merge pull request #4 from Threetwosevensixseven/main
Browse files Browse the repository at this point in the history
Bugfix: Reset lower word of 32bit timeout to $FFFF when upper word ro…
  • Loading branch information
remy authored Feb 27, 2022
2 parents 61c4d31 + d1a10e2 commit 648ee27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/esp-timeout.asm
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Value2 EQU $+1
jr z, Failure ; If we hit here, 32 bit value is $00000000
dec hl
ld (Value2), hl
ld hl, ESPTimeout mod 65536
ld hl, $FFFF ; Reset lower word when upper word rolls down, so always reset to $FFFF
ld (Value), hl
jr Success
ENDMODULE

0 comments on commit 648ee27

Please # to comment.