From fae61842615c93c31a0931820493b390ad6548a9 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Sun, 3 Nov 2024 20:10:57 +0100 Subject: [PATCH] stuff --- src/windows-emulator-test/emulation_test.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/windows-emulator-test/emulation_test.cpp b/src/windows-emulator-test/emulation_test.cpp index 1ec0ebd..15903f7 100644 --- a/src/windows-emulator-test/emulation_test.cpp +++ b/src/windows-emulator-test/emulation_test.cpp @@ -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);