JPH06348490A

Arithmetic processing method and microcomputer

Abstract

(57) A summary and the purpose The purpose of the present invention is to offer the technology for reducing the operating capacity of a main memory unit. Composition Where compression processing is carried out, store the program of executable code in ROM5, fetch compression program data from this ROM5, and it by the extension part 108, After elongating in the form before compression, reduction of the memory usage of the main memory unit containing ROM5 is aimed at by decoding and performing by the instruction decoder 110. And when a branch instruction appears, in the control section 111, it changes into an after-compression branch destination address, and it is set to the program counter 114.

Term

Term ended

Projected expiry passed 8 June 2013, 13.3 years ago.

  1. Priority and filed
  2. Published
  3. Projected expiry
  4. Today

9 claims: 5 independent, 4 dependent

  1. 1
    [Claims] 1. In an arithmetic processing method in which a program is compressed and stored in a storage means, and a predetermined arithmetic processing is performed based on the compression program, a step of fetching compressed program data in the storage means and fetched. The step of converting the program data to the format before compression by decompressing, the step of decoding the code obtained by this decompression, and the instruction execution when this decoding output is an instruction that involves changing the program execution order. An arithmetic processing method including a step of converting a jump destination address whose order should be changed into a jump destination address in a compression program and setting it in a program counter. 【特許請求の範囲】 【請求項1】 プログラムを圧縮して記憶手段に記憶し、この圧縮プログラムに基づいて所定の演算処理を行う演算処理方法において、上記記憶手段内の圧縮プログラムデータをフェッチするステップと、フェッチされたプログラムデータを伸長することによって圧縮前の形式に変換するステップと、この伸長によって得られたコードをデコードするステップと、このデコード出力が、プログラム実行順序の変更を伴う命令である場合に、命令実行順序が変更されるべき飛び先アドレスを、圧縮プログラムにおける飛び先アドレスに変換し、それをプログラムカウンタにセットするステップとを含むことを特徴とする演算処理方法。
  2. 2
    In an arithmetic processing method in which a program is compressed and stored in a storage means, and a predetermined arithmetic processing is performed based on the compression program, a step of fetching the compressed program data in the storage means and fetched. A step of determining whether or not decompression is necessary from the compressed program data, a step of converting the compressed program data to the format before compression by decompressing the compressed program data according to the determination result, and an instruction code obtained by this decompression. When the step to decode and this decoding output are instructions that involve changing the program execution order, the jump destination address for which the instruction execution order should be changed is converted to the jump destination address in the compressed program, and this is converted to the program counter. An arithmetic processing method characterized by including a step to be set in. 【請求項2】 プログラムを圧縮して記憶手段に記憶し、この圧縮プログラムに基づいて所定の演算処理を行う演算処理方法において、上記記憶手段内の圧縮プログラムデータをフェッチするステップと、フェッチされた圧縮プログラムデータから伸長の必要性の有無を判別するステップと、この判別結果に応じて、圧縮プログラムデータを伸長することによって圧縮前の形式に変換するステップと、この伸長によって得られた命令コードをデコードするステップと、このデコード出力が、プログラム実行順序の変更を伴う命令である場合に、命令実行順序が変更されるべき飛び先アドレスを、圧縮プログラムにおける飛び先アドレスに変換し、それをプログラムカウンタにセットするステップとを含むことを特徴とする演算処理方法。
  3. 3
    A computer that includes a program counter for designating an instruction address and performs a predetermined arithmetic process by decoding and executing an instruction constituting the program stores compressed program data. And the decompression means for converting the compressed program data fetched from the storage means into the pre-compressed format based on the address indicated by the program counter, and the decompression means obtained by this decompression. A microcomputer characterized by including a decoder for decoding the code. 【請求項3】 命令アドレスを指定するためのプログラムカウンタを含み、プログラムを構成する命令をデコードして実行することにより所定の演算処理を行うためのマイクロコンピュータにおいて、圧縮処理されたプログラムデータを記憶するための記憶手段と、上記プログラムカウンタによって示されるアドレスに基づいて上記記憶手段からフェッチされた圧縮プログラムデータを伸長することによって圧縮前の形式に変換するための伸長手段と、この伸長によって得られたコードをデコードするためのデコーダとを含むことを特徴とするマイクロコンピュータ。
  4. 4
    A program counter for designating an instruction address is included, and compressed program data is stored in a microcomputer for performing a predetermined arithmetic process by decoding and executing an instruction constituting the program. A storage means for decompressing, a decompression means for converting the compressed program data fetched from this storage means into a format before compression by decompressing, and a decoder for decoding the code obtained by this decompression. When this decoded output involves a change in the program execution order, the address conversion means for converting the jump destination address whose instruction order should be changed to the jump destination address in the compression program and the converted jump destination address are described above. A microcomputer characterized by including a program counter setting means for setting a program counter. 【請求項4】 命令アドレスを指定するためのプログラムカウンタを含み、プログラムを構成する命令をデコードして実行することにより所定の演算処理を行うためのマイクロコンピュータにおいて、圧縮処理されたプログラムデータを記憶するための記憶手段と、この記憶手段からフェッチされた圧縮プログラムデータを伸長することによって圧縮前の形式に変換するための伸長手段と、この伸長によって得られたコードをデコードするためのデコーダと、このデコード出力がプログラム実行順序の変更を伴う場合に、命令順序が変更されるべき飛び先アドレスを、圧縮プログラムにおける飛び先アドレスに変換するためのアドレス変換手段と、変換された飛び先アドレスを上記プログラムカウンタにセットするためのプログラムカウンタセット手段とを含むことを特徴とするマイクロコンピュータ。
  5. 8
    The storage means is a read-only memory for storing compressed program data by expressing byte string data frequently appearing in precompressed program data with a 1-byte code. Claims 3 to 7. The microcomputer according to any one of the above. 【請求項8】 上記記憶手段は、圧縮前プログラムデータにおいて出現頻度の高いバイト列データが1バイトコードで表現されることによって圧縮されたプログラムデータを格納する読出し専用メモリである請求項3乃至7のいずれか1項記載のマイクロコンピュータ。