I need to do a system call (syscall) in x86 assembly code that targets the Windows platform.
On Linux, I would just do something like int 0x80
, but this doesn't work on Windows. What should the code look like to do a syscall on Windows?
(I am using AT&T syntax and writing 64-bit code, if it matters, but the answer should be the same for Intel syntax and 32-bit code.)