I wasn't talking about parsing. getbit() and setbit() are used to set individual bits of a 32-bit integer. One could use them to create a function that take two integers in the 16-bit range and combine them in a single 32-bit integer. If we had bit-shifting operation, that would be much easier to do.
You could maybe try to use decimal shifting instead :
-packing
CombinedInt = FirstInt * 1000000 + SecondInt
-unpacking
FirstInt = floor(CombinedInt / 1000000)
SecondInt = CombinedInt % 1000000
It would work to combine numbers in the 0-999999 range.