t11max3.ssm 246 Bytes
Newer Older
atzedijkstra@gmail.com's avatar
initial  
atzedijkstra@gmail.com committed
1
	BRA	main
max3:	LINK	0
	LDL	-3
	LDL	-2
	le
	brt	L1
	LDL	-3
	STL	-2
L1:	LDL	-4
	LDL	-2
	le
	brt	L2
	LDL	-4
	STL	-2
L2:	LDL	-2
	STR	RR
	UNLINK
	STS	-3
	AJS	-2
	RET
main:	LINK	0
	LDC	4
	LDC	5
	MUL
	LDC	2
	LDC	8
	LDC	6
	BSR	max3
	LDR	RR
	ADD
	UNLINK