From: ol.sc Date: Tue, 16 Oct 2012 06:34:38 +0000 (+0000) Subject: I wasn't aware that the unit numbers in the ProDOS device list contain device type... X-Git-Tag: V2.14~221 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bd2ff691825a218afb9395398bd8732135870872;p=cc65 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 --- 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); }