Home » Personal collection » Commodore disks » disk42a_unlabelled.d64 » maketable
maketable
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
| Tape/disk: | Home » Personal collection » Commodore disks » disk42a_unlabelled.d64 | 
| Filename: | maketable | 
| Read OK: | ✔ | 
| File size: | 02C7 bytes | 
| Load address: | 0801 | 
| Exec address: | 0000 | 
File contents
    10 PRINT"SIN↑-1 . . ."
    20 AD=$5400:FORR=-0.99999TO0.99999STEP.01:PRINTINT(R*100+0.5)/100
    30 X=ATN(R/SQR(-R*R+1))/π*180
    40 GOSUB1000:AD=AD+8:NEXT
    50 PRINT"SQR(1-SIN↑2) . . ."
    60 AD=$5C00:FORR=0TO359
    70 X=SQR(1-SIN(π*R/180)^2)
    80 GOSUB1000:AD=AD+8:NEXT
    90 PRINT"SIN . . ."
   100 AD=$6800:FORR=0TO359
   110 X=SIN(π*R/180)
   120 GOSUB1000:AD=AD+8:NEXT
   130 PRINT"COS . . ."
   140 AD=$7400:FORR=0TO359
   150 X=COS(π*R/180)
   160 GOSUB1000:AD=AD+8:NEXT
   170 END
  1000 POKE AD,0:POKE AD+1,0
  1005 X=X+0.000001
  1010 POKEAD+2,(INT(X/1000)-INT(X/10000)*10)*16+(INT(X/100)-INT(X/1000)*10)
  1015 IF PEEK(AD+2)=$99 THEN POKE AD,$99:POKEAD+1,$99
  1020 POKEAD+3,(INT(X/10)-INT(X/100)*10)*16+(INT(X)-INT(X/10)*10)
  1030 POKEAD+4,(INT(X/.1)-INT(X)*10)*16+(INT(X/.01)-INT(X/.1)*10)
  1040 POKE AD+5,(INT(X/.001)-INT(X/.01)*10)*16+(INT(X/.0001)-INT(X/.001)*10)
  1050 POKE AD+6,0:POKE AD+7,0
  1060 RETURN
                �"SIN^-1 . . ."