]> git.sur5r.net Git - cc65/commitdiff
I wasn't aware that the unit numbers in the ProDOS device list contain device type...
authorol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 16 Oct 2012 06:34:38 +0000 (06:34 +0000)
committerol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 16 Oct 2012 06:34:38 +0000 (06:34 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@5853 b7a2c559-68d2-44c3-8de9-860c34a00d81

targetutil/geos-apple/convert.c

index d69eea7a6c47b960ac1ed4fa69662c9b5e8c2ade..9b996245638ef3fd8c8bce2145aba342ddb50048 100644 (file)
@@ -110,7 +110,7 @@ static unsigned get_dir_entry(char* p_name)
     cur_addr = *(unsigned*)(&dirent->d_mtime.hour + 1);
 
     /* DEV_NUM is set to the drive accessed above */
-    dhandle = dio_open(*(unsigned char*)0xBF30);
+    dhandle = dio_open(*(unsigned char*)0xBF30 >> 4);
     if (!dhandle) {
         err_exit("dio_open", 1);
     }