1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-12-26 16:38:05 +11:00
collapseos/blk/604

16 lines
299 B
Plaintext
Raw Normal View History

2020-04-24 03:55:00 +10:00
( -- n )
: _idle 0xff (spix) ;
2020-04-24 03:55:00 +10:00
( -- n )
( spix 0xff until the response is something else than 0xff
2020-04-24 03:55:00 +10:00
for a maximum of 20 times. Returns 0xff if no response. )
: _wait
0 ( cnt )
BEGIN
_idle
2020-05-23 04:03:12 +10:00
DUP 0xff = IF DROP ELSE NIP EXIT THEN
2020-04-24 03:55:00 +10:00
1+
DUP 20 = UNTIL
DROP 0xff
;