Skip to content

Commit

Permalink
Add >CC as conditional Call
Browse files Browse the repository at this point in the history
  • Loading branch information
bsdphk committed May 28, 2021
1 parent 5d6fb7b commit e0b5907
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyreveng/assy.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@ def flow_C(self):
self += code.Call(to=self.dstadr)
self += code.Next(to=self.hi)

def flow_CC(self):
if self.cc is not False:
self += code.Call(cond=str(self.cc), to=self.dstadr)
self += code.Next(to=self.hi, cond="!" + str(self.cc))

def arg(self, arg):
if arg in self.lang.verbatim:
self.oper.append(Arg_verbatim(arg))
Expand Down

0 comments on commit e0b5907

Please sign in to comment.