From 448b70cc97bb36cf60e88cfbdf9a6dba72177a66 Mon Sep 17 00:00:00 2001 From: Peter McGoron Date: Sat, 8 Apr 2023 15:20:50 +0000 Subject: [PATCH] change data to base 10 instead of base 16 --- asm/creole.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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