shithub: riscv

ref: fe53c0930e8595a2e8b5aa71e907a1f2bec6059b
dir: /sys/src/libc/arm/main9.s/

View raw version
arg=0
sp=13
sb=12
lr=14

TEXT	_main(SB), 1, $0
	SUB	$8, R(sp)
	MOVW	$setR12(SB), R(sb)
	MOVW	R(arg), _tos(SB)

	MOVW	$main(SB), R(arg)
	MOVW	$0, R(lr)
	B	_callmain(SB)

	BL	_div(SB)	/* force loading of div */