mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-25 18:21:12 +00:00
fix regress/fpu_mem_write.py so it really emulates code
This commit is contained in:
parent
8c163706e4
commit
7ab8d667fd
|
@ -5,7 +5,8 @@ from unicorn.x86_const import *
|
|||
ESP = 0x2000
|
||||
PAGE_SIZE = 1 * 1024 * 1024
|
||||
|
||||
# fstcw [esp]
|
||||
# wait
|
||||
# fnstcw word ptr [esp]
|
||||
# pop ecx
|
||||
CODE = b'\x9B\xD9\x3C\x24\x59'
|
||||
|
||||
|
@ -26,7 +27,7 @@ mu.mem_write(0, CODE)
|
|||
mu.reg_write(UC_X86_REG_ESP, ESP)
|
||||
mu.hook_add(UC_HOOK_MEM_WRITE, hook_mem_write)
|
||||
|
||||
mu.emu_start(0x0, 0, 0, 2)
|
||||
mu.emu_start(0x0, 5, 0, 2)
|
||||
esp = mu.reg_read(UC_X86_REG_ESP)
|
||||
print("value at ESP [0x%X]: " % esp)
|
||||
mem_reader(esp, 10)
|
Loading…
Reference in a new issue