Skip to content

Commit

Permalink
Set cc for CJNE
Browse files Browse the repository at this point in the history
  • Loading branch information
bsdphk committed May 27, 2021
1 parent ab74b8d commit 5d6fb7b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions pyreveng/cpu/mcs51.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@
ANL C,abit |1 0 0 0 0 0 1 0| abit |
ANL C,nabit |1 0 1 1 0 0 0 0| abit |
CJNE A,adir,arel,>JC |1 0 1 1 0 1 0 1| adir | arel |
CJNE A,data,arel,>JC |1 0 1 1 0 1 0 0| data | arel |
CJNE Rn,data,arel,>JC |1 0 1 1 1| rn | data | arel |
CJNE iri,data,arel,>JC |1 0 1 1 0 1 1|i| data | arel |
CJNE eq,A,adir,arel,>JC |1 0 1 1 0 1 0 1| adir | arel |
CJNE eq,A,data,arel,>JC |1 0 1 1 0 1 0 0| data | arel |
CJNE eq,Rn,data,arel,>JC |1 0 1 1 1| rn | data | arel |
CJNE eq,iri,data,arel,>JC |1 0 1 1 0 1 1|i| data | arel |
CLR A |1 1 1 0 0 1 0 0| {
%A = i8 0x00
Expand Down Expand Up @@ -259,6 +259,9 @@ def assy_abit(self):
b = self['abit']
return assy.Arg_dst(self.lang.as_bit, b)

def assy_eq(self):
self.cc = "NE"

def assy_bj(self):
b = self['abit']
t = list(self.lang.as_bit.get_labels(b))
Expand Down

0 comments on commit 5d6fb7b

Please sign in to comment.