JPS59106047A - Microcomputer - Google Patents

Microcomputer

Info

Publication number
JPS59106047A
JPS59106047A JP57216366A JP21636682A JPS59106047A JP S59106047 A JPS59106047 A JP S59106047A JP 57216366 A JP57216366 A JP 57216366A JP 21636682 A JP21636682 A JP 21636682A JP S59106047 A JPS59106047 A JP S59106047A
Authority
JP
Japan
Prior art keywords
address
memory
instruction
byte
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP57216366A
Other languages
Japanese (ja)
Inventor
Hiroyuki Yokogawa
裕幸 横川
Kosuke Watanabe
渡辺 浩輔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP57216366A priority Critical patent/JPS59106047A/en
Publication of JPS59106047A publication Critical patent/JPS59106047A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/34Addressing or accessing the instruction operand or the result ; Formation of operand address; Addressing modes

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Executing Machine-Instructions (AREA)
  • Microcomputers (AREA)

Abstract

PURPOSE:To improve the use efficiency of a memory capacity and the processing efficiency, by constituting a memory with a half word as a unit length and designating two continuous addresses optionally to remove restrictions on arrangement of the memory. CONSTITUTION:When a read instruction is given to a CPU, a memory 9 is addressed through a CPU register 2, an address control circuit 5, adders 6 and 7, etc. That is, address 0 (lower byte 9b) and address 1 (upper byte 9a) are designated when an even address is the upper address, and address 1 (9a) and address 2 (9b) are designated when an odd address is the upper address. A swapping circuit 13 reads out data and exchanges or does not exchange upper and lower bytes in accordance with the least significant bit and outputs data to a data bus control circuit 3 through a gate circuit 14. In case of write, the similar processing is performed. Thus, the memory is constituted with a byte unit (1/2 word) as a unit length to improve the use efficiency of the memory capacity and the processing efficiency.

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は異なるビット単位の命令を実行できるマイクロ
コンピュータに関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a microcomputer capable of executing instructions in units of different bits.

〔従来技術とその間融点〕[Conventional technology and melting point]

通常の16ビツト以上の計算機では、ワード命令、例え
ば16ビツトマシンの場合は16ビツトのデータに対す
る命令の操作の対象になるのは、ワード境界にあるデー
タが操作の対象となる。ワード単位の命令の場合、メモ
リには2つのアドレスにつまり偶数番地とそれに続く奇
数番地に命令内容が書込まれるが、偶数番地のアドレス
指定によって命令が読出されるようになっている。この
ように従来では、偶数番地のアドレス指定によって命令
が続出されるようになっているので、例えばN0P(ノ
ーオペレーション)、 WA I T等のように2バイ
ト(16ビツト)のうち上位バイトが全て「0」である
単純命令でも、16ビツトのワードを必要としている。
In a normal 16-bit or higher computer, word instructions (for example, in the case of a 16-bit machine, instructions for 16-bit data operate on data on word boundaries). In the case of a word-based instruction, the instruction contents are written into the memory at two addresses, an even address and an odd address following it, but the instruction is read out by addressing the even address. In this way, in the past, instructions were issued one after another by specifying addresses at even addresses, so for example, the upper byte of the 2 bytes (16 bits), such as N0P (no operation), WAIT, etc. Even a simple instruction that is ``0'' requires a 16-bit word.

このためメモリ容量全効率的に使用できないと共に、常
に2バイトの命令全処理しなければならず、データ処理
も効率が悪いという間融があった。
For this reason, the memory capacity cannot be used fully efficiently, and all 2-byte instructions must be processed at all times, resulting in inefficient data processing.

〔発明の目的〕[Purpose of the invention]

本発明は上記の点に鑑みてなされたもので、メモリ内の
任意の連続したバイトをワード境界にとられれずに1ワ
ードとしてアクセスできると共に、単純命令の構成ビッ
ト数を減少でき、メモリ容量を効率的に使用できると共
に処理効率を同上できるマイクロコンピュータを提供す
ることを目的とする。
The present invention has been made in view of the above points, and it is possible to access any consecutive bytes in memory as one word without being bound to word boundaries, and it is also possible to reduce the number of bits constituting a simple instruction, thereby reducing memory capacity. It is an object of the present invention to provide a microcomputer that can be used efficiently and has improved processing efficiency.

〔発明の要点〕[Key points of the invention]

本発明は、各番地が172 ワードの容量を持つメモリ
を設け、連続する2つの番地を任意に指定できるように
すると共に、単純命令の場合には1/2 ワードの命令
を処理できるようにしたものである。
The present invention provides a memory with a capacity of 172 words at each address, so that two consecutive addresses can be specified arbitrarily, and in the case of a simple instruction, it is possible to process an instruction of 1/2 word. It is something.

〔発明の実施例〕[Embodiments of the invention]

以下図面を参照して本発明の実施例について説明する。 Embodiments of the present invention will be described below with reference to the drawings.

第1図において、1は演算装置で、CPUレジスタ2、
データバスコントロール回路3、インストラクションレ
ジスタ4にデータバスDBを介して接続されている。そ
して、上記CPUレジスタ2には、アドレスコントロー
ル回路5が接続される。このアドレスコントロール回路
5は、CPUレジスタ2からの場合に従ってアドレスデ
ータを出力するもので、このアドレスデータは第1及び
第2加算器6.7へ送られる。また、上記アドレスコン
トロール回路5から出力されるアドレスデータのうち、
最下位ビットLSBは出力ライン5aより出力され、第
2加算器7には直接、また、第1加算器6にはインバー
タ8を介して+1信号として送られる。そして、上記加
算器6,7の出力によってメモリ9のアドレスが指定さ
れる。上記メモリ9はバイト単位構成となっており、奇
数アドレスによってメモリ内上位バイト9a1偶数アド
レスによってメモリ内下位バイト9bが構成される。ま
た、上記データバスコントロール回路3には、ゲート回
路10を介してスワップ回路11が接続される。このス
ワップ回路11は、アドレスコントロール回路5から出
力ライン5&に出力される最下位ビットLSBによって
制御されるもので、最下位ピッ)LS Bが10”の時
は入力データの上位バイトを出力2インl1mを介して
メモリ9の奇数番地側つまりメモリ内上位パイ)9aへ
入力し、下位バイトを出力ラインIlbを介してメモリ
9の偶数番地側つまりメモリ内下位バイト9bへ入力す
る。また、スワップ回路11は、最下位ビットLSBが
”1”の時は入力データの上位バイトを出力ライン11
bを介してメモリ9の下位バイト9bへ入力し、下位バ
イトを出力ライン11gを介してメモリ9の上位バイト
9kに入力する。そして、このメモリ9の上位バイト9
aから読出される上位バイトのデータは、8ビツトのパ
スライン12mを介してスワップ回路13へ送られ、下
位バイト9bから読出される下位バイトのデータは8ビ
ツトのパスライン12bを介してスワップ回路13へ送
られる。
In FIG. 1, 1 is an arithmetic unit, a CPU register 2,
It is connected to a data bus control circuit 3 and an instruction register 4 via a data bus DB. An address control circuit 5 is connected to the CPU register 2. This address control circuit 5 outputs address data according to the case from the CPU register 2, and this address data is sent to the first and second adders 6.7. Furthermore, among the address data output from the address control circuit 5,
The least significant bit LSB is output from the output line 5a and sent directly to the second adder 7 and to the first adder 6 via the inverter 8 as a +1 signal. Then, the address of the memory 9 is designated by the outputs of the adders 6 and 7. The memory 9 is configured in byte units, with an upper byte 9a in the memory being configured by an odd address and a lower byte 9b in the memory being configured by an even address. Further, a swap circuit 11 is connected to the data bus control circuit 3 via a gate circuit 10. This swap circuit 11 is controlled by the least significant bit LSB output from the address control circuit 5 to the output line 5&.When the least significant bit (LSB) is 10'', the upper byte of the input data is output to The lower byte is input to the even address side of the memory 9, ie, the lower byte 9b of the memory 9, via the output line Ilb. 11, when the least significant bit LSB is "1", the upper byte of the input data is output to the output line 11.
b to the lower byte 9b of the memory 9, and the lower byte is input to the upper byte 9k of the memory 9 via the output line 11g. And the upper byte 9 of this memory 9
The upper byte data read from the lower byte 9b is sent to the swap circuit 13 via the 8-bit pass line 12m, and the lower byte data read from the lower byte 9b is sent to the swap circuit 13 via the 8-bit pass line 12b. Sent to 13.

