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
This commit is contained in:
parent
272b8e7185
commit
bd2ff69182
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue