www.pudn.com > iccavr_lib.rar > asr32.s, change:2003-11-08,size:226b


	.text 
; input R16/17/18/19, stack 
; output R16/17/18/19 
 
; asr(int l, int cnt) 
asr32:: 
	push R0 
	ld R0,y+ 
loop: 
	tst R0 
	breq done 
	asr R19 
	ror R18 
	ror R17 
	ror R16 
	dec R0 
	rjmp loop 
done: 
	pop R0 
	ret