shithub: mc

ref: 67195e1367cb98054844a4ed0f567ab43977f0d0
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