Hi, I started reading a book named "Programming from the ground up" but realized it's for Linux, so I installed Ubuntu in my Mac with Qemu to test my code there. It works perfectly. But now I want to program with the Intel syntax, with NASM, in my Mac. So I found a site that explained how to program with NASM. But I have so many questions. Like, for example, in Linux you put:
mov $1, %eax
mov $0, %ebx
int $0x80
And the program quits. Which are the Mac OS X system calls? How can I end a program?
Thanks in advanced