ruby & java: fix address of Thumb sample
This commit is contained in:
@ -109,7 +109,7 @@ public class Sample_arm {
|
|||||||
|
|
||||||
// emulate machine code in infinite time (last param = 0), or when
|
// emulate machine code in infinite time (last param = 0), or when
|
||||||
// finishing all the code.
|
// finishing all the code.
|
||||||
u.emu_start(ADDRESS, ADDRESS + THUMB_CODE.length, 0, 0);
|
u.emu_start(ADDRESS | 1, ADDRESS + THUMB_CODE.length, 0, 0);
|
||||||
|
|
||||||
// now print out some registers
|
// now print out some registers
|
||||||
System.out.print(">>> Emulation done. Below is the CPU context\n");
|
System.out.print(">>> Emulation done. Below is the CPU context\n");
|
||||||
|
@ -87,7 +87,7 @@ def test_thumb()
|
|||||||
mu.hook_add(UC_HOOK_CODE, $hook_code)
|
mu.hook_add(UC_HOOK_CODE, $hook_code)
|
||||||
|
|
||||||
# emulate machine code in infinite time
|
# emulate machine code in infinite time
|
||||||
mu.emu_start(ADDRESS, ADDRESS + THUMB_CODE.bytesize)
|
mu.emu_start(ADDRESS | 1, ADDRESS + THUMB_CODE.bytesize)
|
||||||
|
|
||||||
# now print out some registers
|
# now print out some registers
|
||||||
puts(">>> Emulation done. Below is the CPU context")
|
puts(">>> Emulation done. Below is the CPU context")
|
||||||
|
Reference in New Issue
Block a user