gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit eb29f54bfc593b9ef950e3823c0204ec640f1e5d parent 66351b26870816445aa41ea4640b2982db7dcbf6 Author: Toxa <56631470+untoxa@users.noreply.github.com> Date: Tue, 17 Jan 2023 23:07:00 +0400 Merge pull request #469 from michel-iwaniec/nes_oam_init_fix NES: Initialize OAM at reset Diffstat:
| M | gbdk-lib/libc/targets/mos6502/nes/crt0.s | 7 | +++++++ |
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/gbdk-lib/libc/targets/mos6502/nes/crt0.s b/gbdk-lib/libc/targets/mos6502/nes/crt0.s @@ -574,6 +574,13 @@ __crt0_RESET_bankSwitchValue: ; Clear RAM and VRAM jsr __crt0_clearRAM jsr __crt0_clearVRAM + ; Hide sprites in shadow OAM, and perform OAM DMA + ldx #0 + txa + jsr _hide_sprites_range + stx OAMADDR + lda #>_shadow_OAM + sta OAMDMA ; Perform initialization of DATA area lda #<s_XINIT sta ___memcpy_PARM_2
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.