View Single Post
Old 11 September 2016, 19:30   #217
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 2,479
In hardfile.cpp around line 1220, you have:
Code:
int d_head = cmdbuf[1] & 31;
int d_cyl = cmdbuf[3] | ((cmdbuf[2] >> 6) << 8) | ((cmdbuf[1] >> 7) << 10);
int d_sec = cmdbuf[2] & 63;

*lba = ((cmdbuf[1] & (0x1f | 0x80 | 0x40)) << 16) | (cmdbuf[2] << 8) || cmdbuf[3];
Not sure I understand the *lba = line, especially cmdbuf[1] & (0x1f | 0x80 | 0x40) and || as opposed to |.
mark_k is offline  
 
Page generated in 0.06584 seconds with 9 queries