ChipMaster's bwBASIC This also includes history going back to v2.10. *WARN* some binary files might have been corrupted by CRLF.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

57 lines
1.9 KiB

  1. 10 REM Chart number for
  2. 20 REM The Millennium Star Atlas
  3. 30 REM by Laurent Corp
  4. 40 CLS
  5. 50 PRINT : PRINT "Enter 2000.0 position"
  6. 60 PRINT : INPUT "R.A. (h,m,s)";H,M,S
  7. 70 IF H<0 OR H>=24 THEN 60
  8. 80 IF M<0 OR M>=60 THEN 60
  9. 90 IF S<0 OR S>=60 THEN 60
  10. 100 HM=H
  11. 110 H=H+M/60+S/3600
  12. 120 PRINT : INPUT "Dec. (d,m,s)";D$,M,S
  13. 130 D=ABS(VAL(D$))
  14. 140 IF D>90 THEN 120
  15. 150 IF M<0 OR M>=60 THEN 120
  16. 160 IF S<0 OR S>=60 THEN 120
  17. 170 D=D+M/60+S/3600
  18. 180 IF LEFT$(D$,1)="-" THEN D=-D
  19. 190 PRINT: PRINT "Millennium Star Atlas"
  20. 200 IF ABS(D)>87 THEN H=0
  21. 210 IF H>=0 AND H<=8 THEN V$="Volume I": VL=0
  22. 220 IF H>8 AND H<=16 THEN V$="Volume II": VL=1
  23. 230 IF H>16 AND H<24 THEN V$="Volume III": VL=2
  24. 240 QT=0 : PA=0 : QN=0
  25. 250 IF ABS(D)>90 THEN D=90
  26. 260 IF ABS(D)<=90 THEN PA=240: QT=QT+2: QN=2
  27. 270 IF ABS(D)<87 THEN PA=120: QT=QT+4: QN=4
  28. 280 IF ABS(D)<81 THEN PA=60: QT=QT+8: QN=8
  29. 290 IF ABS(D)<75 THEN PA=48: QT=QT+10: QN=10
  30. 300 IF ABS(D)<69 THEN PA=40: QT=QT+12: QN=12
  31. 310 IF ABS(D)<63 THEN PA=480/14: QT=QT+14: QN=14
  32. 320 IF ABS(D)<57 THEN PA=30: QT=QT+16: QN=16
  33. 330 IF ABS(D)<51 THEN PA=24: QT=QT+20: QN=20
  34. 340 IF ABS(D)<45 THEN PA=24: QT=QT+20: QN=20
  35. 350 IF ABS(D)<39 THEN PA=480/22: QT=QT+22: QN=22
  36. 360 IF ABS(D)<33 THEN PA=480/22: QT=QT+22: QN=22
  37. 370 IF ABS(D)<27 THEN PA=20: QT=QT+24: QN=24
  38. 380 IF ABS(D)<21 THEN PA=20: QT=QT+24: QN=24
  39. 390 IF ABS(D)<15 THEN PA=20: QT=QT+24: QN=24
  40. 400 IF ABS(D)<9 THEN PA=20: QT=QT+24: QN=24
  41. 410 IF ABS(D)<3 THEN PA=20: QT=QT+24: QN=24
  42. 420 IF H=8 THEN H=7.99
  43. 430 IF H=16 THEN H=15.99
  44. 440 IF H=24 THEN H=23.99
  45. 450 IF H>VL*8 THEN H=H-(VL*8)
  46. 460 CA=INT((H*60)/PA)
  47. 470 IF ABS(D)>87 AND (HM>4 AND HM<16) THEN QT=1: QN=0
  48. 480 CH=QT-CA+(VL*516)
  49. 490 IF LEFT$(D$,1)="-" THEN CH=(516+(VL*516)-QT+QN-CA)
  50. 500 PRINT "Chart ";CH;"in ";V$
  51. 510 END
  52. 900 REM ---------------------------
  53. 910 REM APPEARED IN ASTRONOMICAL
  54. 920 REM COMPUTING, SKY & TELESCOPE,
  55. 930 REM OCTOBER 1998, PAGE 63
  56. 940 REM ---------------------------