Skip to content

Commit

Permalink
Clear VRAM when launch
Browse files Browse the repository at this point in the history
  • Loading branch information
zniqco committed Jul 18, 2022
1 parent 889c9a8 commit 515faea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ static void write_u32_by_object(u16 x, u16 y, u16 palette, u32 value) {
}

int main() {
// Clear VRAM
memory_fill32((u32 *)VRAM, 0, 0x18000);

// IRQ
irqInit();
irqSet(IRQ_VBLANK, mmVBlank);
Expand Down

0 comments on commit 515faea

Please sign in to comment.