change data to base 10 instead of base 16

This commit is contained in:
Peter McGoron 2023-04-08 15:20:50 +00:00
parent 73c5beb90e
commit 448b70cc97
1 changed files with 2 additions and 2 deletions

View File

@ -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