It's fun coming across 80s C code with bitfields in structs. To port it, without scrapping and rewriting, you have to do the "Is this 32 bit or 64 bit I'm running on" and bit shifting/AND-masking game.

//