shithub: riscv

ref: afdf2603d897b247b56f193ad03682f24cae1ce8
dir: /sys/src/ape/lib/ap/386/main9.s/

View raw version
	TEXT	_main(SB), 1, $12

	CALL	_envsetup(SB)
	MOVL	inargc-4(FP), AX
	MOVL	AX, 0(SP)
	LEAL	inargv+0(FP), AX
	MOVL	AX, 4(SP)
	MOVL	environ(SB), AX
	MOVL	AX, 8(SP)
	CALL	main(SB)
	MOVL	AX, 0(SP)
	CALL	exit(SB)
	RET