3 ms·
You could do this in BBC Basic to make an ultra-fast switch. 20 GOTO (30 + (start%*10)) I used to use it in game loops to call different procedures for ch
by codeulike 6y ago
You could do this in BBC Basic to make an ultra-fast switch.
20 GOTO (30 + (start%*10))
I used to use it in game loops to call different procedures for character control based on the type of character. Just needed a bit of careful tuning of the character type integer and the line numbers.
- Doctor_Fegg 6y agoThis was genuinely one of the BBC features I missed most in (the Amstrad CPC’s) Locomotive BASIC. I remember reimplementing EVAL, which Locomotive was also missing, but not computed GOTO.
- treeman79 6y agoUsed to work with stepper motors and basic. Legacy code. Required very precise timing. Something Basic didn’t have. So we used for loops. Need a 2ms loop. 5,000 iterations. Etc. Worked fine for years, until we couldn’t order the same cpus. Then machine ran way to fast. So we set it up so that at boot time, it would calibrate how many loops equaled various milliseconds. Problem solved. Was a really weird early job.