Hello, I'm trying to read a layout file but I'm struggling with the objects coordinates. On the on LFS Manual, at the OBJECT BLOCK section it says where the coordinate came from:

The problem is that the blockByte[0] and blockByte[1] are related to X and blockByte[2] and blockByte[3] are related to Y.
e.g:
X: -100 equals to 192 and 249

X: 100 equals to 64 and 6

What arithmetic operation can I do to get the correct X value?

The problem is that the blockByte[0] and blockByte[1] are related to X and blockByte[2] and blockByte[3] are related to Y.
e.g:
X: -100 equals to 192 and 249

X: 100 equals to 64 and 6

What arithmetic operation can I do to get the correct X value?