diff --git a/doc/simh.doc b/doc/simh.doc index 99fe0daa..83ad8393 100644 Binary files a/doc/simh.doc and b/doc/simh.doc differ diff --git a/sim_tmxr.c b/sim_tmxr.c index c234120e..e583a694 100644 --- a/sim_tmxr.c +++ b/sim_tmxr.c @@ -1749,7 +1749,8 @@ return r; Inputs: *lp = pointer to terminal line descriptor Output: - valid + char, 0 if line + (TMXR_VALID | char) or 0 if no data is currently available + on the specified line. Implementation note: @@ -1758,11 +1759,6 @@ return r; SCPE_BREAK is ORed into the return value. */ -int32 tmxr_input_pending_ln (TMLN *lp) -{ -return (lp->rxbpi - lp->rxbpr); -} - int32 tmxr_getc_ln (TMLN *lp) { int32 j; @@ -2111,8 +2107,6 @@ for (i = 0; i < mp->lines; i++) { /* loop thru lines */ } -/* Return count of available characters for line */ - int32 tmxr_rqln_bare (const TMLN *lp, t_bool speed) { if (speed) { @@ -2132,11 +2126,18 @@ if (speed) { return (lp->rxbpi - lp->rxbpr + ((lp->rxbpi < lp->rxbpr)? lp->rxbsz: 0)); } +/* Return count of available characters ready to be read for line */ + int32 tmxr_rqln (const TMLN *lp) { return tmxr_rqln_bare (lp, TRUE); } +int32 tmxr_input_pending_ln (TMLN *lp) +{ +return (lp->rxbpi - lp->rxbpr); +} + /* Store character in line buffer