shithub: pokecrystal

ref: ac0025064fe3a506c74bf389a5487c76beeba5d6
dir: /home/sine.asm/

View raw version
Cosine::
; a = d * cos(a * pi/32)
	add %010000 ; cos(x) = sin(x + pi/2)
	; fallthrough
Sine::
; a = d * sin(a * pi/32)
	ld e, a
	homecall _Sine
	ret