Modifying opcodes
Opened this issue · 0 comments
Hey, great project! The interface is really slick and useful for explaining and observing small snippets of x86. I'm currently in need of exactly this project but just need to add my own opcodes.
If anyone is looking to do the same, here's how you do it:
Step 1: clone this repo
Step 2: run npm install
Step 3: Edit visulator/test/fixtures/samples.js
exports.mix_01
or create new arrays
Step 4: Update visulator/web/js/main.js
by replacing all 3 instances of samples.mix_01
with your array name from samples.js
Step 5: run npm run bundle
Now when you reload index.html
the emulator will have your own opcodes.
I just figured I'd include this here in case anyone else needed this project in a pinch. Currently I don't know of any other web-based x86 emulators that allow single stepping while animating the effects of each instruction on registers like this one.
Please feel free to close this issue.