onecomp8 function

int onecomp8(
  1. int value
)

Implementation

int onecomp8(int value) => (~value).toSigned(8) % 0x100;