shithub: riscv

ref: 8a45afd47d2545b2d85aecf9ec5af90cba3905d3
dir: /sys/src/libc/68020/main9p.s/

View raw version
TEXT	_mainp(SB), 1, $0
	MOVL	$a6base(SB), A6
	MOVL	R0, _tos(SB)
	PEA	_profmain(SB)
	MOVL	$0, TOS
	JMP	_callmain(SB)
	LEA	_profin(SB), A0		/* force loading of profile */

TEXT	_saveret(SB), 1, $0
TEXT	_savearg(SB), 1, $0
	RTS

TEXT	_callpc(SB), 1, $0
	MOVL	argp+0(FP), A0
	MOVL	4(A0), R0
	RTS