Skip to content

Commit

Permalink
stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
momo5502 committed Nov 3, 2024
1 parent d6ede86 commit fae6184
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/windows-emulator-test/emulation_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,22 @@ namespace test

printf("Offsets: %llX-%llX\n", good_offset, bad_offset);

auto new_emu = create_sample_emulator();
const auto instructionsToExecute = executedInstructions - good_offset;

new_emu.start({}, instructionsToExecute);
new_emu.verbose = true;
new_emu.verbose_calls = true;

const auto insts = new_emu.process().executed_instructions;
printf("Insts: %llX\n", insts);
new_emu.start({}, 1);

const auto insts2 = new_emu.process().executed_instructions;
printf("Insts: %llX\n", insts2);



//ASSERT_EQ(new_emu->process().executed_instructions, instructionsToExecute);
//ASSERT_NOT_TERMINATED(*new_emu);

Expand Down

0 comments on commit fae6184

Please sign in to comment.