Jiggy-Ninja
Thanks for the speedy reply my typo should have read Result = (Result ^ 0xffff) +1
I've just tried your rely and I get a positive number in hex.
Basically if my int result is 24 then I can convert it to 0x0018, but if the result is -24 the result I need is 0xFFE7.
or 0xFFFF - 0x0018 or 65535 - 24 = 65511 converted to 0xFFE7.
When I try this in my code I get 0xFFFFFFE7 which the third party software won't accept.