shithub: pokecrystal

ref: 7350c3708fc2463e1eb6024c03de5c85b50aa38f
dir: /home/sine.asm/

View raw version
Cosine:: ; 1b0f
; Return d * cos(a) in hl
	add $10 ; 90 degrees

Sine:: ; 1b11
; Return d * sin(a) in hl
; a is a signed 6-bit value.

	ld e, a

	homecall _Sine
	ret
; 1b1e