Files
2022-02-21 12:42:04 +01:00

28 lines
571 B
QBasic
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
rem Dette program beregner fasekorrektionen p† de forskellige sampel
rem positioner for NTSC ved 13.5M
DEFDBL A-Z
pi = 3.14159265359#
freq = 13500000#/858#*455#/2#
fsamp = 13500000#
OPEN "faseposm.s" FOR OUTPUT AS #1
FOR X = 0 TO 863
fase = X * freq / fsamp
WHILE fase >= 1
fase = fase - 1
WEND
rem fase1 = INT(fase * 256)
rem fase2 = fase * 256 - fase1
rem fase2 = INT(fase2 * 256)
rem PRINT #1, fase1 , fase2
if i=16 then
i=0
PRINT #1, int(fase*1024*64+.5);","
else
i=i+1
PRINT #1, int(fase*1024*64+.5);",";
end if
NEXT X
CLOSE 1