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

Document NASM input/output convention #377

Open
Voileexperiments opened this issue Feb 15, 2022 · 1 comment
Open

Document NASM input/output convention #377

Voileexperiments opened this issue Feb 15, 2022 · 1 comment

Comments

@Voileexperiments
Copy link

Currently this information is not documented anywhere, and it's always up to each kata's whim to tell users this information.

Which registers are used for input and output? What is the argument order?

@hobovsky
Copy link
Contributor

This can be somewhat deduced, as the command line used to compile (see docs) suggests 64-bit output executable, and there's very few 64-bit calling conventions . Even for me it was quite easy to narrow them down to so-called "System V AMD64 ABI" as it seems to be the only one (or one of the few) commonly used for 64bit Linux programs.

Of course, it could be helpful to add this information to NASM doc page.

(Sorry but I am on a mobile and cannot post links now for some strange reason, I will fill them in later today).

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