X-Git-Url: http://git.shiar.nl/wormy.git/blobdiff_plain/f28fc4783bc8d8a2038e5fa4c10406ba11a79290..bcb78186b07d00970fecbffb7986670a5f2b2a2b:/trigtab.asm diff --git a/trigtab.asm b/trigtab.asm index b9f011f..f3807f1 100644 --- a/trigtab.asm +++ b/trigtab.asm @@ -1,28 +1,3 @@ -BuildTrigTables: - ld hl,TrigPrecalc - ld de,SinCosTable - push de - ld bc,65 - ldir - dec hl - ld b,63 -MirrorSineWave: - dec hl - ld a,(hl) - ld (de),a - inc de - djnz MirrorSineWave - pop hl - ld b,128+64 -NegativeSineWave: - xor a - sub (hl) - ld (de),a - inc hl - inc de - djnz NegativeSineWave - ret - TrigPrecalc: .db 0, 3, 6, 9, 12, 15, 18, 21 .db 24, 27, 30, 33, 36, 39, 42, 45