-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcosine.asm
24 lines (20 loc) · 1.14 KB
/
cosine.asm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
;Airaki! - FSE 2014
;Released under the GPL V3, see LICENSE.TXT
;256 unsigned values
lut_cos:
.db $FF,$FE,$FE,$FE,$FE,$FE,$FD,$FD,$FC,$FB,$FB,$FA,$F9,$F8,$F7,$F6
.db $F5,$F3,$F2,$F1,$EF,$EE,$EC,$EB,$E9,$E7,$E5,$E3,$E1,$DF,$DD,$DB
.db $D9,$D7,$D4,$D2,$D0,$CD,$CB,$C8,$C5,$C3,$C0,$BD,$BB,$B8,$B5,$B2
.db $AF,$AC,$A9,$A6,$A3,$A0,$9D,$9A,$97,$94,$91,$8E,$8B,$88,$85,$81
.db $7E,$7B,$78,$75,$72,$6F,$6C,$68,$65,$62,$5F,$5C,$59,$56,$53,$50
.db $4D,$4B,$48,$45,$42,$3F,$3D,$3A,$37,$35,$32,$30,$2D,$2B,$29,$26
.db $24,$22,$20,$1E,$1C,$1A,$18,$16,$14,$13,$11,$10,$E,$D,$B,$A
.db $9,$8,$7,$6,$5,$4,$3,$2,$2,$1,$1,$0,$0,$0,$0,$0
.db $0,$0,$0,$0,$0,$1,$1,$2,$2,$3,$4,$5,$5,$6,$7,$9
.db $A,$B,$C,$E,$F,$11,$12,$14,$16,$18,$1A,$1C,$1E,$20,$22,$24
.db $26,$28,$2B,$2D,$2F,$32,$34,$37,$3A,$3C,$3F,$42,$45,$47,$4A,$4D
.db $50,$53,$56,$59,$5C,$5F,$62,$65,$68,$6B,$6E,$71,$75,$78,$7B,$7E
.db $81,$84,$87,$8A,$8E,$91,$94,$97,$9A,$9D,$A0,$A3,$A6,$A9,$AC,$AF
.db $B2,$B5,$B8,$BA,$BD,$C0,$C2,$C5,$C8,$CA,$CD,$CF,$D2,$D4,$D6,$D9
.db $DB,$DD,$DF,$E1,$E3,$E5,$E7,$E9,$EA,$EC,$EE,$EF,$F1,$F2,$F3,$F5
.db $F6,$F7,$F8,$F9,$FA,$FB,$FB,$FC,$FD,$FD,$FD,$FE,$FE,$FE,$FE,$FE