Splitting out a frame of bytes

It works, I don't want to port it somewhere, so what?