summaryrefslogtreecommitdiff
path: root/sys/src/libregexp/rregexec.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2021-02-10 09:00:05 +0000
committerMichael Forney <mforney@mforney.org>2022-03-18 17:25:43 -0700
commitd5368b0799a2a335f4accac2027617c433db4fef (patch)
tree19ba2d967ce6dd3ab8162d0fe48b4d06de1137e4 /sys/src/libregexp/rregexec.c
parent638b82129e750940b4d886c17c7c0ba9d8dbceac (diff)
games/gb: various RTC fixes
MBC3 write switches on a>>13, so the RTC register is 5 (0xA000-0xBFFF). Mask off upper bits of DH register when updating the timer. Only the lowest bit is part of the day counter. Use uint for x in timerforward() so that we don't set negative values for timer registers if it happens to overflow. Update timer and then latch rather than the other way around. Otherwise, timer remains static and will overflow after 512 days.
Diffstat (limited to 'sys/src/libregexp/rregexec.c')
0 files changed, 0 insertions, 0 deletions