pre/post-indexed to pre/post_indexed. Now have use ImmediateOperand type for mem offset. Changed some parser tests also

This commit is contained in:
stefandesouza
2023-12-02 16:56:43 +01:00
parent e77dfb4eb3
commit 37ca6670c7
25 changed files with 859 additions and 803 deletions

View File

@@ -54,14 +54,11 @@ class ImmediateOperand(Operand):
def __str__(self):
return (
f"ImmediateOperand(identifier_id={self._identifier_id}, type_id={self._type_id}, "
f"value_id={self._value_id}, shift_id={self._shift_id})"
f"value_id={self._value_id}, shift_id={self._shift_id}, source={self._source}, destination={self._destination})"
)
def __repr__(self):
return (
f"ImmediateOperand(identifier_id={self._identifier_id}, type_id={self._type_id}, "
f"value_id={self._value_id}, shift_id={self._shift_id})"
)
return self.__str__()
def __eq__(self, other):
if isinstance(other, ImmediateOperand):