Commit 39ac94f0 authored by Taddeus Kroes's avatar Taddeus Kroes

Fixed offset regex.

parent a24a3b0e
...@@ -173,7 +173,7 @@ class Statement: ...@@ -173,7 +173,7 @@ class Statement:
if self.is_branch() or self.is_store() or self.is_compare() \ if self.is_branch() or self.is_store() or self.is_compare() \
or self.is_command(*['mult', 'div', 'dsz']): or self.is_command(*['mult', 'div', 'dsz']):
if self.name == 'dsz': if self.name == 'dsz':
m = re.match('^\d+\(([^)]+)\)$', self[0]) m = re.match('^[^(]+\(([^)]+)\)$', self[0])
if m: if m:
use.append(m.group(1)) use.append(m.group(1))
...@@ -188,7 +188,7 @@ class Statement: ...@@ -188,7 +188,7 @@ class Statement:
use.append(self[1]) use.append(self[1])
# Case arg1 relative adressing # Case arg1 relative adressing
if self.is_load_non_immediate() or self.is_store(): if self.is_load_non_immediate() or self.is_store():
m = re.match('^\d+\(([^)]+)\)$', self[1]) m = re.match('^[^(]+\(([^)]+)\)$', self[1])
if m: if m:
use.append(m.group(1)) use.append(m.group(1))
......
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