mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 06:28:12 +00:00
10 lines
225 B
Python
10 lines
225 B
Python
|
#!/usr/bin/python
|
||
|
# By Ryan Hileman, issue #16
|
||
|
|
||
|
from unicorn import *
|
||
|
from unicorn.arm_const import *
|
||
|
uc = Uc(UC_ARCH_ARM, UC_MODE_32)
|
||
|
uc.reg_write(ARM_REG_SP, 4)
|
||
|
print 'Writing 4 to SP'
|
||
|
print 'SP =', uc.reg_read(ARM_REG_SP)
|