Skip to content

Commit

Permalink
Add clear oam ppu function
Browse files Browse the repository at this point in the history
  • Loading branch information
SirBob01 committed Oct 15, 2023
1 parent 0396a2b commit 7883d89
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ppu.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,10 @@ void set_vblank_ppu(ppu_t *ppu) {
}
}

void clear_oam_ppu(ppu_t *ppu) {
// Clear the OAM
}

void evaluate_sprites_ppu(ppu_t *ppu) {
// Implement sprite evaluation
}
Expand Down Expand Up @@ -372,7 +376,7 @@ void execute_events_ppu(ppu_t *ppu, ppu_event_t *events) {
set_vblank_ppu(ppu);
break;
case PPU_EVENT_CLEAR_OAM:
ppu->secondary_oam[ppu->dot >> 1] = 0xFF;
clear_oam_ppu(ppu);
break;
case PPU_EVENT_EVALUATE_SPRITES:
evaluate_sprites_ppu(ppu);
Expand Down

0 comments on commit 7883d89

Please sign in to comment.