Fix an endless loop problem within derror?

This commit is contained in:
Philip Zembrod 2020-12-31 23:40:47 +01:00
parent deedf5679b
commit 8f2f97e1f2

View File

@ -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 ;