diff options
author | Bryan Bishop <kanzure@gmail.com> | 2013-03-01 13:30:44 -0600 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2013-03-01 13:30:44 -0600 |
commit | e06886df6d6720fa96acf2b2a3955904785761b1 (patch) | |
tree | 6d97d8952d502da9fd25e1b74d26a5af777f7e68 /vba.py | |
parent | 3cdb1a5a8e2f5f52e348008a764466a88d218654 (diff) |
fix bank handling in vba.call
original-commit-id: bcfac567ed5bb9e5254a41fc7ef20d325d5763b5
Diffstat (limited to 'vba.py')
-rw-r--r-- | vba.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |