From 6464df7b1175570c7e2d96a723dff4b20a01fe6a Mon Sep 17 00:00:00 2001 From: yenatch Date: Mon, 13 May 2013 15:41:09 -0400 Subject: [PATCH] GetMapConnection --- main.asm | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/main.asm b/main.asm index 99f2b1af2..2c46c1d98 100644 --- a/main.asm +++ b/main.asm @@ -2493,7 +2493,25 @@ UpdateGameTimer: ; 20ad 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