1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-25 17:29:50 +00:00

dio_open():

- Use ProDOS 8 unit number as parameter.
- Don't access the drive, just check its presence.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4725 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
ol.sc 2010-06-16 21:36:50 +00:00
parent 51d4a5bf79
commit a99d0ceee7
2 changed files with 5 additions and 15 deletions

View File

@ -498,15 +498,10 @@ The function <htmlurl url="dio-1.html" name="dio_open()"> has the single paramet
slot and drive pair is mapped to that <tt/drive_id/ according to the formula
<verb>
drive_id = (slot * 2) + (drive - 1)
drive_id = slot * 16 + (drive - 1) * 128
</verb>
so that for example slot 6 drive 1 is mapped to <tt/drive_id/ 12.
The function <htmlurl url="dio-1.html" name="dio_open()"> succeeds only if a
formatted disk is present in the drive. However intentionally no check is
performed on the presence of a ProDOS 8 disk. Therefore access to all standard
16-sector disks (as for instance DOS 3.3) is possible.
so that for example slot 6 drive 2 is mapped to <tt/drive_id/ 224.

View File

@ -502,17 +502,12 @@ name="assembler manual">.
The function <htmlurl url="dio-1.html" name="dio_open()"> has the single parameter
<tt/drive_id/ to identify the drive to be opened. Therefore an Apple&nbsp;II
slot and drive pair is mapped to that <tt/drive_id/ according to the formula
<verb>
drive_id = (slot * 2) + (drive - 1)
drive_id = slot * 16 + (drive - 1) * 128
</verb>
so that for example slot 6 drive 1 is mapped to <tt/drive_id/ 12.
The function <htmlurl url="dio-1.html" name="dio_open()"> succeeds only if a
formatted disk is present in the drive. However intentionally no check is
performed on the presence of a ProDOS 8 disk. Therefore access to all standard
16-sector disks (as for instance DOS 3.3) is possible.
so that for example slot 6 drive 2 is mapped to <tt/drive_id/ 224.