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):
|
||||
b = bytes()
|
||||
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
|
||||
|
||||
class LabelArgument(Argument):
|
||||
|
@ -478,7 +478,7 @@ class Program:
|
|||
assert len(b) < encoding_types[lablen][0]
|
||||
return b
|
||||
|
||||
def __init__(self, reglen=16, datlen=16):
|
||||
def __init__(self, reglen=32, datlen=64):
|
||||
self.asm = []
|
||||
self.reglen = reglen
|
||||
self.datlen = datlen
|
||||
|
|
Loading…
Reference in New Issue