Skip to content

Commit b97e480

Browse files
committed
add x64 arch + full x86/64 SSE decoder
1 parent b7dc45e commit b97e480

22 files changed

Lines changed: 4835 additions & 254 deletions

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
tags
22
*.pyc
3-
<<<<<<< HEAD
4-
=======
53
*.swp
6-
>>>>>>> develop
74
build/
85
tests/

amoco/arch/core.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,13 @@ def decode(self,istr,endian=1,i=None,ival=None):
389389
if type(v)==type(lambda:1): v=v(b)
390390
kargs[k] = v
391391
# and call hooks:
392-
self.hook(obj=i,**kargs)
392+
try:
393+
self.hook(obj=i,**kargs)
394+
except InstructionError:
395+
# clean up:
396+
i.bytes = i.bytes[:-len(bs)]
397+
for k in self.iattr.iterkeys(): delattr(i,k)
398+
raise InstructionError(i)
393399
return i
394400

395401
def encode(self,i):

amoco/arch/x64/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)