home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Unsorted BBS Collection
/
thegreatunsorted.tar
/
thegreatunsorted
/
programming
/
asm_programming
/
GLOBESRC.ZIP
/
GENCOS.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1993-05-29
|
446b
|
20 lines
VAR
fo : TEXT;
i : INTEGER;
BEGIN
Assign(fo, 'COSTBL.INC');
ReWrite(fo);
WriteLn(fo, '; Costable, angles 0-1023, Modulo 32767+32767 ------------');
FOR i := 0 TO 1023 DO BEGIN
IF (i MOD 12) = 0 THEN BEGIN
WriteLn(fo);
Write(fo, ' DW ');
END ELSE
Write(fo, ', ');
Write(fo, WORD(ROUND(32767.0*Cos(i*PI/512.0))))
END;
WriteLn(fo);
Close(fo)
END.