Fixed some comments in the samples
This commit is contained in:
parent
fd44c670cb
commit
a5ab143189
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env python
|
||||
# Sample code for SPARC of Unicorn. Nguyen Anh Quynh <aquynh@gmail.com>
|
||||
# Python sample ported by Loi Anh Tuan <loianhtuan@gmail.com>
|
||||
# Sample code for PPC of Unicorn. Nguyen Anh Quynh <aquynh@gmail.com>
|
||||
#
|
||||
|
||||
from __future__ import print_function
|
||||
from unicorn import *
|
||||
|
@ -27,7 +27,7 @@ def hook_code(uc, address, size, user_data):
|
|||
def test_ppc():
|
||||
print("Emulate PPC code")
|
||||
try:
|
||||
# Initialize emulator in SPARC EB mode
|
||||
# Initialize emulator in PPC EB mode
|
||||
mu = Uc(UC_ARCH_PPC, UC_MODE_PPC32 | UC_MODE_BIG_ENDIAN)
|
||||
|
||||
# map 2MB memory for this emulation
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* Unicorn Emulator Engine */
|
||||
/* By Nguyen Anh Quynh, 2015 */
|
||||
|
||||
/* Sample code to demonstrate how to emulate ARM code */
|
||||
/* Sample code to demonstrate how to emulate PPC code */
|
||||
|
||||
#include <unicorn/unicorn.h>
|
||||
#include <string.h>
|
||||
|
@ -34,7 +34,7 @@ static void test_ppc(void)
|
|||
|
||||
printf("Emulate PPC code\n");
|
||||
|
||||
// Initialize emulator in ARM mode
|
||||
// Initialize emulator in PPC mode
|
||||
err = uc_open(UC_ARCH_PPC, UC_MODE_PPC32 | UC_MODE_BIG_ENDIAN , &uc);
|
||||
if (err) {
|
||||
printf("Failed on uc_open() with error returned: %u (%s)\n",
|
||||
|
|
Loading…
Reference in New Issue