File tree Expand file tree Collapse file tree 4 files changed +7
-5
lines changed Expand file tree Collapse file tree 4 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 5555 bne @l2
5656 rts
5757@l2:
58- jsr SETNAM2
58+ jsr SETNAMX
5959
6060 ldy #0
6161@l31:
@@ -100,7 +100,7 @@ open_files:
100100 beq redirect ; no output
101101 ldx FNADR1
102102 ldy FNADR1+1
103- jsr SETNAM2
103+ jsr SETNAMX
104104
105105 lda #pipfho
106106 tay
@@ -199,15 +199,16 @@ error:
199199; -----------------------------------------------------------------------------
200200; set filename and optional device number
201201
202- SETNAM2 :
202+ SETNAMX :
203203 jsr SETNAM
204204 ldy #1
205205 lda (FNADR),Y
206206 cmp #':'
207- bne @sndone
207+ bne @done
208208 DEY
209209 lda (FNADR),y
210210 jsr SETDEV
211+ beq @done
211212 clc
212213 lda FNADR
213214 adc #2
@@ -217,7 +218,7 @@ SETNAM2:
217218 sta FNADR+1
218219 dec FNLEN
219220 dec FNLEN
220- @sndone :
221+ @done :
221222 rts
222223
223224; -----------------------------------------------------------------------------
@@ -234,6 +235,7 @@ SETDEV:
234235 bpl @sdx
235236@sde:
236237 lda 0
238+ rts
237239@sdx:
238240 sta FA
239241 rts
You can’t perform that action at this time.
0 commit comments