change data to base 10 instead of base 16
This commit is contained in:
parent
73c5beb90e
commit
448b70cc97
|
@ -75,7 +75,7 @@ class StringArgument(Argument):
|
||||||
def __call__(self):
|
def __call__(self):
|
||||||
b = bytes()
|
b = bytes()
|
||||||
for v in self.val:
|
for v in self.val:
|
||||||
b = b + Argument(ArgType.IMM, int(v, base=16))()
|
b = b + Argument(ArgType.IMM, int(v, base=10))()
|
||||||
return b
|
return b
|
||||||
|
|
||||||
class LabelArgument(Argument):
|
class LabelArgument(Argument):
|
||||||
|
@ -478,7 +478,7 @@ class Program:
|
||||||
assert len(b) < encoding_types[lablen][0]
|
assert len(b) < encoding_types[lablen][0]
|
||||||
return b
|
return b
|
||||||
|
|
||||||
def __init__(self, reglen=16, datlen=16):
|
def __init__(self, reglen=32, datlen=64):
|
||||||
self.asm = []
|
self.asm = []
|
||||||
self.reglen = reglen
|
self.reglen = reglen
|
||||||
self.datlen = datlen
|
self.datlen = datlen
|
||||||
|
|
Loading…
Reference in New Issue