mirror of
https://github.com/forth-ev/VolksForth.git
synced 2024-11-26 02:49:17 +00:00
Fix an endless loop problem within derror?
This commit is contained in:
parent
deedf5679b
commit
8f2f97e1f2
@ -212,7 +212,8 @@ Code bus@ ( -- 8b)
|
|||||||
bounds ?DO bus@ I c! LOOP pause ;
|
bounds ?DO bus@ I c! LOOP pause ;
|
||||||
|
|
||||||
: derror? ( -- flag )
|
: derror? ( -- flag )
|
||||||
disk $F busin bus@ dup Ascii 0 -
|
disk $F busin bus@ dup Ascii 0 =
|
||||||
IF BEGIN emit bus@ dup #cr = UNTIL
|
IF drop BEGIN bus@ drop i/o-status? UNTIL false
|
||||||
0= cr ELSE BEGIN bus@ #cr = UNTIL
|
ELSE BEGIN emit bus@ i/o-status? UNTIL emit true THEN
|
||||||
THEN 0= busoff ;
|
busoff ;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user