def decode_signed_byte(value: str) -> int:
    """
    Convert a hex byte to a signed int.  Copied from GE's hextodec method.
    """
    val = int(value, 16)
    if val > 128:
        return val - 256
    return val