diff options
Diffstat (limited to 'main.asm')
-rw-r--r-- | main.asm | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -56,6 +56,21 @@ stz VMADDH DMA 9,zero,$18,0 + ; Clear OAM + ; +ClearOAM: + stz OAMADDL + stz OAMADDH + INDEX16 + ldx #0 +.loop + stz OAMDATA + stz OAMDATA + inx + cpx #544/2 + bne loop + INDEX8 + ; Copy 4-colour tiles ; stz VMADDL @@ -80,6 +95,9 @@ ; stz CGADD DMA 0,PaletteData,$22,PaletteDataLen + lda #$80 + sta CGADD + DMA 0,PaletteData,$22,PaletteDataLen ; Copy BG3 ; @@ -118,9 +136,19 @@ copybg3: lda #$40 sta BG3SC + lda #-52 + sta BG3HOFS + stz BG3HOFS + lda #-32 + sta BG3VOFS + stz BG3VOFS + lda #$0f sta INIDISP + lda #$81 + sta NMITIMEN + ; Loop forever. Forever: jmp Forever |