Commit 08c545ce authored by Jayke Meijer's avatar Jayke Meijer

Fixed the mother of all typos.

parent a38a01fb
...@@ -111,8 +111,8 @@ class Statement: ...@@ -111,8 +111,8 @@ class Statement:
"""Check if the statement is a logical operator.""" """Check if the statement is a logical operator."""
return self.is_command() and re.match('^(xor|or|and)i?$', self.name) return self.is_command() and re.match('^(xor|or|and)i?$', self.name)
def is_double_aritmethic(self): def is_double_arithmetic(self):
"""Check if the statement is a aritmethic .d operator.""" """Check if the statement is a arithmetic .d operator."""
return self.is_command() and \ return self.is_command() and \
re.match('^(add|sub|div|mul)\.d$', self.name) re.match('^(add|sub|div|mul)\.d$', self.name)
...@@ -153,7 +153,7 @@ class Statement: ...@@ -153,7 +153,7 @@ class Statement:
instr = ['move', 'addu', 'subu', 'li', 'mtc1', 'dmfc1', 'mov.d'] instr = ['move', 'addu', 'subu', 'li', 'mtc1', 'dmfc1', 'mov.d']
if self.is_load_non_immediate() or self.is_arith() \ if self.is_load_non_immediate() or self.is_arith() \
or self.is_logical() or self.is_double_aritmethic() \ or self.is_logical() or self.is_double_arithmetic() \
or self.is_move_from_spec() or self.is_double_unary() \ or self.is_move_from_spec() or self.is_double_unary() \
or self.is_set_if_less() or self.is_convert() \ or self.is_set_if_less() or self.is_convert() \
or self.is_truncate() or self.is_load() \ or self.is_truncate() or self.is_load() \
...@@ -178,7 +178,7 @@ class Statement: ...@@ -178,7 +178,7 @@ class Statement:
use.append(self[0]) use.append(self[0])
# Case arg1 direct adressing # Case arg1 direct adressing
if (self.is_branch() and not self.is_branch_zero()) or self.is_shift()\ if (self.is_branch() and not self.is_branch_zero()) or self.is_shift()\
or self.is_double_aritmethic() or self.is_double_unary() \ or self.is_double_arithmetic() or self.is_double_unary() \
or self.is_logical() or self.is_convert() \ or self.is_logical() or self.is_convert() \
or self.is_truncate() or self.is_set_if_less() \ or self.is_truncate() or self.is_set_if_less() \
or self.is_command(*instr): or self.is_command(*instr):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment