mirror of
https://github.com/cc65/cc65.git
synced 2025-01-14 00:32:08 +00:00
Set _oserror only on error.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4679 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
5b2de2d9f0
commit
2e0ab6f863
@ -28,7 +28,7 @@ _rootdir:
|
|||||||
lda #ON_LINE_CALL
|
lda #ON_LINE_CALL
|
||||||
ldx #ON_LINE_COUNT
|
ldx #ON_LINE_COUNT
|
||||||
jsr callmli
|
jsr callmli
|
||||||
bcs :+
|
bcs oserr
|
||||||
|
|
||||||
; Get volume name length
|
; Get volume name length
|
||||||
ldy #$00
|
ldy #$00
|
||||||
@ -46,7 +46,11 @@ _rootdir:
|
|||||||
lda #$00
|
lda #$00
|
||||||
sta (ptr1),y
|
sta (ptr1),y
|
||||||
|
|
||||||
; Return success or error
|
; Return success
|
||||||
: sta __oserror
|
tax
|
||||||
|
rts
|
||||||
|
|
||||||
|
; Return error
|
||||||
|
oserr: sta __oserror
|
||||||
ldx #$00
|
ldx #$00
|
||||||
rts
|
rts
|
||||||
|
Loading…
x
Reference in New Issue
Block a user