From: Johan K. <joh...@id...> - 2002-03-28 09:22:24
|
> NOT WORKING: > addr = SETUPDAT[3]; > addr = addr << 8; > addr += SETUPDAT[2]; It looks like SETUPDAT[] is an array of signed chars. So this one is sign extended before the addition. You will get: 0x1f00 + 0xffff = 0x1eff which is what you asked for. Johan |