We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f06dace commit d4a2dc1Copy full SHA for d4a2dc1
src/util/core.asm
@@ -250,12 +250,12 @@ generateNextPseudorandomNumber:
250
lsr
251
ror tmp1,x
252
ror tmp2,x
253
- lda #$00
254
- adc oneThirdPRNG
255
- cmp #$03
256
- bne @not3
257
258
-@not3: sta oneThirdPRNG
+ lda oneThirdPRNG
+ sbc #$00
+ bpl @noReset
+ lda #$2
+@noReset:
+ sta oneThirdPRNG
259
rts
260
261
; canon is initializeOAM
0 commit comments