Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Differences with emu8086 #19

Open
Beedeebee opened this issue Nov 25, 2021 · 1 comment
Open

Differences with emu8086 #19

Beedeebee opened this issue Nov 25, 2021 · 1 comment

Comments

@Beedeebee
Copy link

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
Copy link
Owner

YJDoc2 commented Nov 25, 2021

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants