thanks all. I'm trying to re-create lha archive, but unfortunately, none of the above versions produce desired result. packed file always has a byte or two less or more.
oh, well.
Are you absolutely sure that the file you are packing is 100% exactly the same as the original you're trying to reproduce? All sorts of simple things could cause a 1 byte discrepancy.