shithub: riscv

ref: 84ddc4cd4b0fae049f9fa68ee586fbc53cfa2f83
dir: /sys/src/ape/lib/ap/sparc/main9.s/

View raw version
	TEXT	_main(SB), $16
	MOVW	$setSB(SB), R2
	JMPL	_envsetup(SB)
	MOVW	inargc-4(FP), R7
	MOVW	$inargv+0(FP), R8
	MOVW	R7, 4(R1)
	MOVW	R8, 8(R1)
	JMPL	main(SB)

loop:
	MOVW	R7, 4(R1)
	JMPL	exit(SB)
	MOVW	$_mul(SB),R7
	JMP	loop