mirror of
https://github.com/cc65/cc65.git
synced 2024-12-25 17:29:50 +00:00
some fixes
git-svn-id: svn://svn.cc65.org/cc65/trunk@4829 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
1aeb5651f5
commit
03ed1b3a6a
@ -41,7 +41,7 @@ _opendir: sta ptr1
|
||||
cioerr: sty __oserror
|
||||
jmp return0
|
||||
|
||||
.proc _readdir
|
||||
.proc _readdir
|
||||
tax
|
||||
lda #GETREC
|
||||
sta ICCOM,x
|
||||
@ -90,24 +90,27 @@ cioerr: sty __oserror
|
||||
rts
|
||||
|
||||
copychar: lda (ptr1),y ; src=y dest=tmp1
|
||||
cmp #' '
|
||||
ldy tmp1
|
||||
cmp #' '
|
||||
beq @break
|
||||
sta (ptr1),y
|
||||
iny
|
||||
sty tmp1
|
||||
@break: rts
|
||||
.endproc
|
||||
.endproc
|
||||
|
||||
.proc _closedir
|
||||
.proc _closedir
|
||||
tax
|
||||
lda #CLOSE
|
||||
sta ICCOM,x
|
||||
jsr CIOV
|
||||
bmi @cioerr
|
||||
ldx #0
|
||||
stx __oserror ; clear system specific error code
|
||||
txa
|
||||
rts
|
||||
@cioerr: jmp __do_oserror
|
||||
.endproc
|
||||
.endproc
|
||||
|
||||
.rodata
|
||||
defdev: .asciiz "D:*.*"
|
||||
|
Loading…
Reference in New Issue
Block a user