You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to see if I can transition from EmulatorHelper to the newer P-code emulation system by using PcodeEmulator. I'm trying to emulate the currently-loaded program faster. I assume that the new PcodeEmulator will help with that.
After reading the description of the class - It appears that in contrast to the previous EmulatorHelper, the PcodeEmulator does not take a program in its constructor and Pcode has to be injected to be executed?
Also, the example script StandAloneEmuExampleScript.java - assembles and compiles arbitrary x86 code, injects it and then emulates it.
Seeing this made me think that if I want to emulate my program - I'd have to get a list of all the Pcode in my program and inject it. However - this doesn't feel like the "correct" way to do that.
I wonder - what is the recommended/correct approach to use PcodeEmulator to emulate the currently-loaded program?
This discussion was converted from issue #7873 on March 03, 2025 19:40.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to see if I can transition from
EmulatorHelper
to the newer P-code emulation system by usingPcodeEmulator
. I'm trying to emulate the currently-loaded program faster. I assume that the new PcodeEmulator will help with that.After reading the description of the class - It appears that in contrast to the previous
EmulatorHelper
, thePcodeEmulator
does not take a program in its constructor and Pcode has to be injected to be executed?Also, the example script
StandAloneEmuExampleScript.java
- assembles and compiles arbitrary x86 code, injects it and then emulates it.Seeing this made me think that if I want to emulate my program - I'd have to get a list of all the Pcode in my program and inject it. However - this doesn't feel like the "correct" way to do that.
I wonder - what is the recommended/correct approach to use
PcodeEmulator
to emulate the currently-loaded program?Beta Was this translation helpful? Give feedback.
All reactions