From: Christian Groessler Date: Mon, 6 Jun 2016 20:45:20 +0000 (+0200) Subject: Some Atari runtime library fixes. X-Git-Tag: V2.16~113^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=refs%2Fpull%2F306%2Fhead;p=cc65 Some Atari runtime library fixes. * libsrc/atari/ucase_fn.s: Fix handling if input parameter 'tmp2' is 0. * libsrc/atari/open.s: Set 'tmp2' parameter for 'ucase_fn' if DEFAULT_DEVICE is not defined. --- diff --git a/libsrc/atari/open.s b/libsrc/atari/open.s index 2188257cb..d5ff4ca52 100644 --- a/libsrc/atari/open.s +++ b/libsrc/atari/open.s @@ -93,8 +93,10 @@ cont: ldy #3 .ifdef UCASE_FILENAME .ifdef DEFAULT_DEVICE ldy #$80 - sty tmp2 ; set flag for ucase_fn +.else + ldy #$00 .endif + sty tmp2 ; set flag for ucase_fn jsr ucase_fn bcc ucok1 invret: lda #