I am writing my own Servo Driver Program in Python and I struggle quite a bit with Two's (2's) Complement calculation.
Example: I want to have "-100" as an input and get "FF9C" or just "9C" which would also work for the output.
The following picture might help to clarify: