"Been having engine trouble" What kind of trouble? Could be fuel delivery or ignition problems which would have no relation to compression. Unless you have a blown or leaky head gasket compression loss would probably happen over a fairly long time. As the engine was running fine before the trouble I suggest you go slowly and check the small items carefully before you open it up. Let us know what you find.