aboutsummaryrefslogtreecommitdiff
path: root/src/jetpac.s
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mssola@mssola.com>2026-03-18 16:05:14 +0100
committerMiquel Sabaté Solà <mssola@mssola.com>2026-03-18 16:05:14 +0100
commit8f2acc62a46a0233151faadad1a7d2a828bef3a4 (patch)
tree1e7c3a038cbb7b2dad4ded77c7d2c40f4aaa4d3f /src/jetpac.s
parent6b72b7d120720086709df2c4aa9f4ab50b6fad8f (diff)
downloadjetpac.nes-8f2acc62a46a0233151faadad1a7d2a828bef3a4.tar.gz
jetpac.nes-8f2acc62a46a0233151faadad1a7d2a828bef3a4.zip
Fix the high byte for the timer initialization
In my infinite wisdom, in order to compute the high byte of the 16-bit timer I masked away the most significant byte, but then shifted right only for a nibble instead of a full byte. This went mostly unnoticed as the value I'm setting for the timer actually falls below of what a byte can represent and, thus, the high byte was always zero. But this was noticeable when I was testing larger numbers which, unsurprisingly, turned out to be _huge_. Fix this by shifting right a full byte instead of a mere nibble. Fixes: cf3a0c963225 ("Implement falling items") Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'src/jetpac.s')
0 files changed, 0 insertions, 0 deletions