上記スワップ回路13は、上記アドレスコントロール回
路5から出力ライン5aに出力される最下位ピッ)LS
Hによって制御されるもので、最下位ピッ)LSBが′
″0”の時は上位バイトと下位バイトの入れ換えを行な
わずに出方し、最下位ピッ)LS Bが“1”の時は上
位バイトと下位バイトとを入れ換えて出力する。そして
、上記スワップ回路13から出力される2バイト(16
ピツト)のデータは、ゲート回路14を介シてデータバ
スコントロール回路3へ送られ、さらに、上記インスト
ラクションレジスタ4へ転送される。このインストラク
ションレジスタ4は上位バイト用の上位レジスタ及び下
位バイト用の下位レジスタからなり、データバスDBか
ら取込んだ命令をインストラクションデコーダ/CPU
コントロール回路15へ転送する。
The swap circuit 13 is connected to the lowest pin (LS) output from the address control circuit 5 to the output line 5a.
It is controlled by H, and the lowest bit (LSB) is '
When it is "0", the upper byte and lower byte are not exchanged and output, and when the least significant bit (LSB) is "1", the upper byte and lower byte are exchanged and output. Then, 2 bytes (16 bytes) are output from the swap circuit 13.
The data of the pit) is sent to the data bus control circuit 3 via the gate circuit 14, and further transferred to the instruction register 4. This instruction register 4 consists of an upper register for the upper byte and a lower register for the lower byte, and the instruction fetched from the data bus DB is transferred to the instruction decoder/CPU.
It is transferred to the control circuit 15.

このインストラクションデコーダ/CPUコントロール
回路15は、入力されたインストラクションをデコード
し、上記ゲート回路10.14のゲート制御を行なうと
共に、アドレスコントロール回路5にレングス信号を送
り、さらに、CPU及びシステムの制御を行なう。
This instruction decoder/CPU control circuit 15 decodes the input instruction, performs gate control of the gate circuit 10.14, sends a length signal to the address control circuit 5, and further controls the CPU and system. .

次に上記実施例の動作を説明する。まず、CPUから偶
数番地を上位とする読出し命令が与えられた時の動作に
ついて説明する。アドレスコントロール回路5は、CP
Uレジスタ2に保持されたデータに従って偶数番地例え
ば0番地を指定するアドレスデータを出方し、第1、第
2加算器6,7へ入力する。この時、最下位ビットLS
Bは10″であるから、インバータ8の出力が1″とな
って第1加算器6に「+1」信号を与える。このため第
1加算器6においてのみアドレスデータにr+IJされ
、その出力が「1」となる。一方、第2加η、器7は、
入力されたアドレスデータrOJをそのまま出力する。
Next, the operation of the above embodiment will be explained. First, an explanation will be given of the operation when a read command is given from the CPU with an even numbered address as the uppermost address. The address control circuit 5 is CP
According to the data held in the U register 2, address data specifying an even address, for example, address 0, is output and input to the first and second adders 6 and 7. At this time, the least significant bit LS
Since B is 10'', the output of the inverter 8 becomes 1'' and provides a "+1" signal to the first adder 6. Therefore, the address data is r+IJ only in the first adder 6, and its output becomes "1". On the other hand, the second addition η, vessel 7 is
The input address data rOJ is output as is.

このためメモリ9は0番地(下位パイ)9b )及び1
番地(上位バイト9a)がアドレス指定され、その記憶
内容がスワップ回路13に読出される。このスワップ回
路I3は、アドレスデータの最下位ビットLSBがon
の場合、メモリ9から読出される上位バイトと下位バイ
トの交換は行なわずにゲート回路14を介してデータバ
スコントロール回路3へ出力する。
Therefore, memory 9 has addresses 0 (lower pie) 9b) and 1
The address (upper byte 9a) is addressed, and its storage contents are read out to the swap circuit 13. In this swap circuit I3, the least significant bit LSB of address data is on.
In this case, the upper byte and lower byte read from the memory 9 are not exchanged and are output to the data bus control circuit 3 via the gate circuit 14.

