mirror of
https://github.com/michaelcmartin/Ophis.git
synced 2024-05-29 00:41:29 +00:00
fix bugs with ($nn),Z addressing modes.
This commit is contained in:
parent
b126b3e914
commit
acafca8b73
|
@ -401,6 +401,9 @@ class PCTracker(Pass):
|
|||
def visitPointerY(self, node, env):
|
||||
env.incPC(3)
|
||||
|
||||
def visitPointerZ(self, node, env):
|
||||
env.incPC(3)
|
||||
|
||||
def visitCheckPC(self, node, env):
|
||||
pass
|
||||
|
||||
|
@ -476,6 +479,10 @@ class Collapse(PCTracker):
|
|||
self.changed |= collapse_y_ind(node, env)
|
||||
PCTracker.visitPointerY(self, node, env)
|
||||
|
||||
def visitPointerZ(self, node, env):
|
||||
self.changed |= collapse_z_ind(node, env)
|
||||
PCTracker.visitPointerZ(self, node, env)
|
||||
|
||||
# Previously zero-paged elements may end up un-zero-paged by
|
||||
# the branch extension pass. Force them to Absolute equivalents
|
||||
# if this happens.
|
||||
|
|
Loading…
Reference in New Issue
Block a user