From 2273b7575c1dfc70ddc41f32c58d37ed537980ad Mon Sep 17 00:00:00 2001
From: "ol.sc"
Date: Fri, 4 Jun 2010 21:41:22 +0000
Subject: [PATCH] DIO functions always set _oserror.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4715 b7a2c559-68d2-44c3-8de9-860c34a00d81
---
libsrc/apple2/diosectsize.s | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/libsrc/apple2/diosectsize.s b/libsrc/apple2/diosectsize.s
index 40b8113b4..0acf4c7a0 100644
--- a/libsrc/apple2/diosectsize.s
+++ b/libsrc/apple2/diosectsize.s
@@ -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
--
2.39.5