また、CPUから奇数番地を上位とする続出し命令がC
PUレジスタ2に与えられた場合は、アドレスコントロ
ーラ5から奇数番地例えば1番地を指定するアドレスデ
ータが出力され、第1、第2の加算器6,2へ入力され
る。この時、最下位ピッ)LSBは”1”であるから、
第2加算器7に「+1」信号が入力される。また、上記
最下位ピッ)LSBは、インバータ8で“O″に反転さ
れるので、第1′加算器6は「+1」動作はアドレスデ
ータ「1」をそのまま出力する。そして、第2加算器7
は、上記1’−+IJ信号によってアドレスデータ「1
」をr+IJL、2@地を指定するアドレスデータを出
力する。このためメモリ9は1番地(上位パイ)9a)
及び2番地(下位バイト9b)がアドレス指定され、そ
の記憶内容がスワップ回路13に続出される。このスワ
ップ回路13は、アドレスデータの最下位ピッ)I、S
Bが′1″の場合、メモリ9から読出されるデータに対
し、上位バイトと下位バイトとを交換し、ゲート回路1
4を介してデータバスコントロール回路3へ出力する。
In addition, a series of instructions from the CPU with odd-numbered addresses as high-order
When given to the PU register 2, the address controller 5 outputs address data specifying an odd address, for example address 1, and inputs it to the first and second adders 6 and 2. At this time, the LSB (lowest bit) is "1", so
A “+1” signal is input to the second adder 7. Further, since the least significant bit (LSB) is inverted to "O" by the inverter 8, the 1' adder 6 outputs the address data "1" as is in the "+1" operation. And the second adder 7
is the address data “1” by the above 1’-+IJ signal.
” as r+IJL, outputs address data specifying 2@ ground. Therefore, memory 9 is at address 1 (upper pie) 9a)
and address 2 (lower byte 9b) are specified, and the stored contents are sequentially output to the swap circuit 13. This swap circuit 13 operates at the lowest bits (I, S) of address data.
When B is '1'', the upper byte and lower byte are exchanged for the data read from the memory 9, and the gate circuit 1
4 to the data bus control circuit 3.

次にメモリ9にデータを沓込む場合の動作について説明
する。メモリ9にデータの書込みを行なう場合、アドレ
ス指定については上記したデータの読出しの場合と同様
にして行なわれる。
Next, the operation for loading data into the memory 9 will be explained. When writing data into the memory 9, addressing is done in the same manner as in the case of reading data described above.

すなわち、アドレスコントロール回路5から偶数番地例
えば0番地を指定するアドレスデータが出力されると、
メモリ9の0番地及び1番地のアドレスが指定される。
That is, when address data specifying an even address, for example address 0, is output from the address control circuit 5,
Addresses 0 and 1 of memory 9 are designated.

