YJDoc2 / 8086-emulator-web

Repository for 8086 emulator web implementation
Apache License 2.0
221 stars 26 forks source link

Differences with emu8086 #19

Open Beedeebee opened 2 years ago

Beedeebee commented 2 years ago

I'm learning 8086 assembly with "emu8086" for school.

I tried to use this emulator, but the syntax seems quite different from the one I learnt.

Would you know why? Are the two emulators compatible? How can I port a program from one to the other?

YJDoc2 commented 2 years ago

Hey, Thanks for trying out this emulator!

When designing the emulator, we tried to keep the syntax simple and somewhat similar to assemblers like gas/nasm ; along with that we made some decisions which we thought would be helpful for beginners when coding to avoid accidental errors, and some syntax was changed due to conflicts in the parser. As a result, syntax for this can be different from the syntax of emu8086 in some places, for example, whenever you want to access memory for data, you have to specify if you want to access byte memory or word memory ; this prevents accidentally using incorrect size values or registers.

You can check out https://yjdoc2.github.io/8086-emulator-web/help this page, which lists out the instructions and their syntax supported by this emulator.

Let me know if this helps. Thanks!