]> git.sur5r.net Git - cc65/commitdiff
DIO functions always set _oserror.
authorol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 4 Jun 2010 21:41:22 +0000 (21:41 +0000)
committerol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 4 Jun 2010 21:41:22 +0000 (21:41 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@4715 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/apple2/diosectsize.s

index 40b8113b447d0295666f5e93f1cec6172352b908..0acf4c7a0a9917f46446e0842fef3212cb1308c4 100644 (file)
@@ -6,7 +6,13 @@
 
         .export        _dio_query_sectsize
 
+        .include       "errno.inc"
+
 _dio_query_sectsize:
+        ; Clear error
+        stx    __oserror       ; X = 0
+
+        ; Return ProDOS 8 block size
         lda    #<512
         ldx    #>512
         rts