diff options
author | Bryan Bishop <kanzure@gmail.com> | 2013-09-21 19:31:44 -0500 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2013-09-21 19:31:44 -0500 |
commit | 975eb021754c3a1ad6a5aa447358212564382351 (patch) | |
tree | f6793ea6fdf1d301535220e8ab5a33c0ad66d112 /pokemontools/vba/vba.py | |
parent | 7f5151989b504d9561f041aaacff9916a9c68568 (diff) |
pass vba and registers into call()
Diffstat (limited to 'pokemontools/vba/vba.py')
-rw-r--r-- | pokemontools/vba/vba.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pokemontools/vba/vba.py b/pokemontools/vba/vba.py index b403236..f6a0f7b 100644 --- a/pokemontools/vba/vba.py +++ b/pokemontools/vba/vba.py @@ -53,7 +53,7 @@ def translate_chars(charz): result += chars[each] return result -def call(bank, address): +def call(bank, address, vba=vba, registers=registers): """ Jumps into a function at a certain address. @@ -491,7 +491,7 @@ class crystal: class TestEmulator(unittest.TestCase): def test_PlaceString(self): - call(0, 0x1078) + call(vba, 0, 0x1078) # where to draw the text registers["hl"] = 0xc4a0 |