From bd2ff691825a218afb9395398bd8732135870872 Mon Sep 17 00:00:00 2001
From: "ol.sc" 
Date: Tue, 16 Oct 2012 06:34:38 +0000
Subject: [PATCH] I wasn't aware that the unit numbers in the ProDOS device
 list contain device type identifiers in the low nibble. So if we can't use
 the device list entries as-is we can as well present the high nibble as low
 nibble to the user thus providing more meaningful device numbers.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5853 b7a2c559-68d2-44c3-8de9-860c34a00d81
---
 targetutil/geos-apple/convert.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/targetutil/geos-apple/convert.c b/targetutil/geos-apple/convert.c
index d69eea7a6..9b9962456 100644
--- a/targetutil/geos-apple/convert.c
+++ b/targetutil/geos-apple/convert.c
@@ -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);
     }
-- 
2.39.5