mirror of
https://github.com/Vita3K/unicorn.git
synced 2024-11-27 23:30:35 +00:00
Fixed ARM sample to properly run THUMB code #638
This commit is contained in:
parent
5af4880f1a
commit
fce82b9532
@ -135,7 +135,8 @@ static void test_thumb(void)
|
||||
|
||||
// emulate machine code in infinite time (last param = 0), or when
|
||||
// finishing all the code.
|
||||
err = uc_emu_start(uc, ADDRESS, ADDRESS + sizeof(THUMB_CODE) -1, 0, 0);
|
||||
// Note we start at ADDRESS | 1 to indicate THUMB mode.
|
||||
err = uc_emu_start(uc, ADDRESS | 1, ADDRESS + sizeof(THUMB_CODE) -1, 0, 0);
|
||||
if (err) {
|
||||
printf("Failed on uc_emu_start() with error returned: %u\n", err);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user