shithub: mc

ref: 0b9c76ce13eb15dff5454b719ab8ee284c73b894
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