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

Add clarification that the code is of x86 32bit #45

Open
harryhanYuhao opened this issue Jul 23, 2023 · 4 comments
Open

Add clarification that the code is of x86 32bit #45

harryhanYuhao opened this issue Jul 23, 2023 · 4 comments

Comments

@harryhanYuhao
Copy link

As the system call opecode for 32-bit and 64-bit linux are different, may be it is helpful to add explicit clarification that the code in tutorial is of 32 bit, and can not be assembled by nasm to elf64 format.

@q2dg
Copy link

q2dg commented Jul 21, 2024

In fact, in 2024 these tutorials should be modified to support x64 architecture the sooner the better.

@bar2011
Copy link

bar2011 commented Mar 3, 2025

Currently following the tutorial and porting everything to x64 as I go (I want to learn x64 so porting it and researching over every specific topic helps learning). Should I just create a pull request with the finished files as soon as I'm done?

@DGivney
Copy link
Owner

DGivney commented Mar 4, 2025

Hey @bar2011

Apologies, I meant to follow up on this sooner but time got away.

There is a comment in the header of each code example on the website and in the repo with instructions for linking on 64-bit systems.

The original motivation for this repo was to learn enough 32-bit syntax so I could understand the 16-bit DOS cracking tutorials that were online during the early web and which I was reading through in an archive at the time. I was interested in learning 8-bit and 16-bit programming at the time and wanted to write a game. This is the decision behind why I chose to use interrupts instead of a more modern convention.

Given that background - I don't think this is the right project to contain any 64-bit tutorials but I think it would be cool to add a list of links in the readme to any other repos inspired by asmtutor and ported to other architectures? What do you think?

@bar2011
Copy link

bar2011 commented Mar 6, 2025

Really nice way to learn!
I'm going to use this strategy in the future when learning a new language...

About linking to other architectures, I think linking x86-64 Linux will be really helpful, maybe for other assemblers as well, but I’m not sure about MacOS or Windows.
I’m using a MacBook, and I still chose to use Linux, and I didn’t hear about many people who used other OSs, mainly because they have so bad documentation

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

4 participants