File tree Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -38,10 +38,7 @@ pause:
38
38
39
39
@pauseSetupPart2:
40
40
jsr updateAudioAndWaitForNmi
41
- lda #$FF
42
- ldx #$02
43
- ldy #$02
44
- jsr memset_page
41
+ jsr resetOAMStaging
45
42
46
43
@pauseLoop:
47
44
lda qualFlag
Original file line number Diff line number Diff line change @@ -59,10 +59,21 @@ updateAudioWaitForNmiAndResetOamStaging:
59
59
@checkForNmi:
60
60
lda verticalBlankingInterval
61
61
beq @checkForNmi
62
+
63
+ resetOAMStaging:
64
+ ; Hide a sprite by moving it down offscreen, by writing any values between #$EF-#$FF here.
65
+ ; Sprites are never displayed on the first line of the picture, and it is impossible to place
66
+ ; a sprite partially off the top of the screen.
67
+ ; https://www.nesdev.org/wiki/PPU_OAM
68
+ ldx #$00
62
69
lda #$FF
63
- ldx #$02
64
- ldy #$02
65
- jsr memset_page
70
+ @hideY:
71
+ sta oamStaging,x
72
+ inx
73
+ inx
74
+ inx
75
+ inx
76
+ bne @hideY
66
77
rts
67
78
68
79
updateAudioAndWaitForNmi:
You can’t perform that action at this time.
0 commit comments