mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-26 05:38:06 +11:00
8bf6258673
Adding a delay such as the 20ms one we have in AVR programmer's initialization routine is tricky without a word like TICKS. This implementation is highly inaccurate, but more accurate and reliable than a "ballpark" DO..LOOP...
6 lines
176 B
Plaintext
6 lines
176 B
Plaintext
VARIABLE lbluflw VARIABLE lblexec
|
|
( see comment at TICKS' definition )
|
|
( 7.373MHz target: 737t. outer: 37t inner: 16t )
|
|
( tickfactor = (737 - 37) / 16 )
|
|
CREATE tickfactor 44 ,
|