I was wondering if its possible to make an expression to take the 16-bit two’s complement of a binary number in the Math Node? Or would that require a function node to do it in Javascript?

I have integers that represent two’s complement encoding and I need to reverse that. E.g. 65437 is in my payload and that should be converted to -99.