Ah crap... Please ignore this one. I forgot about sign extension. Thecode works fine.regards,dan carpenter