Live data from Hacker News

Visual x86 emulator

thlorenz.com

1–10 of 31 posts

Re: Visual x86 emulator

#2
This is a nifty visualizer, I'm going to show it to my daughter who I've been teaching programming. We haven't broached registers and general CPU design yet, but this has inspired me to do so!

It's interesting that the example shows overflow, but doesn't show the flags register. I'm not a web dev generally, but I think I may fork this one to show it as it exists in the emulator, it's just not rendered.

Re: Visual x86 emulator

#5
post #3

It shows the register state animated. It would be much more useful if you could see the previous register state permanently.

That's not a bad idea. Please file an issue on github. Ideally with a sketch of how this would be laid out. This project is still in its infancy and I'm very open to suggestions.

Re: Visual x86 emulator

#6

This is pretty neat! It is still a work-in-progress though as the Github issue [1] notes. I'd love to be able to edit the disassembly and play with the visualization when its done. [1] https://github.com/thlorenz/visulator/issues/1

> It is still a work-in-progress though

Exactly this is just a start and I'm actively working on it. Editing the assembly could be an option, but I also plan to allow users to load simple binaries into it. This way you could edit the assembly, assemble it and load.

However please file an issue with feature suggestions on github so we can track what people want.

Re: Visual x86 emulator

#7
post #2

This is a nifty visualizer, I'm going to show it to my daughter who I've been teaching programming. We haven't broached registers and general CPU design yet, but this has inspired me to do so! It's interesting that the example shows overflow, but doesn't show the flags register. I'm not a web dev generally, but I think I may fork this one to show it as it exists in the emulator, it's just not rendered.

> but doesn't show the flags register

This is the next feature I've planned. Hopefully I can get this done tonight - check back soon :)

It'll be visualized with LEDs that light up when a flag is set.

Re: Visual x86 emulator

#10

Is this a full emulation? MMU?

It will emulate as much of x86 as makes sense for it's purpose , to visualize assembly execution and how a CPU works.

It currently already contains a memory unit and supports push/pop instructions. More memory related instructions will be added.

Post reply on HN