mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 09:28:36 +00:00
add regress for #126
This commit is contained in:
parent
c1dd9fbfdf
commit
5f6c475479
1 changed files with 9 additions and 0 deletions
9
regress/sparc_reg.py
Normal file
9
regress/sparc_reg.py
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
from unicorn import *
|
||||||
|
from unicorn.sparc_const import *
|
||||||
|
|
||||||
|
uc = Uc(UC_ARCH_SPARC, UC_MODE_BIG_ENDIAN)
|
||||||
|
uc.reg_write(UC_SPARC_REG_SP, 100)
|
||||||
|
uc.reg_write(UC_SPARC_REG_FP, 100)
|
||||||
|
print 'writing sp = 100, fp = 100'
|
||||||
|
print 'sp =', uc.reg_read(UC_SPARC_REG_SP)
|
||||||
|
print 'fp =', uc.reg_read(UC_SPARC_REG_FP)
|
Loading…
Reference in a new issue