add test for #122

This commit is contained in:
Ryan Hileman 2015-09-07 14:37:11 -07:00
parent 39f4ee88ce
commit e07d74ef16

12
regress/wrong_sp_arm64.py Executable file
View File

@ -0,0 +1,12 @@
#!/usr/bin/python
from unicorn import *
from unicorn.arm64_const import *
try:
uc = Uc(UC_ARCH_ARM64, UC_MODE_ARM)
uc.reg_write(UC_ARM64_REG_SP, 4)
print 'Writing 4 to SP'
print 'SP =', uc.reg_read(UC_ARM64_REG_SP)
except UcError as e:
print("ERROR: %s" % e)