ref: 6464df7b1175570c7e2d96a723dff4b20a01fe6a
parent: afa35111a444890d57c0228d8213d38c606f9b60
author: yenatch <[email protected]>
date: Mon May 13 11:41:09 EDT 2013
GetMapConnection
--- a/main.asm
+++ b/main.asm
@@ -2493,7 +2493,25 @@
ret
; 210f
-INCBIN "baserom.gbc", $210f, $261f - $210f
+
+INCBIN "baserom.gbc", $210f, $23a3 - $210f
+
+
+GetMapConnection: ; 23a3
+; Load map connection struct at hl into de.
+ ld c, MapConnectionSouth - MapConnectionNorth
+.loop
+ ld a, [hli]
+ ld [de], a
+ inc de
+ dec c
+ jr nz, .loop
+ ret
+; 23ac
+
+
+INCBIN "baserom.gbc", $23ac, $261f - $23ac
+
PushScriptPointer: ; 261f
; used to call a script from asm