Skip to content

Commit

Permalink
Polish & Typos
Browse files Browse the repository at this point in the history
  • Loading branch information
bsdphk committed May 2, 2021
1 parent e3e4152 commit c1e17e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion pyreveng/cpu/mcs96.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,6 @@ def __init__(self, lang="mcs96"):
endian='<',
)
self.it.load_string(MCS96_DESC, MCS96Ins)
self.it.load_string(MCS80C196KB_DESC, MCS96Ins)
self.it.load_string(MCS96_MACRO, MCS96Ins)

def vectors(self, which=None):
Expand Down
7 changes: 3 additions & 4 deletions pyreveng/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,11 @@ def __init__(self, asp, lo, hi=None, fmt=None, func=None, size=1):
func = asp.__getitem__
if fmt is None:
fmt = "0x%x"
v = []
self.val = []
for a in range(lo, hi, size):
v.append(fmt % func(a))
self.fmt = ",".join(v)
self.val.append(func(a))
self.fmt = ",".join(fmt % i for i in self.val)
self.typ = ".CONST"
self.val = None
self.compact = True

def render(self):
Expand Down

0 comments on commit c1e17e1

Please sign in to comment.