summaryrefslogtreecommitdiff
path: root/home/sine.asm
blob: 81084586099655349e57727242b2ef81e7786133 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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