diff --git a/asm/creole.py b/asm/creole.py index 60cb968..0af459a 100644 --- a/asm/creole.py +++ b/asm/creole.py @@ -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