Article ID: 119871
Article Last Modified on 7/5/2005
// Compile options needed: /c /Ox /Fc
unsigned long test(char * baseport, unsigned long addr)
{
unsigned long offset;
offset = ((addr >> 3) & 0x00003fff);
addr >>= 8; //Line 1
outp(baseport + 4, addr); //Line 2
// Replacing the above two lines of code with the line below
// fixes the problem.
// outp(baseport + 4, addr >> 8); //Line 3--okay with /Ox.
return offset;
}
Additional query words: 1.00 8.00
Keywords: kbbug kbfix KB119871