CAT: minor cleanup. Ready to merge.

This commit is contained in:
Bobbi Webber-Manners 2021-07-04 15:07:56 -04:00
parent cc3624079f
commit f8e107fbf9

View File

@ -21,7 +21,7 @@ ArgCount .BS 1
FileCount .BS 1 FileCount .BS 1
bPause .BS 1 bPause .BS 1
bDummy .BS 1 bDummy .BS 1
bStdout .BS 1 bIsTTY .BS 1
ArgIndex .BS 1 ArgIndex .BS 1
hBuf .BS 1 hBuf .BS 1
hFile .BS 1 hFile .BS 1
@ -56,7 +56,7 @@ CS.INIT clc
rts rts
*-------------------------------------- *--------------------------------------
CS.RUN CS.RUN
.1 stz bStdout .1 stz bIsTTY
inc ArgCount inc ArgCount
lda ArgCount lda ArgCount
@ -124,8 +124,7 @@ CS.RUN
cmp #S.FD.T.PIPE cmp #S.FD.T.PIPE
beq CS.RUN.LOOP beq CS.RUN.LOOP
lda #$ff inc bIsTTY
sta bStdout
>PUSHW L.MSG.INIT >PUSHW L.MSG.INIT
>PUSHBI 0 >PUSHBI 0
@ -186,7 +185,7 @@ CS.RUN.LOOP ldy #S.PS.hStdIn
cmp #C.CR cmp #C.CR
bne CS.RUN.LOOP bne CS.RUN.LOOP
lda bStdout lda bIsTTY
beq CS.RUN.LOOP beq CS.RUN.LOOP
lda #C.LF lda #C.LF