shithub: mc

ref: 23896ee4273d593cf3d32c00713c6f55e9b1369e
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