From 5abf8809330cd7bf2295ef23b8836f95a0f686b4 Mon Sep 17 00:00:00 2001 From: "ol.sc" Date: Mon, 25 Aug 2008 20:23:12 +0000 Subject: [PATCH] Added reference to dio_query_sectcount(). git-svn-id: svn://svn.cc65.org/cc65/trunk@3893 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- doc/dio.sgml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/doc/dio.sgml b/doc/dio.sgml index 83a2edc4d..685e3454f 100644 --- a/doc/dio.sgml +++ b/doc/dio.sgml @@ -67,15 +67,21 @@ This function will write the memory contents at buffer to the sector specified by sect_num. A verification is performed.

-Use the function to query the size of a sector. +Use the function to query +the size of a sector and the +function to query the number of available sectors. +

All these functions will return 0 for success and an OS specific error code in case of failure.

-Querying sector size

+Querying sector size and count

+ +Some systems support multiple diskette formats which have different sector sizes +and/or different sector counts. +

-Some systems support multiple diskette formats which have different sector sizes. The following function returns the sector size of the currently inserted disk: @@ -85,6 +91,13 @@ The following function returns the sector size of the currently inserted disk: On the Atari platform, the sector size is handled specially. Please refer to the DIO section in the specific platform documentation. +

+ +The following function returns the sector count of the currently inserted disk: + + + sectnum_t __fastcall__ dio_query_sectcount(dhandle_t handle); + Converting sector numbers

-- 2.39.5