shithub: pokecrystal

Download patch

ref: 586a49c8adc48b83fe0879a5b3fe62e627bd1df2
parent: 1321a700293341dd9bc33ba0637e475f209cce91
author: Remy Oukaour <[email protected]>
date: Fri Dec 29 12:07:21 EST 2017

lda_coord and ldcoord_a exist for this

--- a/home/joypad.asm
+++ b/home/joypad.asm
@@ -442,10 +442,10 @@
 	jr .load_cursor_state
 
 .cursor_off
-	ld a, [TileMap + 17 + 17 * SCREEN_WIDTH]
+	lda_coord 17, 17
 
 .load_cursor_state
-	ld [TileMap + 18 + 17 * SCREEN_WIDTH], a
+	ldcoord_a 18, 17
 	ret
 ; b06