diff options
author | Bryan Bishop <kanzure@gmail.com> | 2012-05-14 00:51:16 -0500 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2012-05-14 00:51:16 -0500 |
commit | 11442b84eb9e573dd19b2176bf9f51a53e51a5a1 (patch) | |
tree | 628a376a49931848356283f37ef95714f7fb7319 | |
parent | 893efe957d6f62fbfff93e4c2a7e6c24e835b39c (diff) |
fix PointerLabelParams in signposts
original-commit-id: f43de05607d2e65bc20ea571b7ce5cfb61a300bd
-rw-r--r-- | crystal.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -3833,7 +3833,7 @@ class Signpost(Command): debug=self.debug) self.remotes.append(r1) - mb = PointerLabelParam(address=address, map_group=self.map_group, map_id=self.map_id, debug=self.debug) + mb = PointerLabelParam(address=self.address+3, map_group=self.map_group, map_id=self.map_id, debug=self.debug) self.params.append(mb) elif func == 7: #signpost's script pointer points to [Bit-Nr. (2byte)][Item no.] @@ -3851,7 +3851,7 @@ class Signpost(Command): debug=self.debug) self.remotes.append(r1) - mb = PointerLabelParam(address=address, map_group=self.map_group, map_id=self.map_id, debug=self.debug) + mb = PointerLabelParam(address=self.address+3, map_group=self.map_group, map_id=self.map_id, debug=self.debug) self.params.append(mb) #bit_table_byte1 = ord(rom[address]) @@ -3873,7 +3873,7 @@ class Signpost(Command): debug=self.debug) self.remotes.append(r1) - mb = PointerLabelParam(address=address, map_group=self.map_group, map_id=self.map_id, debug=self.debug) + mb = PointerLabelParam(address=self.address+3, map_group=self.map_group, map_id=self.map_id, debug=self.debug) self.params.append(mb) else: raise Exception, "unknown signpost type byte="+hex(func) + " signpost@"+hex(self.address) |