Patent ID: 7523294

Claim:
A method of compressing instruction codes, for processing at least one original instruction block according to a compression ratio, the original instruction block having an original block length and consisting of a fixed number of instructions, the method comprising: compressing the original instruction block into a compressed instruction block having a compressed block length according to an encoding technique; determining whether a ratio of the compressed block length to the original block length is equal to or less than the compression ratio; and if the ratio of the compressed block length to the original block length is not equal to or less than the compression ratio, utilizing the instructions of the original instruction block or compressed instructions of the compressed instruction block to form two or more new compressed instruction blocks, each of which having a new block length and a ratio of the new block length to the original block length is equal to the compression ratio; wherein a plurality of specific instructions are inserted when forming and/or decompressing the new compressed instruction blocks, so as to make each decompressed block of the new compressed instruction blocks consist of a number of instructions equal to the fixed number of instructions.