News for hackers. Stuff that matters.
Re:Learn x86-64 assembly by writing a GUI from scratch by bitshiffed on Thursday June 01, 2023 @05:51PM (#36157879)
For amd64 they both use the same registers to pass arguments.

But, the BSD syscalls use the carry flag to indicate error, rather than the returned value of rax being negative. If your syscalls always succeed, and never return values within what would be a negative range as a signed value, then the code would run; but that's not exactly "portable".

There are no comments on this comment yet.