shithub: pokecrystal

Download patch

ref: abce472354d0095537165f4d0a5d2db572dfa98b
parent: 28fd514bef1c7c345672ebe65ba00abb95053431
author: yenatch <[email protected]>
date: Sat Aug 31 17:24:49 EDT 2013

fix PushOAM references in VBlank

--- a/engine/vblank.asm
+++ b/engine/vblank.asm
@@ -131,8 +131,8 @@
 	
 ; update oam by dma transfer
 	call hPushOAM
-;	403f:
-;		ld a, $c4
+;	@PushOAM:
+;		ld a, Sprites >> 8
 ;		ld [rDMA], a
 ;		ld a, $28
 ;	.loop
@@ -233,8 +233,8 @@
 	call LoadTiles
 ; update oam by dma transfer
 	call hPushOAM
-;	403f:
-;		ld a, $c4
+;	@PushOAM:
+;		ld a, Sprites >> 8
 ;		ld [rDMA], a
 ;		ld a, $28
 ;	.loop
@@ -342,8 +342,8 @@
 	
 ; update oam by dma transfer
 	call hPushOAM
-;	403f:
-;		ld a, $c4 ; Sprites / $100
+;	@PushOAM:
+;		ld a, Sprites >> 8
 ;		ld [rDMA], a
 ;		ld a, $28
 ;	.loop
@@ -414,8 +414,8 @@
 	
 ; update oam by dma transfer
 	call hPushOAM
-;	403f:
-;		ld a, $c4
+;	@PushOAM:
+;		ld a, Sprites >> 8
 ;		ld [rDMA], a
 ;		ld a, $28
 ;	.loop
--- a/main.asm
+++ b/main.asm
@@ -9199,7 +9199,7 @@
 ; 403f
 
 PushOAM: ; 403f
-	ld a, $c4
+	ld a, Sprites >> 8
 	ld [rDMA], a
 	ld a, $28
 .loop