Permalink
Browse files

Updated cpu_mem_test.py

  • Loading branch information...
1 parent 26049d5 commit c4b94698875fbaea7816a333041c146eb25b4d01 @buffer committed May 23, 2012
Showing with 11 additions and 2 deletions.
  1. +11 −2 tests/cpu_mem_test.py
View
@@ -85,8 +85,17 @@
eip = emulator.cpu_eip_get()
print hex(eip)
+
dword = emulator.memory_read_dword(eip)
-print dword
-print emulator.cpu_parse()
+print hex(dword)
+
+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()

0 comments on commit c4b9469

Please sign in to comment.