
	nop
	nop
	nop
	
	movei	r2,$98
	movei	r3,$dc
	moveih	r2,$ba
	moveih	r3,$fe

	nop
	nop
	nop
	nop
	nop
	nop
	nop
	nop
	nop
	nop
	
	
	;r3:r2 * 512
	
	;r3                  r2
	;aaaa aaaa bbbb bbbb cccc cccc dddd dddd
	;bbbb bbbc cccc cccd dddd ddd0 0000 0000 
	
	moveih	r3,0		;r3 = 0000 0000 bbbb bbbb *1
	or	r0,r2,r2	;r0 = cccc cccc dddd dddd *2
	moveih	r2,0		;r2 = dddd dddd 0000 0000 *3
	swp	r3,r3		;r3 = bbbb bbbb 0000 0000 *4
	swp	r2,r2		;r2 = dddd dddd cccc cccc *5
	add	r3,r3,r3	;r3 = bbbb bbb0 0000 0000 *6	
	lsri	r0,7		;r0 = 0000 000c cccc cccd *7
	add	r2,r2,r2	;r2 = dddd ddd0 0000 0000 *8
	or	r3,r3,r0	;r3 = bbbb bbbc cccc cccd *9

	;r3:r2 = b975 3000
	
end2	br	end2
	nop			;delay slot
	nop			;delay slot
	nop			;delay slot
	nop			;delay slot

	;-> ok
	
	movei	r0,$0          	;*1
	nop                    	;*2
	moveih	r0,$2		;*3
	nop                    	;*4
	mul	r3,r3,r0       	;*5
	mul	r2,r2,r0       	;*6
	gmulhi	r0             	;*7
	nop                    	;*8
	add	r3,r3,r0       	;*9
	
	;r3:r2 = B975 3000
		
	
end3	br	end3
	nop			;delay slot
	nop			;delay slot
	nop			;delay slot
	nop			;delay slot
	