mirror of
https://github.com/forth-ev/VolksForth.git
synced 2024-11-29 21:49:17 +00:00
small code cleanup vf-cbm-dos.fth
This commit is contained in:
parent
6887241e40
commit
427817c3ac
@ -12,16 +12,12 @@
|
|||||||
|
|
||||||
: dos ( -- )
|
: dos ( -- )
|
||||||
bl word count ?dup
|
bl word count ?dup
|
||||||
IF dev 15 busout bustype
|
IF dev $f busout bustype
|
||||||
busoff cr ELSE drop THEN
|
busoff cr ELSE drop THEN
|
||||||
dev dos-error ;
|
dev dos-error ;
|
||||||
|
|
||||||
: cat ( -- ) cr
|
: cat ( -- ) cr
|
||||||
dev 2 busopen bl word count bustype
|
dev 2 busopen bl word count bustype busoff
|
||||||
busoff
|
i/o-status? IF cr dev dos-error abort THEN
|
||||||
\ i/o-status?abort
|
dev 2 busin BEGIN bus@ con! i/o-status? UNTIL busoff
|
||||||
i/o-status? IF cr
|
|
||||||
fload-dev @ dos-error abort THEN
|
|
||||||
dev 2 busin BEGIN bus@ con!
|
|
||||||
i/o-status? UNTIL busoff
|
|
||||||
dev 2 busclose ;
|
dev 2 busclose ;
|
||||||
|
Loading…
Reference in New Issue
Block a user