From bcfac567ed5bb9e5254a41fc7ef20d325d5763b5 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Fri, 1 Mar 2013 13:30:44 -0600 Subject: [PATCH] fix bank handling in vba.call --- extras/vba.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extras/vba.py b/extras/vba.py index 8d20a6edb..14c96e3f1 100644 --- a/extras/vba.py +++ b/extras/vba.py @@ -559,7 +559,7 @@ def call(bank, address): print "actual memory values: " + str(get_memory_range(registers.sp , 2)) print "wrong value at " + hex(registers.sp) + " expected " + hex(value) + " but got " + hex(get_memory_at(registers.sp)) - if bank != 1: + if bank != 0: registers["af"] = (bank << 8) | (registers["af"] & 0xFF) registers["hl"] = address registers["pc"] = 0x2d63 # FarJump @@ -820,7 +820,7 @@ class TestEmulator(unittest.TestCase): shutdown() def test_PlaceString(self): - call(1, 0x1078) + call(0, 0x1078) # where to draw the text registers["hl"] = 0xc4a0