Skip to content

Commit

Permalink
Updated cpu_mem_test.py
Browse files Browse the repository at this point in the history
  • Loading branch information
buffer committed May 23, 2012
1 parent 26049d5 commit c4b9469
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions tests/cpu_mem_test.py
Expand Up @@ -85,8 +85,17 @@


eip = emulator.cpu_eip_get() eip = emulator.cpu_eip_get()
print hex(eip) print hex(eip)

dword = emulator.memory_read_dword(eip) dword = emulator.memory_read_dword(eip)
print dword print hex(dword)
print emulator.cpu_parse()
word = emulator.memory_read_word(eip)
print hex(word)

byte = emulator.memory_read_byte(eip)
print hex(byte)

block = emulator.memory_read_block(eip, 4)
print '0x' + ''.join(["%02x" % ord(x) for x in block[::-1]])


print emulator.env_w32_hook_check() print emulator.env_w32_hook_check()

0 comments on commit c4b9469

Please sign in to comment.