The code is as follows:
unsigned int diskData; /* Disk data */
。。。
。。。
for (offset = 0; offset != 256; offset++) /* Read "sector" */
diskData = inpw(cmdInterface);//At this time, data can be successfully obtained
printf("Word:%X, Word:%X\n", diskData, diskData]);//61: 60 is the number of sectors. If the hard disk size is 80G, the data taken out is correct, but if the hard disk is 160G/250G/500G, the taken-out numbers are all FFF:FFFF. There must be something wrong, but I don't know where the problem is. Is there any expert who knows? Thank you!~~~~
unsigned int diskData; /* Disk data */
。。。
。。。
for (offset = 0; offset != 256; offset++) /* Read "sector" */
diskData = inpw(cmdInterface);//At this time, data can be successfully obtained
printf("Word:%X, Word:%X\n", diskData, diskData]);//61: 60 is the number of sectors. If the hard disk size is 80G, the data taken out is correct, but if the hard disk is 160G/250G/500G, the taken-out numbers are all FFF:FFFF. There must be something wrong, but I don't know where the problem is. Is there any expert who knows? Thank you!~~~~


