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.
 
 
 
 
 
 

48 lines
1.2 KiB

  1. 10 REM CIRCLE-DIVIDING PROGRAM
  2. 12 REM
  3. 14 N=9: DIM P1(N), P2(N)
  4. 16 I0=180: C$=CHR$(27)+"3"+CHR$(1)
  5. 18 H=8: REM MINIMUM VERTICAL
  6. 20 REM LETTER SPACE IN MM
  7. 22 DATA 4,6,9,12,18,36,72,180,360
  8. 24 FOR I=1 TO N: READ P1(I): NEXT
  9. 26 DATA 9,6,8,6,4,5,10,8,6
  10. 28 FOR I=1 TO N: READ P2(I): NEXT
  11. 30 REM
  12. 32 INPUT "SCALE LENGTH (MM)";S
  13. 34 IF S<30 THEN 32
  14. 36 I1=0
  15. 38 I1=I1+1: IF I1=N THEN 42
  16. 40 IF S>=P1(I1)*H THEN 38
  17. 42 PRINT "PRINTING...": LPRINT C$
  18. 44 FOR I=1 TO I0/4: LPRINT: NEXT
  19. 46 LPRINT S;" MM STRIP DIVIDED ";
  20. 48 LPRINT "INTO ";P1(I1);" PARTS"
  21. 50 FOR I=1 TO I0/4: LPRINT: NEXT
  22. 52 REM
  23. 54 REM PRINTING LOOP
  24. 55 REM SET UP FOR DOT-MATRIX PRINTERS
  25. 56 W=0: S0=INT(360/P1(I1))
  26. 58 S1=S*I0/(25.4*360)
  27. 60 FOR I=0 TO 360 STEP S0
  28. 62 B=INT(I*S1-W): F=W
  29. 64 FOR J=0 TO P2(I1)
  30. 66 I3=INT(J*B/P2(I1)-F)
  31. 68 IF I3<0 THEN 76
  32. 70 FOR K=1 TO I3: LPRINT: NEXT K
  33. 72 IF I3<=0 OR J>=P2(I1) THEN 76
  34. 74 LPRINT " -";
  35. 76 F=F+I3
  36. 78 NEXT J
  37. 80 LPRINT USING " #### --";I;
  38. 82 W=W+B
  39. 84 NEXT I
  40. 86 FOR I=1 TO I0/4: LPRINT: NEXT
  41. 88 INPUT "ANOTHER (Y/N)";Q$
  42. 90 IF Q$="Y" THEN 32
  43. 92 END
  44. 94 REM *************************
  45. 96 REM ASTRONOMICAL COMPUTING
  46. 97 REM SKY & TELESCOPE, MARCH 88
  47. 98 REM *************************