mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 11:48:16 +00:00
commit
6085cd8046
1 changed files with 12 additions and 0 deletions
12
regress/wrong_sp_arm64.py
Executable file
12
regress/wrong_sp_arm64.py
Executable 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)
|
Loading…
Reference in a new issue