shithub: mc

ref: ea3c3bcded6031ba1f72e1af6683e0c6bcade96d
dir: /syscall-osx.s/

View raw version
.globl _std$syscall
_std$syscall:
        popl %ecx	/* return address */
	popl %eax       /* call num */
	pushl %ecx
        int $0x80
	pushl %ecx	/* put the return address back */
	ret