shithub: pokecrystal

ref: 65a780994f87445f2bf8d9761f7dbf3c1389648a
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