一方、メモリ口込み用データは、データバスコントロー
ル回路3からゲート回路10を介してスワップ回路11
へ送られる。スワップ回路11は、アドレスコントロー
ル回路5から出力されるアドレスデータの最下位ピッ)
LSBが0”の場合、データの交換は行なわず、出力ラ
インllaに上位バイト、出力ラインllbに下位バイ
トのデータを出力する。この結果、メモリ9には、0番
地に下位バイト、11″′番地に上位バイトのデータが
書込まれる。
On the other hand, the memory loading data is transferred from the data bus control circuit 3 to the swap circuit 11 via the gate circuit 10.
sent to. The swap circuit 11 uses the lowest bit of the address data output from the address control circuit 5).
If the LSB is 0'', data is not exchanged, and the upper byte is output to the output line lla, and the lower byte is output to the output line llb.As a result, the memory 9 has the lower byte at address 0 and the lower byte at address 11''' The upper byte data is written to the address.

また、アドレスコントロール回路5から奇数番地例えば
1番地を指定するアドレスデータが出力されると、上記
したようにメモリ9の1番地及び2番地のアドレスが指
定される。また、アドレスコントロール回路5から奇数
番地のアドレスデータが出力された場合、その最下位ビ
ットLSBが′1#となり、スワップ回路1ノは入力デ
ータの上位バイトと下位パイ)Th交換し、出力ライン
llaに下位バイト、出力ラインIlbに上位バイトの
データを出力する。この結果、メモリ9には、1番地に
下位バイト、2番地に上位バイトのデータが書込まれる
Furthermore, when the address control circuit 5 outputs address data specifying an odd address, for example address 1, the addresses 1 and 2 of the memory 9 are specified as described above. Furthermore, when address data at an odd address is output from the address control circuit 5, its least significant bit LSB becomes '1#', the swap circuit 1 exchanges the upper byte of the input data with the lower pi)Th, and outputs the output line lla The data of the lower byte is output to the output line Ilb, and the data of the upper byte is output to the output line Ilb. As a result, the lower byte data is written into the memory 9 at address 1 and the upper byte data is written into address 2.

次にバイト/ワードのマイクロコンピュータにおけるイ
ンストラクションセット例について説明する。第2図(
a)は基本的ワードフォーマットを示すもので、OPフ
ィールド(3ピツト)、reglフィールド(2ピツト
)、X2フイールド1ピツト、reg2フィールド(2
ビツト)からなっている。オペレーションコードOPは
、第2図(b)に示すように「0OOJ〜[1llJの
8種の命令を持っている。そして、オペレ−ジョンコー
ドOPが「o10J〜「1llJのとき各フィールドは
次のような意味を持っている。すなわち、reglフィ
ールドは、第1オペランドのレジスタ番地を示す。X2
フイールドは、第2オペランドのアドレッシングモード
を示す。この場合、X2−0の時はreg2の内容を第
2オペランドとし、X2−1の時はreglをインデッ
クスレジスタとして用い、生成されたメモリアドレスを
第2オペランドとする。
Next, an example of an instruction set for a byte/word microcomputer will be described. Figure 2 (
A) shows the basic word format: OP field (3 pits), regl field (2 pits), X2 field 1 pit, reg2 field (2 pits).
It consists of bits). As shown in FIG. 2(b), the operation code OP has eight types of instructions from "0OOJ to [1llJ." When the operation code OP is "o10J to "1llJ, each field is In other words, the regl field indicates the register address of the first operand.X2
The field indicates the addressing mode of the second operand. In this case, when X2-0, the contents of reg2 are used as the second operand, and when X2-1, regl is used as the index register, and the generated memory address is used as the second operand.

reg2フィールドは第2オペランドとなるレジスタ番
号を示す。
The reg2 field indicates the register number serving as the second operand.

ソシて、上記オペレーションコードが「000Jの1バ
イト拡張命令である場合、そのフォーマットは第3図(
a)に示すようにOPフィールド(3ビツト)、op’
フィールド(3ビツト)、regフィールド(2ビツト
)により構成される。そして、OP′フィールドの内容
が「000」〜「1llJに変化することによって第3
図(b)に示す命令となる。さらに、上記OP′フィー
ルドの内容が「000Jの場合、regフィールドが第
4図(a)に示すようにOP′フィールドとして使用さ
れ、そのOP”フィールドの内容によって第4図(bl
に示す意味を持つようになる。
So, if the above operation code is a 1-byte extension instruction of 000J, its format is as shown in Figure 3 (
As shown in a), the OP field (3 bits), op'
It consists of a field (3 bits) and a reg field (2 bits). Then, as the content of the OP' field changes from "000" to "1llJ", the third
The command is shown in Figure (b). Furthermore, if the content of the OP' field is "000J," the reg field is used as the OP' field as shown in FIG.
It has the meaning shown in .

また、第2図(a)において、オペレーションコードO
Pが「001」の2バイト拡張命令である場合、そのフ
ォーマットは、第5図に示すようになる。すなわち、1
バイト目はOPフィールド(3ビツト)、reglフィ
ールド(2ビツト)、X2フイールド(1ビツト)、r
eg2フィールド(2ビツト)により構成され、2バイ
ト目はX1フイールド(1ビツト)及びファンクショy
フィールド(7ビツト)により構成される。そして、上
記2バイト目に拡張オペレーションコード、拡張アドレ
ッシングモードなどを入れることによって、例えばバイ
ト転送命令、EX−OR,ピットテストなどの演算命令
、メモリ間の転送命令、インデックス、リロケーション
レジスタなどへの転送命令、サブルーチン分岐命令、広
範囲な分岐命令、セグメント変更命令などの命令を構成
する。
In addition, in FIG. 2(a), the operation code O
When P is a 2-byte extended instruction of "001", its format is as shown in FIG. That is, 1
The byte is the OP field (3 bits), regl field (2 bits), X2 field (1 bit), r
It consists of the eg2 field (2 bits), and the second byte contains the X1 field (1 bit) and the function y
It consists of fields (7 bits). By putting an extended operation code, extended addressing mode, etc. in the second byte, for example, byte transfer instructions, arithmetic instructions such as EX-OR, pit test, transfer instructions between memories, indexes, relocation registers, etc. Constructs instructions such as subroutine branch instructions, wide range branch instructions, and segment change instructions.

しかして、CPUがメモリ9から読出した命令を実行す
る場合、メモリ9からスワップ回路13、データバスコ
ントロール回路3を介してデータバスDBに読出した命
令のうち、上位8ビツトをインストラクションレジスタ
4内の上位レジスタに取込む。そして、その命令が1バ
イト合金であるか否かをインストラクション/CPUコ
ントロール回路15において判断し、1バイト命令であ
ればそのまま命令を実行するが、1バイト命令でなかっ
た場合は命賃の下位8ビツトをインストラクションレジ
スタ4内の下位レジスタに取込み、インストラクション
デコーダ/ CP Uコントロール回路15でその命令
を解読して実行する。さらに、上記命令の実行段階で、
オペランドが16ピツトならば、16ピツトを同時にイ
ンストラクションレジスタ4に取込む。また、オペラン
ドが8ビツトならば、インストラクションレジスタ4内
の上位レジスタに取込んで処理する。
Therefore, when the CPU executes an instruction read from the memory 9, the upper 8 bits of the instruction read from the memory 9 to the data bus DB via the swap circuit 13 and the data bus control circuit 3 are stored in the instruction register 4. Import into upper register. Then, the instruction/CPU control circuit 15 judges whether the instruction is a 1-byte alloy, and if it is a 1-byte instruction, the instruction is executed as is, but if it is not a 1-byte instruction, the lower 8 The bit is taken into a lower register in the instruction register 4, and the instruction decoder/CPU control circuit 15 decodes and executes the instruction. Furthermore, at the execution stage of the above instruction,
If the operand is 16 pits, 16 pits are taken into the instruction register 4 at the same time. If the operand is 8 bits, it is taken into the upper register in the instruction register 4 and processed.

上記実施例のように構成することによって、プログラム
は8ビツトアーキテクチヤのもののサイズに近くなって
ROM化などによ1ノ有オリであり、しかも16ピツト
のデータ転送有比力、演算能力を持つことになる。
By configuring it as in the above embodiment, the program becomes close to the size of an 8-bit architecture, and can be converted into a ROM, etc., and has unique data transfer and computing power of 16 bits. It turns out.

なお、上記実施例では、16ピツトのマイクロコンピュ
ータに実施した場合につし)で示したが 8ビツト、4
ビツト、あるl/)は32ビツトのマイクロコンピュー
タにおI/)ても実施し得るものである。
In the above example, the case where the implementation was performed on a 16-bit microcomputer was shown as 8 bits, 4 bits.
A certain bit I/) can also be implemented in a 32-bit microcomputer I/).

〔発明の効果〕〔Effect of the invention〕

以上述べたように本発明によれ番ヨ、メモリを1ワード
の1/2を単位長として構成し、連続する2つの番地を
任意に指定できるように構成したので、メモリの任意の
連続した番地をワード境界にとられれずに1ワードとし
てアクセスでき、このためオペランドの設定カー任意と
な0、メモリ上の配置の制限をなくすことカーできる。
As described above, according to the present invention, the memory is configured with a unit length of 1/2 of one word, and two consecutive addresses can be arbitrarily specified. can be accessed as one word without being bound by word boundaries, so the operand can be set to 0 arbitrarily, and there are no restrictions on memory placement.

また、単純命智の場合には、1ワードの1/2の容量で
命令を構成でき、このためメモリ容祉を効率的に使用す
ることができると共に、1/2ワードの合金を実行でき
、処理効率を向上し得るものである。
In addition, in the case of simple wisdom, an instruction can be configured with a capacity of 1/2 of one word, and therefore memory space can be used efficiently, and an alloy of 1/2 word can be executed. This can improve processing efficiency.

【図面の簡単な説明】[Brief explanation of drawings]

図面は本発明の一実施例を示すもので、第1図は回路構
成を示すブロック図、第2図fat、第3図(a)、第
4図fa)及び第5図は命管語のフォーマットを示す図
、第2図fb)、第3図(b)及び第4図(b)は各命
令語の含分内容を示す図である。 1・・・演算装置、2・・・CPUレジスタ、3・・・
データバスコントロール回路、4・・・インストラクシ
ョンレジスタ、5・・・アドレスコントロール回路、6
,7・・・加算器、9・・・メモリ、10.14・・・
ゲート回路、11.13・・・スワップ回路、15・・
・インストラクションデコーダ/CPUコントロール回
路。
The drawings show one embodiment of the present invention, and FIG. 1 is a block diagram showing the circuit configuration, FIG. 2 is a block diagram showing the circuit configuration, FIG. The format diagrams (FIG. 2fb), FIG. 3(b), and FIG. 4(b) are diagrams showing the content of each instruction word. 1...Arithmetic unit, 2...CPU register, 3...
Data bus control circuit, 4... Instruction register, 5... Address control circuit, 6
, 7... Adder, 9... Memory, 10.14...
Gate circuit, 11.13... Swap circuit, 15...
・Instruction decoder/CPU control circuit.

Claims (1)

【特許請求の範囲】[Claims] マイクロコンピュータにおいて、1/2  ワードを単
位長とするメモリと、該メモリから続収った命令を記憶
する命令記憶手段と、該命令記憶手段に記憶された命令
の1/2 ワードの所定ピットを解読し、これに続く1
/2 ワードが必要かどうかを判断して、必要でないと
判断した時上記1/2 ワードを1つの命令とし、続く
1/2 ワードが必要と判断した時上記命令記憶手段か
ら続く1/2ワードを読取って1ワードの長さの命令の
命令とする命令解読手段とを備えたことを特徴とするマ
イクロコンピュータ。
In a microcomputer, a memory having a unit length of 1/2 word, an instruction storage means for storing instructions subsequently received from the memory, and a predetermined pit of 1/2 word of the instruction stored in the instruction storage means are provided. Decipher and follow this 1
/2 When it is determined that a word is necessary or not, the above 1/2 word is considered as one instruction, and when it is determined that the following 1/2 word is necessary, the following 1/2 word is written from the instruction storage means. A microcomputer comprising an instruction decoding means for reading the instruction and converting the instruction into an instruction having a length of one word.
JP57216366A 1982-12-10 1982-12-10 Microcomputer Pending JPS59106047A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57216366A JPS59106047A (en) 1982-12-10 1982-12-10 Microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57216366A JPS59106047A (en) 1982-12-10 1982-12-10 Microcomputer

Publications (1)

Publication Number Publication Date
JPS59106047A true JPS59106047A (en) 1984-06-19

Family

ID=16687443

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57216366A Pending JPS59106047A (en) 1982-12-10 1982-12-10 Microcomputer

Country Status (1)

Country Link
JP (1) JPS59106047A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05324315A (en) * 1992-05-26 1993-12-07 Matsushita Electric Ind Co Ltd Program controller
USRE40498E1 (en) 1993-05-27 2008-09-09 Matsushita Electric Industrial Co., Ltd. Variable address length compiler and processor improved in address management

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05324315A (en) * 1992-05-26 1993-12-07 Matsushita Electric Ind Co Ltd Program controller
USRE40498E1 (en) 1993-05-27 2008-09-09 Matsushita Electric Industrial Co., Ltd. Variable address length compiler and processor improved in address management

Similar Documents

Publication Publication Date Title
US4361868A (en) Device for increasing the length of a logic computer address
JPH0248931B2 (en)
US5666510A (en) Data processing device having an expandable address space
JPH04233640A (en) Microcontroller having pseudo-linear bank which switches memory expanding scheme
JPH0414385B2 (en)
JPS59106047A (en) Microcomputer
JPS6120889B2 (en)
US4747066A (en) Arithmetic unit
JPS59206970A (en) Microprocessor
JPH02126321A (en) Decoder for instruction code
JPS62107339A (en) Instruction constituting method for microcomputer
JPH0895850A (en) Microprocessor
JPH05173778A (en) Data processor
JPS603049A (en) Bus interface apparatus
JPH02178836A (en) Central arithmetic processing unit
JPS61283932A (en) Control system for microprogram
JPS63113635A (en) Data processor
JPS58114246A (en) Address qualifying system
JPH0266627A (en) Parallel instruction executing processor
JPS63317857A (en) Memory access circuit
JPH0399321A (en) Instruction control system
JPS61283933A (en) Control system for microprogram
JPH04186431A (en) Data processor
JPS63310049A (en) Memory circuit for starting microprocessor
JPS61147333A (en) Register select circuit