I'm currently trying to learn some basic x86 assembly and running into some difficulties running it on Windows. All I'm trying to do is set the exit status. I'm aware of how to do this if I was on Linux:
global _start
_start:
mov eax,1
mov ebx, 52
int 0x80
Obviously this will give exit status 52. How do I do this on Windows? I looked all over but couldn't find a clear answer.
That is the issue here: There is no clear answer. Windoze is a mess. Use Linux and be happy. :−)
As it’s already been mentioned, there is no universal method to interface with the OS. On WinD0S, for instance, it would’ve been
int 21h:What you probably wanna do is, as David Wohlferd already pointed out, use
ExitProcess:On a GNU/Linux Debian(-like) system with a
wine(1)installation the steps look like: