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.
 
 
 
 
 
 

22 lines
499 B

  1. 1 SUB POKE( X, Y )
  2. 2 PRINT "Address=";X,"Byte=";Y
  3. 3 END SUB
  4. 4 ' ---------------------------
  5. 10 REM STEPPER-MOTOR DEMO
  6. 15 REM
  7. 20 X=49152: REM PORT ADDRESS
  8. 25 DATA 9,1,3,2,6,4,12,8
  9. 30 DIM A(8)
  10. 35 FOR I=0 TO 7: READ A(I): NEXT I
  11. 40 INPUT "START, STOP ";C,D
  12. 45 FOR J=C TO D STEP SGN(D-C)
  13. 50 K=8*((J/8)-INT(J/8))
  14. 55 POKE X,A(K)
  15. 60 NEXT J
  16. 65 END
  17. 70 REM ------------------------
  18. 80 REM APPEARED IN ASTRONOMICAL
  19. 90 REM COMPUTING, SKY & TELE-
  20. 95 REM SCOPE, APRIL, 1985
  21. 99 REM ------------------------