From 57dc8c4fd0b14e4cca190061c47993e1231a931d Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Sun, 22 Sep 2013 02:27:57 -0500 Subject: add more defaults to setup_wram for testing This is sorta absurd, it should just load these values by parsing wram.asm on its own. --- tests/test_vba.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/test_vba.py') diff --git a/tests/test_vba.py b/tests/test_vba.py index e9ff73c..5098a7d 100644 --- a/tests/test_vba.py +++ b/tests/test_vba.py @@ -20,11 +20,19 @@ def setup_wram(): Loads up some default addresses. Should eventually be replaced with the actual wram parser. """ + # TODO: this should just be parsed straight out of wram.asm wram = {} wram["PlayerDirection"] = 0xd4de wram["PlayerAction"] = 0xd4e1 wram["MapX"] = 0xd4e6 wram["MapY"] = 0xd4e7 + + wram["WarpNumber"] = 0xdcb4 + wram["MapGroup"] = 0xdcb5 + wram["MapNumber"] = 0xdcb6 + wram["YCoord"] = 0xdcb7 + wram["XCoord"] = 0xdcb8 + return wram def bootstrap(): -- cgit v1.2.3