JP2778957B2 - Character display - Google Patents

Character display

Info

Publication number
JP2778957B2
JP2778957B2 JP62320306A JP32030687A JP2778957B2 JP 2778957 B2 JP2778957 B2 JP 2778957B2 JP 62320306 A JP62320306 A JP 62320306A JP 32030687 A JP32030687 A JP 32030687A JP 2778957 B2 JP2778957 B2 JP 2778957B2
Authority
JP
Japan
Prior art keywords
byte
code
character
shift jis
shift
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.)
Expired - Lifetime
Application number
JP62320306A
Other languages
Japanese (ja)
Other versions
JPH01161970A (en
Inventor
孝寿 石井
大樹 小川
尚三 大前
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.)
ASUKII KK
Original Assignee
ASUKII KK
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 ASUKII KK filed Critical ASUKII KK
Priority to JP62320306A priority Critical patent/JP2778957B2/en
Publication of JPH01161970A publication Critical patent/JPH01161970A/en
Application granted granted Critical
Publication of JP2778957B2 publication Critical patent/JP2778957B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)

Description

【発明の詳細な説明】 「産業上の利用分野」 この発明は、記憶効率の良い漢字表示用のキャラクタ
ジェネレータおよび当該キャラクタジェネレータを用い
たキャラクタ表示装置に関する。 「従来の技術」 近年、パーソナルコンピュータの普及が著しく、特
に、欧米で用いられるパーソナルコンピュータの仕様が
世界的な標準となっている。したがって、これらの仕様
に合致する優良なソフトウエアが数多く開発されてお
り、また、同一規格大量生産のためにパーソナルコンピ
ュータ自体の価格も安価になってきている。 「発明が解決しようとする問題点」 ところで、欧米標準タイプのパーソナルコンピュータ
は、表示文字(キャラクタ)として、英数文字が表示で
きれば十分である。一方、このタイプのパーソナルコン
ピュータにおいて日本語用ソフトウエアを実行する際に
は、どうしても漢字表示機能が必要になる。この場合、
グラフィックモードにすれば、漢字等のいかなるキャラ
クタの表示も可能であるが、このようにしてテキスト機
能(文字表示機能)を実現すると、実行速度が遅くなる
という問題が生じる。また、移植にも極めて手数がかか
るという欠点があった。 そこで、本出願人は、欧米標準仕様のパーソナルコン
ピュータを用いる場合にあっても、漢字等のキャラクタ
をテキストモードにて表示することができ、これによ
り、実行速度の高速化およびソフトウエアの互換性およ
び移植の容易性を図ることができるキャラクタ表示装置
を先に開発した(特願昭62−219576号)。 このキャラクタ表示装置は、漢字についてはいわゆる
シフトJISコードを用いて2バイトで表現し、英数文字
等については1バイトで表現するようにしている。シフ
トJISは、JIS C 6226における漢字の区を当該規格にお
いて使われていない区に移し、通常の英数字の割り当て
位置と重複しないようにしたものであり、第6a図にその
コードマップを示す。この図において、S.JIS−Iおよ
びS.JIS−IIの符号を付したエリアが漢字区画である。
また、英数(ANK)文字、半角の外字およびカナ(KAN
A)等の半角表示される文字は、1バイトのコード、す
なわち(00)〜(7F)および(A0)〜(DF)
よって指定される。 上述のキャラクタ表示装置においては、文字コードの
第1バイトの内容によって漢字コードか英数コードかを
識別し、該当する文字のフォントデータを読出すように
している。これにより、1バイト英数文字コードと2バ
イト漢字文字コードとがメモリ上で混在することが可能
となり、欧米標準仕様の装置との互換性および移植性を
有している。また、各文字コードが必要とするメモリ容
量と表示面積とが対応する効果も奏している。 ところで、シフトJISコードの漢字エリアは、第6a図
に示すように連続していないため、同図に示すコードマ
ップのままキャラクタジェネレータを作成すると、空き
エリアが多く記憶効率の悪いものとなってしまう。 この発明は、上述した事情に鑑みてなされたもので、
シフトJISコードによるアクセスが可能であるととも
に、空きエリアが無く記憶効率が良いキャラクタジェネ
レータを用いて漢字表示を良好に行うことができるキャ
ラクタ表示装置を提供することを目的としている。 「問題点を解決するための手段」 上記問題点を解決するために、第1の発明にあって
は、シフトJISコードが入力されることにより当該シフ
トJISコードに対応した文字のフォントデータを出力す
るキャラクタジェネレータであって、第1バイトおよび
第2バイトからなる2バイトのアドレスが割り当てられ
た一連の記憶エリアからなり、前記各フォントデータの
うち第1バイトとして(E0)〜(E9)を含む各シフ
トJISコードに対応した漢字のフォントデータを、第2
バイトの上位2ビットが「00」であるアドレスの割り当
てられた各記憶エリアに記憶し、第1バイトとして(E
A)を含む各シフトJISコードに対応した漢字のフォン
トデータを、第1バイトが(80)であるアドレスの割
り当てられた各記憶エリアに記憶し、他の各文字のフォ
ントデータを、当該フォントデータに対応したシフトJI
Sコードをアドレスとする記憶エリアに記憶してなるキ
ャラクタジェネレータと、 前記シフトJISコードに基づいて前記キャラクタジェ
ネレータへ読み出しアドレスを出力する手段であって、 a.第1バイトが(E0)〜(E7)である各シフトJIS
コードについては、最上位ビットから順に、当該シフト
JISコードの第2バイトの上位2ビット、当該シフトJIS
コードの第1バイトの下位3ビット、(00)、当該シ
フトJISコードの第2バイトの下位6ビットの各ビット
からなる読み出しアドレスを出力し、 b.第1バイトが(E8)または(E9)である各シフト
JISコードについては、最上位ビットから順に、(00)
、当該シフトJISコードの第1バイトの最下位ビッ
ト、当該シフトJISコードの第2バイトの上位2ビッ
ト、(00)、当該シフトJISコードの第2バイトの下
位6ビットの各ビットからなる読み出しアドレスを出力
し、 c.第1バイトが(EA)である各シフトJISコードにつ
いては、最上位ビットから順に、(00000)、当該シ
フトJISコードの第2バイトの上位2ビット、当該シフ
トJISコードの第2バイトの下位6ビットの各ビットか
らなる読み出しアドレスを出力し、 d.上記a,b,c以外のシフトJISコードについては、当該シ
フトJISコードを読み出しアドレスとして出力するアド
レス変換手段と 前記キャラクタジェネレータから出力されるフォント
データに基づいて表示用のシリアルドットデータを作成
するドットデータ作成部とを具備することを特徴として
いる。 また、第2の発明にあっては、シフトJISコードが入
力されることにより当該シフトJISコードに対応した文
字のフォントデータを出力するキャラクタジェネレータ
であって、第1バイトおよび第2バイトからなる2バイ
トのアドレスが割り当てられた一連の記憶エリアからな
り、前記各フォントデータのうち第1バイトとして(E
0)〜(E9)を含む各シフトJISコードに対応した漢
字のフォントデータを、第2バイトの上位2ビットが
「00」であるアドレスの割り当てられた各記憶エリアに
記憶し、第1バイトとして(EA)を含む各シフトJIS
コードに対応した漢字のフォントデータを、第1バイト
が(80)であるアドレスの割り当てられた各記憶エリ
アに記憶し、他の各文字のフォントデータを、当該フォ
ントデータに対応したシフトJISコードをアドレスとす
る記憶エリアに記憶してなる第1のキャラクタジェネレ
ータと、 1バイトの文字コードで指示される文字のフォントデ
ータを記憶した第2のキャラクタジェネレータと、 メモリから出力される文字コードが1バイトの文字コ
ードである場合は前記第2のキャラクタジェネレータを
選択する選択手段と、 前記シフトJISコードに基づいて前記第1のキャラク
タジェネレータの記憶手段へ読み出しアドレスを出力す
る手段であって、 a.第1バイトが(E0)〜(E7)である各シフトJIS
コードについては、最上位ビットから順に、当該シフト
JISコードの第2バイトの上位2ビット、当該シフトJIS
コードの第1バイトの下位3ビット、(00)、当該シ
フトJISコードの第2バイトの下位6ビットの各ビット
からなる読み出しアドレスを出力し、 b.第1バイトが(E8)または(E9)である各シフト
JISコードについては、最上位ビットから順に、(00)
、当該シフトJISコードの第1バイトの最下位ビッ
ト、当該シフトJISコードの第2バイトの上位2ビッ
ト、(00)、当該シフトJISコードの第2バイトの下
位6ビットの各ビットからなる読み出しアドレスを出力
し、 c.第1バイトが(EA)である各シフトJISコードにつ
いては、最上位ビットから順に、(00000)、当該シ
フトJISコードの第2バイトの上位2ビット、当該シフ
トJISコードの第2バイトの下位6ビットの各ビットか
らなる読み出しアドレスを出力し、 d.上記a,b,c以外のシフトJISコードについては、当該シ
フトJISコードを読み出しアドレスとして出力するアド
レス変換手段と 前記第1および第2のキャラクタジェネレータから出
力されるフォントデータに基づいて表示用のシリアルド
ットデータを作成するドットデータ作成部とを具備する
ことを特徴としている。 「作用」 シフトJISによる文字コードのフォントデータが連続
したアドレスの順番に組み換えて記憶されているので、
記憶効率が良く、少ない容量内に必要な文字フォントデ
ータが記憶される。 また、シフトJISコードが前記キャラクタジェネレー
タのアドレスデータに変換されるので、プログラム上は
シフトJISコードを用いたままでも、該当する文字のフ
ォントデータを前記キャラクタジェネレータから読出す
ことができる。 第2の発明においては、1バイトの文字コードで指示
される文字とシフトJISコードによる文字のフォントデ
ータがそれぞれ重複しないアドレスに設定されたことに
より、1バイトの文字コードと2バイトの文字コードが
混在した場合においても、各文字ォントデータのアクセ
スが重複しない。そして、メモリから出力される文字コ
ードが1バイトコードか2バイトコードかによって、対
応するキャラクタジェネレータが選択されるとともに、
当該文字コードに対応するアドレスが作成されるから、
メモリ内に通常の英数文字コードとシフトJISコードと
が混在する場合であっても不都合なく該当する文字フォ
ントデータを読出すことができる。 「実施例」 以下、図面を参照してこの発明の実施例について説明
する。 第7図は、この発明の一実施例の全体構成を示すブロ
ック図である。 第7図において1は、例えば、欧米標準タイプのパー
ソナルコンピュータ内に設けられているCPU(中央処理
装置)であり、所定のプログラムに基づいて動作する。
このCPU1は、CRTコントローラ2との間において種々の
データの授受を行い、CRTコントローラ2を制御する。C
RTコントローラ2は、CRT表示装置4の表示を制御する
ものであり、VRAM(ビデオRAM)3内のデータを表示面
のスキャンに従って読出し、この読出したデータに基づ
いて表示制御を行う。 この場合、VRAM3は、第9図に示すように、第1プレ
ーン3aと第2プレーン3bとから構成されており、テキス
トモードにおいては、第1プレーン3aに文字コードが記
憶され、第2プレーン3bに表示文字の属性を示すアトリ
ビュートデータが記憶される。 ここで、アトリビュートデータは、第8図に示す8ビ
ットのデータであり、各ビットが例えば図示の機能を有
している。図示の例の場合は、第0〜第2ビットが文字
の色指定の機能を有し、第0、第1、第2ビットがそれ
ぞれブルー、グリーン、レッドの色のオン/オフを指示
する。また、第4ビット、第5ビットがそれぞれアンダ
ーラインおよび左垂直線の表示を指示し、第6ビットが
反転文字(文字色と背景色とが反転した文字)の指定、
第7ビットが点滅文字の指定を行う。このアトリビュー
トデータの各ビットの機能は、種々のモードによって適
宜異なる定義付けがされるようになっている。 また、文字コードは、シフトJISによる文字コードで
ある。 次に、VRAM3内のデータと表示文字との関係を第10図
に示す。この図に示すように、文字コードが2バイトで
ある漢字は全角表示され、文字コードが1バイトである
英数文字は半角表示される。したがって、表示面におい
て文字が占める面積と、VRAM3内において当該文字の文
字コードが占めるエリアの大きさとが対応する。なお、
第10図に示すVRAM3のエリアマップにおいては、文字コ
ードとアトリビュートデータとが交互に配置されている
が、実際にはこれらは第1プレーン3aと第2プレーン3b
とにそれぞれ対になって記憶され、アドレスは同一に設
定されている。 また、第9図に示すように、第1プレーン3aと第2プ
レーン3bの各アドレスバスおよびデータバスはすべて8
ビットの共通バス15に接続されている。この共通バス15
は時分割使用され、文字コード、アトリビュートデー
タ、アドレスデータがそれぞれCRTコントローラ2によ
って割り当てられたタイミングにおいて共通バス15に出
力される。この場合、アドレスデータはロウアドレスデ
ータとカラムアドレスデータとから構成され、これらも
時分割に出力される。 VRAM3内の各データは、上述の通りであり、CRTコント
ローラ2は、VRAM3から文字コードを読出すと、この文
字コードに対応するフォントデータを第7図に示すキャ
ラクタジェネレータ5から読出す。そして、読出したフ
ォントデータをシリアルデータに変換し、CRT表示装置
4に供給する。また、この際に当該文字コードに付随す
るアトリビュートデータに基づき、表示色制御や点滅制
御等を行う。なお、以上の構成要素1〜5は、一般的な
欧米標準タイプのパーソナルコンピュータに設けられて
いる構成要素と同様である。 次に、10は漢字表示装置であり、制御部10aとキャラ
クタジェネレータ10bとから構成されている。以下に漢
字表示装置10の構成について第9図を参照して説明す
る。 第9図に示すコードフェッチ部20は、入力端(8ビッ
ト)が共通バス15に接続されており、CRTコントローラ
2が文字コードおよびアトリビュートデータをフェッチ
するタイミングにおいてこれらのデータをフェッチす
る。この場合、コードフェッチ部20は、CRTコントロー
ラ2が出力する第1プレーン3aおよび第2プレーン3bの
出力イネーブル信号(図示略)により、アトリビュート
データと文字コードとを識別する。また、アトリビュー
トデータおよび文字コードの双方のデータとも2バイト
分が所定のフリップフロップ(Dタイプフリップフロッ
プ)に記憶されるようになっている。21は2バイト分の
記憶容量を有するアトリビュートデータラッチ部であ
り、コードフェッチ部20内のアトリビュートデータが、
先にフェッチされたデータから順に供給されようになっ
ている。22は、それぞれ1バイトの記憶容量を有する第
1記憶部22aおよび第2記憶部22bから構成されている文
字コードラッチ部である。この第2記憶部22bには、コ
ードフェッチ部20内の文字コードが先にフェッチされた
ものから順に供給され、第2記憶部22bに供給された文
字コードは順次第1記憶部22aに供給されるようになっ
ている。23は、第1記憶部22aの上位3ビットのデータ
に基づき、当該記憶部内の文字コードが全角文字のコー
ドか半角文字のコードかを検出する全/半検出部であ
る。全角文字は、前述したように2バイトの文字コード
で指定され、その第1バイトの上位4ビットが第6a図か
ら判るように8H,9H,EHとなるから、第1記憶部22aの上
位3ビットにより、全角の文字コードを識別することが
できる。この全/半検出部23は、論理ゲートの組合せに
よって構成され、文字コードが8H,9H,EHいずれかに該当
する場合には全角検出信号ZENを出力する。 次に、24は、文字コードに基づいてキャラクタジェネ
レータ10bのアドレスを生成するCGアドレス生成部であ
る。 CGアドレス生成部24は、文字コードに基づいて、キャ
ラクタジェネレータ10bのアドレス信号を生成する。こ
の場合、キャラクタジェネレータ10bは、漢字文字が記
憶された漢字ROM10b1および英数カナ文字が記憶されたA
NK・ROM10b2より構成されており、上記CGアドレス生成
部24は、アドレス作成と同時に文字コードに応じたチッ
プセレクト信号も作成する。また、CGアドレス生成部24
は、全/半検出部23から全角検出信号ZENが供給されて
いるときは、第1記憶部22aおよび第2記憶部22b内の2
バイトの文字コードに基づいてアドレスを生成し、全角
検出信号ZENが供給されていないときは第1記憶部22a内
の文字コードに基づいてアドレスを生成する。また、キ
ャラクタジェネレータ10bに記憶されているキャラクタ
のボデーフェースは、半角文字については、8×19ドッ
ト、全角文字については16×19ドットに設定されてい
る。 ここで、第1図に、CGアドレス生成部24の漢字表示に
係る部分および漢字ROM10b1の構成を示す。第1図にお
いて、50は第1記憶部22aおよび第2記憶部22b内の文字
コードをデコードして信号B,C,D(各々“1"信号)を作
成するデコーダである。デコーダ51のデコード内容は次
表の通りであり、16進表示にすると第2図に示すように
なる。 51は第1記憶部22a、第2記憶部22b内の各文字コード
とデコーダ50から供給される信号B,C,Dに基づいて漢字R
OM10b1の上位7ビットのアドレスA17〜A11を作成する。
この場合、セレクタ51は、第2図に示すように、第1記
憶部22aに記憶される文字コードの下位5ビット(b11
b15)と、第2記憶部22bに記憶される文字コードの上位
2ビット(b28,b27)について切換処理を行うようにな
っている。第3図は、セレクタ51の回路図であり、図示
のように4個のセレクタ51a〜51dおよびオアゲートOR1,
OR2によって構成されている。セレクタ51a〜51dは、各
々入力が4ビットで出力が1ビットのセレクタが2個一
組になって構成されている。また、各セレクタ51a〜51d
は2ビットの制御入力端を有し、この制御入力端にオア
ゲートOR1,OR2の出力信号が供給されるようになってい
る。オアゲートOR1は信号D,Cの論理和をとり、オアゲー
トOR2は信号C,Bの論理和をとる。各セレクタ51a〜51d
は、制御入力端に供給される信号の値に対応したビット
の入力端を選択するようになっている。また、セレクタ
51a〜51dの各入力端には、文字コードにおける図示のビ
ット(番号については第2図参照)が供給されるように
なっており、セレクタ51aの出力端Ya,Ybからアドレス信
号A11,A12が、セレクタ51bの出力端Ya,Ybからアドレス
信号A13,A14が、セレクタ51cの出力端Ya,Ybからアドレ
ス信号A15,16が、セレクタ51dの出力端Yaからアドレス
信号A17が出力されるようになっている。ここで、セレ
クタ51のセレクト動作を次表に示す。 この実施例における漢字ROM10b1は、18ビットのアド
レスバスを有し、そのうち下位5ビットがスキャン用お
よびフォントの左右選択用のアドレスバスとなってい
る。ここで、第4図に文字フォントとスキャンアドレス
との関係を示す。このように、下位4ビットであるA3〜
A0がスキャンアドレス、下位5ビット目であるA4がフォ
ントの左右選択用となっているため、漢字ROM10b1にお
いては、上位13ビットのアドレス信号A5〜A17によって
文字が選択される。そして、セレクタ51の動作により、
文字コードの第1バイトの内容によって、アドレス信号
A17〜A5と文字コードの各ビットの割り当てが第5図に
示すように切換られる。すなわち、文字コードの第1バ
イトの内容が(81)〜(9F)のとき、(E0)
(E7)のとき、(E8)H,(E9)のとき、および(E
A)のときにおいては、各々第5図(イ)、(ロ)、
(ハ)、(ニ)に示すように切換えられる。 一方、漢字ROM10b1には、シフトJISコードの第2バイ
トの上位2ビットが同時に「0」にならないこと、およ
び第1バイトが(80)となるエリアが空いていること
を利用して、各文字のフォントデータがアドレスが連続
する順番に組み換えて記憶されている。この様子を第6b
図に示す。図において、文字コードの第1バイトが(E
0)〜(E7)であるエリアAr1内のシフトJISのフォ
ントデータが、第1バイトが(88)〜(9F)で第2
バイトの上位2ビットが共に「0」のエリアAr1′に組
み換えられている。この組み換えをより詳しく示すと、
以下の表のようになる。 そして、上記組み換えと前述した第2表のB欄のセレ
クト動作により、外部からはみかけ上エリアAr1のシフ
トJISコードをアクセスしていても、実際には漢字ROM10
b1のエリアAr1′をアクセスすることとなり、しかも、
シフトJISコードに該当する文字フォントが読出され
る。 また、文字コードの第1バイトが(E8)H,(E9)
あるエリアAr2内のフォントデータは第1バイトが(8
1)〜(87)で第2バイトの上位2ビットが共に
「0」であるエリアAr2′に組み換えられている。この
組み換えの詳細を次表に示す。 そして、上記組み換えと、第2表のC欄の切換処理に
より、シフトJISコードによって見かけ上エリアAr2をア
クセスしていても実際にはエリアAr2′がアクセスさ
れ、しかも、シフトJISコードに該当する文字フォント
がアクセスされる。 また、シフトJISコードの第1バイトが(EA)であ
るエリアAr3のフォントデータは文字コードの第1バイ
トが(80)であって第2バイトの上位2ビットが共に
「0」でないエリアAr3′に組み換えられている。 上述のように、漢字ROM10b1には、第6a図に示す不連
続のエリアに割り当てられているシフトJISコードの各
文字フォントが、連続した順番で記憶されるようになっ
ており、セレクタ51の切換処理により、シフトJISコー
ドが指定文字に対応する番地に変換される。なお、漢字
ROM10b1自体における文字フォントデータ記憶エリア
は、アドレス信号A17〜A5を16進表示した場合に(000
0)〜(1FFF)となる。以上がCGアドレス生成部24
の漢字表示に関する部分および漢字ROM10b1の構成であ
る。また、英数文字のフォントが記憶されているANK・R
OM10b2は、文字コードの第1バイトの内容によってチッ
プセレクトされ(上位4ビットが8H,9H,EH,FH以外のと
き)、かつ、文字コードの第1バイトによって該当する
文字が直接アクセスされるようになっている。 次に、第9図に示す26は、キャラクタジェネレータ10
bから供給される8ビットのフォントデータをドットク
ロックDCKに基づいてシリアルデータに変換し、これを
ドットデータとして出力するパラレルシリアル変換器で
ある。このパラレルシリアル変換器26は、入力端Hに供
給されているデータから順に出力するようになってい
る。この場合、キャラクタジェネレータ10bは、半角文
字のフォントデータが読出されているときは、1キャラ
クタの横方向の8ドット分のフォントデータを出力し、
また、全角文字のフォントデータが読出されているとき
は、キャラクタ横方向の16ドット分のフォントデータを
8ドット分づつ2回にわたって出力する。 27は、パラレルシリアル変換器26の出力信号とカーソ
ルイネーブル信号発生部43の出力信号との排他的論理和
をとるイクスクルーシブオアゲートであり、カーソルイ
ネールブ信号発生部43がカーソルイネーブル信号CEN
(“1"信号)を発生しないときはパラレルシリアル変換
器26が出力するドットデータに対しスルーの状態になっ
ている。28は、カラーコード生成部であり、イクスクル
ーシブオアゲート27を介して供給される各ドットデータ
について、所定のカラーコードをカラーパレット31から
読出してCRT表示装置4へ出力する。所定のカラーコー
ドとは、アトリビュート処理部30によって指定されるカ
ラーコードである。すなわち、アトリビュート処理部30
は、アトリビュートデータラッチ部21から供給されるア
トリビュートデータ(第8図参照)の各ビットの機能に
応じたカラーコードを選択するようカラーコード生成部
に対して制御信号を供給する。例えば、アトリビュート
データがフォアグランドカラーとして「赤」を示してい
る場合には、当該キャラクタの文字部分に対応するドッ
トに対しては、赤のカラーコードを読出すように指示す
る。 次に、40はアドレスフェッチ部であり、共通バス15上
に送出されたアドレスデータをフェッチする。共通バス
15上には、ロウアドレスとカラムアドレスとが時分割に
出力されるが、アドレスフェッチ部40は、CRTコントロ
ーラ2が出力するストローブ信号(図示略)によってこ
れらを識別し、1組のデータとして記憶する。アドレス
フェッチ部40に記憶されたロウアドレスデータおよびカ
ラムアドレスデータは、比較部41に供給され、ここで、
レジスタ42内のデータと一致しているか否かが判定され
る。比較部41が一致を検出すると、一致検出信号をカー
ソルイネーブル信号発生部43に出力するようになってい
る。この場合、レジスタ42には、CPU1によってカーソル
を表示すべきアドレスが予め書き込まれている。カーソ
ルイネーブル信号発生部43は、一致検出信号が供給され
るとカーソルイネーブル信号CEN(“1"信号)をイクス
クルーシブオアゲート27の他方の入力端に供給する。こ
の場合、全/半検出部23から全角検知信号ZENが供給さ
れているときは、全角文字の表示期間に対応する期間カ
ーソルイネーブル信号CENを出力し、また、全角検出信
号ZENが供給されていない場合は半角文字の表示時間に
対応する期間カーソルイネールブ信号CENを出力する。
イクスクルーシブオアゲート27は、カーソルイネーブル
信号CENが供給されている間はパラレルシリアル変換器2
6に対してはインバータとして機能する。このため、カ
ーソルは、文字色と背景色とが反転したキャラクタとし
て表示される。 次に、上記構成によるこの実施例の動作について説明
する。 まず、CPU1において使用されるプログラムが欧米使用
のもので漢字表示を行わない場合は、漢字表示装置10は
動作せず、CRT表示装置4における表示は、CRTコントロ
ーラ2によって制御される。一方、CPU1において使用さ
れるプログラムが、日本語用のもので漢字表示を必要と
する場合は、CRTコントローラ2は、CPU1の制御下にVRA
M3のアクセスを行うが、CRT表示装置4については制御
を行わない。そして、CRTコントローラ2に代えて漢字
表示装置10がCRTコントローラ2のアクセス情報すなわ
ち、文字コード、アトリビュートデータおよびアドレス
データを各々フェッチし、これらのデータに基づいてCR
T表示装置4を制御する。以下にこの場合の動作につい
て説明する。 まず、CRTコントローラ2は、表示面のスキャンに従
ってVRAM3をアクセスしていく。そして、コードフェッ
チ部20は、CRTコントローラ2がアクセスした文字コー
ドおよびアトリビュートデータを取り込む。このコード
フェッチ部20に取り込まれた文字コードは、文字コード
ラッチ部22に供給され、さらに、全/半検出部23によっ
て全角文字か半角文字かが判断される。そして、全角文
字であった場合には、全角検出信号ZENが出力され、CG
アドレス生成部24は、第1記憶部22aおよび第2記憶部2
2b内の計2バイトの文字コードに基づいてキャラクタジ
ェネレータ10bのアドレスを生成する。すなわち、CGア
ドレス生成部24内のデコーダ50およびセレクタ51の動作
により第5図に示す変換が行われ、これにより、シフト
JISコードが漢字ROM10b1の該当する文字のアドレスに変
換される。 また、文字コードが半角文字の文字コードであった場
合には、全角検出信号ZENが出力されないため、CGアド
レス生成部24は、第1記憶部22a内の文字コードによっ
てANK・ROM10b2のアドレスを生成する。 そして、キャラクタジェネレータ10bは、全角文字の
フォントがアクセスされた場合は、キャラクタの横方向
16ドット分のデータをアドレス信号A4(第4図参照)に
従って左右8ドット分づつ2回出力し、半角文字のフォ
ントがアクセスされた場合は、キャラクタの横方向8ド
ット分のデータを出力する。そして、パラレルシリアル
変換器26はキャラクタジェネレータ10bから出力された
データを順次シリアルデータに変換し、イクスクルーシ
ブオアゲート27を介してカラーコード生成部28に供給す
る。カラーコード生成部28は、アトリビュート処理部30
の制御信号に基づき、供給されたドットデータの個々に
ついてカラーコードを生成し、CRT表示装置4に出力す
る。これにより、CRT表示装置4の表示面には、文字コ
ードによって指定された文字が、アトリビュートデータ
によって指示された色およびその他の属性(点滅,反転
等)にしたがって表示される。 一方、アドレスフェッチ部40は、CRTコントローラ2
が出力するアドレスデータをフェッチする。このフェッ
チされたデータは、比較器41においてレジスタ42内のデ
ータと比較され、一致が検出されると、カーソルイネー
ブル信号発生部43がカーソルイネーブル信号CENを発生
する。この結果、カーソルを表示すべき位置のキャラク
タのドットデータに対してはイクスクルーシブオアゲー
ト27がインバータとして機能し、これにより、カーソル
が反転表示のキャラクタとして表示される。 なお、上記実施例においては、欧米標準規格のパーソ
ナルコンピュータに漢字表示装置10を付加するのみで、
漢字表示を行うことができる利点がある。しかも、VRAM
3をそのまま使用するとともに、CRTコントローラ2のア
クセスをそのまま利用するという構成であるため、ハー
ド面の変更を一切要しない。 また、実施例においては、CRTコントローラ2に制御
部10aが付加される構成となっているが、これらを当初
より一体に構成し、各機能を合わせ持つ回路としてもよ
い。 さらに、上述した実施例は日本語における漢字/カナ
表示についての実施例であったが、この発明は日本語以
外の言語にも適用することができる。すなわち、2以上
の文字コードを使用してキャラクタの指示を行う必要が
ある言語、例えば中国語、あるいは韓国語等の表示にも
適用することができる。 「発明の効果」 以上説明したように、第1の発明によれば、シフトJI
Sコードの特定ビットの値に存在しない部分があること
を利用し、この空きエリアにシフトJISコードの不連続
部分のフォントデータを移すことによって、シフトJIS
コードの漢字コードエリアにある各文字のフォントデー
タをアドレスが連続する順番に組み換えて、記憶したの
で、記憶効率が良く、少ない容量内に必要なフォントデ
ータを記憶することができる。 また、プログラム上でシフトJISコードを用いたまま
でも、該当する文字のフォントデータを読出すことがで
き、汎用プログラムをそのまま用いることができる。 さらに、第2の発明によれば、通常の英数文字コード
とシフトJISコードとがプログラム上で混在する場合に
おいても、これらを識別して該当文字のフォントデータ
を読出すことができる。したがって、記憶効率の向上と
ともに、欧米標準使用のパーソナルコンピュータのソフ
トウエアとの互換性および移植の容易性を図ることがで
きる。
DETAILED DESCRIPTION OF THE INVENTION "Industrial application field"
Using the generator and the character generator
Character display device. [Prior art] In recent years, personal computers have become very popular,
The specifications of personal computers used in Europe and the United States
It has become a global standard. Therefore, these specifications
Many excellent software that matches
And personal computers for mass production of the same standard.
The price of the computer itself is becoming cheaper. "Problems to be solved by the invention" By the way, European and American standard type personal computers
Indicates that alphanumeric characters are displayed as display characters (characters).
It is enough if you can. On the other hand, this type of personal computer
When running Japanese software on a computer
Needs a kanji display function. in this case,
In graphic mode, you can use any characters such as kanji
It is possible to display the text
Function (character display function) reduces the execution speed
The problem arises. Also, it is extremely difficult to transplant
Had the disadvantage of Therefore, the applicant of the present invention has adopted a personal computer of European and American standard specifications.
Even when using a computer, characters such as kanji
Can be displayed in text mode,
Execution speed, software compatibility and
Character display device that can facilitate portability and transplantation
Was developed earlier (Japanese Patent Application No. 62-219576). This character display device uses a so-called
Expressed in 2 bytes using Shift JIS code, alphanumeric characters
Are expressed in one byte. Schiff
G JIS defines the kanji wards in JIS C 6226
Move to unused ward and assign normal alphanumeric characters
The position is not duplicated.
Shows the code map. In this figure, S.JIS-I and
Areas marked with the symbols S and JIS-II are kanji sections.
Also, alphanumeric (ANK) characters, half-width Gaiji and Kana (KAN
Characters displayed in half-width characters such as A) are 1-byte codes,
Meaning (00) H ~ (7F) H And (A0) H ~ (DF) H To
Is specified. In the character display device described above, the character code
Whether it is a kanji code or an alphanumeric code depending on the contents of the first byte
Identify and read the font data of the corresponding character
doing. As a result, 1 byte alphanumeric character code and 2 bytes
Ito Kanji character code can be mixed in the memory
To ensure compatibility and portability with European and American standard equipment.
Have. Also, the memory capacity required for each character code
There is also an effect that the amount and the display area correspond. By the way, the kanji area of the shift JIS code is shown in Fig. 6a.
Since they are not continuous as shown in the figure, the code
If you create a character generator with
There are many areas and storage efficiency is poor. The present invention has been made in view of the above circumstances,
It is possible to access with Shift JIS code
Character generator with good storage efficiency
Character can be displayed satisfactorily using the
It is an object to provide a tractor display device. "Means for Solving the Problems" To solve the above problems, the first invention
Is entered by entering the Shift JIS code.
Output font data of characters corresponding to JIS code
Character generator, the first byte and
A 2-byte address consisting of the second byte is assigned
And a series of storage areas.
As the first byte (E0) H ~ (E9) H Each shift including
The kanji font data corresponding to the JIS code
Assignment of address where upper 2 bits of byte are “00”
Stored in each storage area allocated as the first byte (E
A) H Kanji phone corresponding to each Shift JIS code including
The first byte is (80) H Of the address that is
Stored in each assigned storage area, and
Shift data corresponding to the font data.
Keys stored in the storage area with the S code as the address
A character generator and the character generator based on the shift JIS code.
Means for outputting a read address to the convergence generator, wherein: a. The first byte is (E0) H ~ (E7) H Is each shift JIS
For codes, the shift
Upper 2 bits of the second byte of the JIS code, shift JIS
Lower 3 bits of first byte of code, (00) B ,
Lower 6 bits of the second byte of the shift JIS code
B. The first byte is (E8) H Or (E9) H Each shift is
For JIS code, (00)
B , The least significant bit of the first byte of the Shift JIS code
Upper 2 bits of the second byte of the Shift JIS code
G, (00) B , Below the second byte of the Shift JIS code
Output read address consisting of 6 bits
C. The first byte is (EA) H For each Shift JIS code
In this case, (00000) B ,
Upper 2 bits of the second byte of the shift JIS code,
Each lower 6 bits of the second byte of the JIS code
D. For the shift JIS code other than the above a, b, c,
Address that outputs the shift JIS code as the read address
Conversion means and font output from the character generator
Create serial dot data for display based on data
And a dot data creation unit
I have. In the second invention, the shift JIS code is entered.
Sentence corresponding to the Shift JIS code
Character generator that outputs character font data
And the two bytes consisting of the first byte and the second byte
From a series of storage areas to which
In the font data, the first byte (E
0) H ~ (E9) H Han corresponding to each shift JIS code including
The upper two bits of the second byte
For each storage area assigned the address "00"
Remember, as first byte (EA) H Each shift JIS including
The first byte of the kanji font data corresponding to the code
But (80) H Each memory area assigned an address that is
The font data of each other character
The shift JIS code corresponding to the
The first character generator stored in the storage area
Data and the font data of the character indicated by the 1-byte character code.
Character generator that stores data, and a character code whose character code output from the memory is 1 byte.
If it is a mode, the second character generator
Selecting means for selecting, and the first character based on the shift JIS code.
The read address to the storage means of the generator
The first byte is (E0) H ~ (E7) H Is each shift JIS
For codes, the shift
Upper 2 bits of the second byte of the JIS code, shift JIS
Lower 3 bits of first byte of code, (00) B ,
Lower 6 bits of the second byte of the shift JIS code
B. The first byte is (E8) H Or (E9) H Each shift is
For JIS code, (00)
B , The least significant bit of the first byte of the Shift JIS code
Upper 2 bits of the second byte of the Shift JIS code
G, (00) B , Below the second byte of the Shift JIS code
Output read address consisting of 6 bits
C. The first byte is (EA) H For each Shift JIS code
In this case, (00000) B ,
Upper 2 bits of the second byte of the shift JIS code,
Each lower 6 bits of the second byte of the JIS code
D. For the shift JIS code other than the above a, b, c,
Address that outputs the shift JIS code as the read address
Output from the first and second character generators.
Serialization for display based on the font data
And a dot data creation unit for creating dot data.
It is characterized by: [Action] Font data of character code by Shift JIS is continuous
Since the addresses are rearranged and stored in the order of the addresses,
It has good storage efficiency, and requires
Data is stored. In addition, the shift JIS code is
Is converted to the address data of the
Even if the shift JIS code is used,
Point data from the character generator
be able to. In the second invention, it is indicated by a one-byte character code.
Characters and fonts of characters by Shift JIS code
Data are set to unique addresses
The one-byte character code and the two-byte character code
Even when mixed, access to each character contact data
Source does not overlap. Then, the character code output from the memory
Depending on whether the code is 1-byte code or 2-byte code,
The corresponding character generator is selected and
Since the address corresponding to the character code is created,
Normal alphanumeric character code and shift JIS code in memory
Even if characters are mixed, the corresponding character
Event data can be read. Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
I do. FIG. 7 is a block diagram showing the overall configuration of an embodiment of the present invention.
FIG. In FIG. 7, reference numeral 1 denotes, for example, a Western standard type par.
CPU provided in the Sonal Computer (central processing
Device) and operates based on a predetermined program.
This CPU 1 communicates with the CRT controller 2 in various ways.
It exchanges data and controls the CRT controller 2. C
The RT controller 2 controls display on the CRT display device 4.
And display the data in VRAM (video RAM) 3 on the display surface.
Read according to the scan of
To perform display control. In this case, as shown in FIG.
3a and the second plane 3b.
In character mode, a character code is written on the first plane 3a.
The attribute that indicates the display character attribute is stored in the second plane 3b.
Butte data is stored. Here, the attribute data corresponds to the 8-bit data shown in FIG.
Each bit has, for example, the function shown in the figure.
doing. In the example shown, the 0th to 2nd bits are characters
And the 0th, 1st, and 2nd bits are
Instruct blue / green / red color on / off respectively
I do. Also, the fourth bit and the fifth bit are under
And the display of the left vertical line, and the sixth bit is
Designation of reverse characters (characters whose text color and background color are reversed),
The seventh bit specifies a blinking character. This tribute
The function of each bit of the data
Different definitions are provided as appropriate. Also, the character code is a character code by Shift JIS
is there. Next, the relationship between the data in VRAM3 and the display characters is shown in FIG.
Shown in As shown in this figure, the character code is 2 bytes
Certain Chinese characters are displayed in double-byte characters, and the character code is 1 byte
Alphanumeric characters are displayed in single-byte characters. Therefore, the display surface
The area occupied by the character and the text of the character in VRAM3
The size of the area occupied by the character code corresponds to the size. In addition,
In the VRAM3 area map shown in FIG.
Mode and attribute data are arranged alternately
However, these are actually the first plane 3a and the second plane 3b.
Are stored in pairs, and the addresses are set to the same
Is defined. Also, as shown in FIG. 9, the first plane 3a and the second plane 3a
All address buses and data buses in lane 3b are 8
The bit is connected to a common bus 15. This common bus 15
Is time-divisionally used, character codes, attribute data
Data and address data by the CRT controller 2 respectively.
Out to the common bus 15 at the timing
Is forced. In this case, the address data is
Data and column address data.
Output in time division. Each data in VRAM3 is as described above,
When roller 2 reads the character code from VRAM3,
The font data corresponding to the character code is
Read from the lacquer generator 5. And the read file
Point data to serial data, and the CRT display device
4 In this case, the character code
Display color control and blinking control based on attribute data
I will do it. Note that the above components 1 to 5 are general
Installed in European and American standard type personal computers
It is the same as the constituent element. Next, reference numeral 10 denotes a kanji display device, and the control unit 10a and the character
And a generator 10b. Han below
The configuration of the character display device 10 will be described with reference to FIG.
You. The code fetch unit 20 shown in FIG.
Is connected to the common bus 15 and the CRT controller
2 fetches character code and attribute data
To fetch these data at
You. In this case, the code fetch unit 20
Of the first plane 3a and the second plane 3b
Output enable signal (not shown)
Identify data and character codes. Also, tribute
2 bytes for both data and character code
Flip-flop with predetermined minutes (D-type flip-flop)
) Is stored. 21 is for 2 bytes
An attribute data latch unit having a storage capacity;
The attribute data in the code fetch unit 20 is
Data is fetched in order from the previously fetched data.
ing. 22 has a 1-byte storage capacity each
A sentence composed of the first storage unit 22a and the second storage unit 22b
This is a character code latch unit. This second storage unit 22b stores
The character code in the code fetch unit 20 was fetched first
Sentence in order from the first one and sent to the second storage unit 22b
The character codes are sequentially supplied to the first storage unit 22a.
ing. 23 is the upper 3 bits of data in the first storage unit 22a
Based on the character code in the storage unit
Is a full / half detection unit that detects whether
You. Double-byte characters are 2-byte character codes as described above.
The upper 4 bits of the first byte are
As you can see 8 H , 9 H , E H Is stored in the first storage unit 22a.
Full-width character code can be identified by 3 bits
it can. This full / semi-detection unit 23 is a combination of logic gates.
Character code is 8 H , 9 H , E H Either
If so, the full-width detection signal ZEN is output. Next, 24 is a character generator based on the character code.
CG address generation unit that generates the address of the
You. The CG address generation unit 24 generates a character based on the character code.
An address signal for the lacquer generator 10b is generated. This
In the case of, the character generator 10b
Remembered Kanji ROM 10b 1 A that stores alphanumeric characters
NK / ROM10b Two CG address generation
The unit 24 creates a chip address according to the character code
A select signal is also created. The CG address generator 24
Is supplied with the full-width detection signal ZEN from the full / half detection unit 23.
Is in the first storage unit 22a and the second storage unit 22b.
Generate address based on byte character code,
When the detection signal ZEN is not supplied, the first storage unit 22a
Generates an address based on the character code of Also,
Character stored in character generator 10b
Body face is 8 x 19 dots for half-width characters.
16 and 19 dots are set for
You. Here, FIG. 1 shows the kanji display of the CG address generation unit 24.
Such part and Kanji ROM10b 1 Is shown. Fig. 1
50 is a character in the first storage unit 22a and the second storage unit 22b.
Decode the code to create signals B, C, and D (each a "1" signal)
This is the decoder to be performed. The decoding contents of the decoder 51 are as follows
It is as shown in the table.
Become. 51 is each character code in the first storage unit 22a and the second storage unit 22b
And kanji R based on signals B, C and D supplied from decoder 50
OM10b 1 7-bit address A of 17 ~ A 11 Create
In this case, the selector 51, as shown in FIG.
The lower 5 bits (b) of the character code stored in the storage unit 22a 11 ~
b Fifteen ) And the upper character code stored in the second storage unit 22b
2 bits (b 28 , b 27 ).
ing. FIG. 3 is a circuit diagram of the selector 51.
And the four selectors 51a to 51d and the OR gate OR1,
It is composed of OR2. Each of the selectors 51a to 51d
2 selectors with 4 bit input and 1 bit output
It is configured in pairs. Also, each of the selectors 51a to 51d
Has a 2-bit control input, which is
The output signals of the gates OR1 and OR2 are supplied.
You. The OR gate OR1 takes the logical OR of the signals D and C, and
The OR 2 takes the logical sum of the signals C and B. Each selector 51a-51d
Is the bit corresponding to the value of the signal supplied to the control input.
Input terminal is selected. Also, the selector
At the input terminals 51a to 51d, the illustrated
(See Figure 2 for numbers)
Address signal from the output terminals Ya and Yb of the selector 51a.
The signals A11 and A12 are addressed from the output terminals Ya and Yb of the selector 51b.
The signals A13 and A14 are addressed from the output terminals Ya and Yb of the selector 51c.
Signals A15 and A16 are sent from the output terminal Ya of the selector 51d.
The signal A17 is output. Here,
The following table shows the selection operation of the selector 51. Kanji ROM 10b in this embodiment 1 Is an 18 bit ad
Bus, of which the lower 5 bits are used for scanning.
Address bus for left and right selection of fonts and fonts
You. Here, FIG. 4 shows the character font and the scan address.
The relationship is shown below. Thus, the lower 4 bits A3 to
A0 is the scan address, and A4, the lower 5 bits, is the format.
Kanji ROM10b 1 In
The upper 13 bits of the address signals A5 to A17.
The character is selected. Then, by the operation of the selector 51,
Depending on the contents of the first byte of the character code, the address signal
The assignment of each bit of A17 to A5 and character code is shown in Fig. 5.
It is switched as shown. That is, the first character code
The content of the site is (81) H ~ (9F) H When (E0) H ~
(E7) H When (E8) H , (E9) H , And (E
A) H In the case of, respectively, FIG. 5 (a), (b),
Switching is performed as shown in (c) and (d). On the other hand, Kanji ROM10b 1 Contains the second byte of the Shift JIS code.
That the upper two bits of the
And the first byte is (80) H Area is vacant
The address of the font data of each character is continuous using
In the order in which they are stored. 6b
Shown in the figure. In the figure, the first byte of the character code is (E
0) H ~ (E7) H Shift JIS format in area Ar1
The first byte is (88) H ~ (9F) H Second
The upper two bits of the byte are both set to the area Ar1 'of "0".
Has been replaced. To show this recombination in more detail,
It becomes like the following table. Then, the above recombination and the selection in column B of Table 2 described above are performed.
The shift operation of the apparent area Ar1 from outside
Even if you access the JIS code, you can actually use Kanji ROM10
b 1 To access the area Ar1 '
The character font corresponding to the shift JIS code is read.
You. The first byte of the character code is (E8) H , (E9) H so
In the font data in a certain area Ar2, the first byte is (8
1) H To (87) H And the upper 2 bits of the second byte are both
The area has been rearranged to the area Ar2 'of "0". this
Details of the recombination are shown in the following table. Then, the above recombination and the switching process in column C of Table 2 are performed.
From the area Ar2 by the shift JIS code.
Area Ar2 'is actually accessed even if
In addition, the character font corresponding to the Shift JIS code
Is accessed. The first byte of the shift JIS code is (EA) H In
The font data of the area Ar3 is the first byte of the character code.
G (80) H And the upper 2 bits of the second byte are both
It has been rearranged to an area Ar3 'other than "0". As mentioned above, Kanji ROM 10b 1 Has the disconnection shown in Figure 6a.
Each of the Shift JIS codes assigned to the next area
Character fonts are now stored in sequential order
Shift JIS code
Is converted to the address corresponding to the specified character. In addition, Kanji
ROM10b 1 Character font data storage area in itself
Means that the address signals A17 to A5 are displayed in hexadecimal (000
0) H ~ (1FFF) H Becomes The above is the CG address generator 24
Related to Kanji display and Kanji ROM10b 1 In the configuration
You. ANK / R, which stores fonts of alphanumeric characters
OM10b Two Depends on the contents of the first byte of the character code.
Selected (upper 4 bits are 8 H , 9 H , E H , F H Other than
Corresponding to the first byte of the character code
Characters are directly accessed. Next, 26 shown in FIG.
dot font data of 8 bits supplied from b.
Converts to serial data based on lock DCK and converts this to
A parallel-serial converter that outputs as dot data
is there. This parallel-serial converter 26 is connected to the input terminal H.
Data is output in order from the supplied data
You. In this case, the character generator 10b
When character font data is read, one character
Output font data for 8 dots in the horizontal direction of the
When font data of full-width characters is read
Is the font data for 16 dots in the horizontal direction of the character.
Output is performed twice for every 8 dots. 27 is the output signal of the parallel / serial converter 26 and the cursor.
Exclusive OR with the output signal of the enable signal generator 43
Is an exclusive OR gate that takes
The nail signal generation unit 43 outputs the cursor enable signal CEN.
Parallel-to-serial conversion when no (“1” signal) is generated
Through the dot data output from the detector 26
ing. Reference numeral 28 denotes a color code generation unit.
Dot data supplied via the passive OR gate 27
About the predetermined color code from the color palette 31
The data is read out and output to the CRT display device 4. Prescribed color code
Is a card specified by the attribute processing unit 30.
It is a color code. That is, the attribute processing unit 30
Is an attribute supplied from the attribute data latch unit 21.
Function of each bit of tribute data (see Fig. 8)
Color code generator to select the corresponding color code
Supply a control signal to the For example, attributes
Data shows "red" as foreground color
If the
To read the red color code
You. Next, reference numeral 40 denotes an address fetch unit on the common bus 15.
Fetches the address data sent to. Common bus
The row address and the column address are time-division
Output, but the address fetch unit 40
Controller 2 outputs a strobe signal (not shown).
These are identified and stored as a set of data. address
Row address data and data stored in the fetch unit 40 are
The ram address data is supplied to the comparison unit 41, where
It is determined whether the data matches the data in register 42.
You. When the comparison unit 41 detects a match, the match detection signal is
Output to the Sol Enable signal generator 43.
You. In this case, the cursor is registered in the register 42 by the CPU 1.
Is written in advance. Curso
The enable signal generator 43 is supplied with the match detection signal.
The cursor enable signal CEN (“1” signal)
The signal is supplied to the other input terminal of the exclusive OR gate 27. This
In the case of, the full-width detection signal ZEN is supplied from the full / half detection unit 23.
Is displayed, the period
Output enable signal CEN and full-width detection signal
If the number ZEN is not supplied, the display time of half-width characters
Outputs the cursor enable signal CEN for the corresponding period.
Exclusive OR gate 27 is cursor enabled
While the signal CEN is supplied, the parallel-serial converter 2
For 6 functions as an inverter. For this reason,
Cursor is a character whose text color and background color are reversed.
Is displayed. Next, the operation of this embodiment with the above configuration will be described.
I do. First, the programs used in CPU1 use Western
When the kanji display is not performed for
The display on the CRT display device 4 does not operate and the CRT control
Controller 2. On the other hand,
Program needs to display Kanji in Japanese
In this case, the CRT controller 2
Access M3, but control CRT display 4
Do not do. And, instead of CRT controller 2, Kanji
The display device 10 is the access information of the CRT controller 2
Character code, attribute data and address
Fetch each data and CR based on these data
The T display 4 is controlled. The following describes the operation in this case.
Will be explained. First, the CRT controller 2 scans the display surface.
To access VRAM3. And the code
Switch 20 stores the character code accessed by the CRT controller 2.
And attribute data. This code
The character code taken into the fetch unit 20 is a character code
The signal is supplied to the latch unit 22 and is further
Is determined to be a full-width character or a half-width character. And the full-width sentence
If it is a character, the full-width detection signal ZEN is output and the CG
The address generation unit 24 includes a first storage unit 22a and a second storage unit 2
Characters are determined based on the 2-byte character code in 2b.
The address of the generator 10b is generated. That is, CG
Operation of the decoder 50 and the selector 51 in the dress generation unit 24
Performs the conversion shown in FIG. 5, whereby the shift
JIS code is Kanji ROM10b 1 To the address of the corresponding character
Is replaced. Also, if the character code is a one-byte character
In this case, the full-width detection signal ZEN is not output,
The address generation unit 24 uses the character code in the first storage unit 22a to
ANK ・ ROM10b Two Generate the address of Then, the character generator 10b outputs the full-width character
If the font is accessed, the horizontal direction of the character
16-dot data is used as address signal A4 (see Fig. 4)
Therefore, it is output twice for each of the left and right 8 dots,
If the character is accessed, the character's horizontal 8
Output the data for each bit. And parallel serial
Converter 26 is output from character generator 10b
Data is sequentially converted to serial data,
The data is supplied to the color code generator 28 via the
You. The color code generator 28 includes an attribute processor 30
Each of the supplied dot data based on the control signal of
And generates a color code and outputs it to the CRT display device 4.
You. As a result, the display surface of the CRT display device 4 has a character
Character specified by the attribute data
Color and other attributes (flashing, inverted
Etc.). On the other hand, the address fetch unit 40
Fetches the address data output by. This fe
The touched data is stored in the comparator 41 in the register 42.
Data, and if a match is found, the cursor enable
Signal generator 43 generates the cursor enable signal CEN
I do. As a result, the character at the position where the cursor should be displayed
Exclusive or gated dot data
27 functions as an inverter, thereby
Is displayed as a reversed character. In the above embodiment, the personal computer of the European and American standard
Just add the Kanji display device 10 to the null computer,
There is an advantage that kanji can be displayed. And VRAM
3 and use the CRT controller 2
Access is used as it is,
No changes are required. In the embodiment, the CRT controller 2 controls
The part 10a is added.
It may be configured as a more integrated circuit that has functions
No. Further, the above-described embodiment is applied to the kanji / kana in Japanese.
This is an example of display, but the present invention is not limited to Japanese.
It can be applied to other languages. That is, 2 or more
It is necessary to indicate the character using the character code of
Some languages, such as Chinese or Korean
Can be applied. [Effects of the Invention] As described above, according to the first invention, the shift JI
There is a part that does not exist in the value of the specific bit of the S code
Using this, the shift JIS code is discontinuous in this empty area.
Shift JIS by transferring the font data of the part
Font data for each character in the kanji code area of the code
Data was rearranged in the order of consecutive addresses and stored.
It has good storage efficiency,
Data can be stored. Also, use Shift JIS code on the program
However, it is possible to read the font data of the corresponding character.
In this case, a general-purpose program can be used as it is. Further, according to the second invention, a normal alphanumeric character code
And Shift JIS code are mixed in the program
Also, the font data of the corresponding character
Can be read. Therefore, improvement of storage efficiency and
Both are the softwares of personal computers that use Western standards.
Software compatibility and portability.
Wear.

【図面の簡単な説明】 第1図はこの発明の一実施例の要部の構成を示すブロッ
ク図、第2図は第1図に示す第1記憶部22a,第2記憶部
22bとデコーダ50,セレクタ51との接続関係を示すブロッ
ク図、第3図はセレクタ51の詳細を示す回路図、第4図
はキャラクタジェネレータ10b内の漢字フォントとスキ
ャンアドレスの関係を示す図、第5図はセレクタ51によ
るアドレス信号作成処理を示す図、第6a図はシフトJIS
コードのコードマップ、第6b図は同実施例におけるフォ
ントデータのアドレス組み換えを示すコードマップ、第
7図は同実施例の全体構成を示すブロック図、第8図は
同実施例におけるアトリビュートデータを示す図、第9
図は同実施例におけるキャラクタ表示制御部の構成を示
すブロック図、第10図は同実施例における文字表示とVR
AM3内の文字コードとの関係を示す図である。 2……表示コントローラ、3……VRAM(メモリ)、10b1
……漢字ROM(第1のキャラクタジェネレータ)、10b2
……ANK・ROM(第2のキャラクタジェネレータ)、20…
…コードフェッチ部、23……全/半検出部(選択部)、
24……CGアドレス生成部(アドレス作成部)、26……パ
ラレルシリアル変換器(ドットデータ作成部)、50……
デコーダ(アクセス作成部)、51……セレクタ(アクセ
ス作成部)。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing a configuration of a main part of an embodiment of the present invention, and FIG. 2 is a first storage unit 22a and a second storage unit shown in FIG.
FIG. 3 is a block diagram showing the connection relationship between 22b, decoder 50 and selector 51, FIG. 3 is a circuit diagram showing details of selector 51, FIG. 4 is a diagram showing the relationship between kanji fonts in character generator 10b and scan addresses, FIG. FIG. 5 is a diagram showing an address signal generation process by the selector 51, and FIG.
FIG. 6b shows a code map of codes, FIG. 6b shows a block diagram showing an overall configuration of the embodiment, and FIG. 8 shows attribute data in the embodiment. Figure, ninth
FIG. 10 is a block diagram showing a configuration of a character display control unit in the embodiment. FIG. 10 is a diagram showing character display and VR in the embodiment.
It is a figure showing the relation with the character code in AM3. 2 ... Display controller, 3 ... VRAM (memory), 10b 1
…… Kanji ROM (first character generator), 10b 2
…… ANK ROM (second character generator), 20…
... Code fetch section, 23 ... Full / half detection section (selection section),
24: CG address generator (address generator), 26: parallel-serial converter (dot data generator), 50:
Decoder (access creation unit), 51... Selector (access creation unit).

───────────────────────────────────────────────────── フロントページの続き (72)発明者 大前 尚三 東京都港区南青山5丁目11番5号 株式 会社アスキー内 (56)参考文献 特開 昭57−157346(JP,A) 特開 昭59−184392(JP,A) 特開 昭60−43688(JP,A) 特開 昭58−139243(JP,A) 特開 昭59−30587(JP,A) 特開 昭58−113976(JP,A) 特開 昭59−184392(JP,A) 特開 昭61−140985(JP,A) 特開 昭61−217090(JP,A)   ────────────────────────────────────────────────── ─── Continuation of front page    (72) Inventor Shozo Ohmae               5-11-5 Minami-Aoyama, Minato-ku, Tokyo Stock               In company ASCII                (56) References JP-A-57-157346 (JP, A)                 JP-A-59-184392 (JP, A)                 JP-A-60-43688 (JP, A)                 JP-A-58-139243 (JP, A)                 JP-A-59-30587 (JP, A)                 JP-A-58-113076 (JP, A)                 JP-A-59-184392 (JP, A)                 JP-A-61-140985 (JP, A)                 JP-A-61-217090 (JP, A)

Claims (1)

(57)【特許請求の範囲】 1.シフトJISコードが入力されることにより当該シフ
トJISコードに対応した文字のフォントデータを出力す
るキャラクタジェネレータであって、第1バイトおよび
第2バイトからなる2バイトのアドレスが割り当てられ
た一連の記憶エリアからなり、前記各フォントデータの
うち第1バイトとして(E0)〜(E9)を含む各シフ
トJISコードに対応した漢字のフォントデータを、第2
バイトの上位2ビットが「00」であるアドレスの割り当
てられた各記憶エリアに記憶し、第1バイトとして(E
A)を含む各シフトJISコードに対応した漢字のフォン
トデータを、第1バイトが(80)であるアドレスの割
り当てられた各記憶エリアに記憶し、他の各文字のフォ
ントデータを、当該フォントデータに対応したシフトJI
Sコードをアドレスとする記憶エリアに記憶してなるキ
ャラクタジェネレータと、 前記シフトJISコードに基づいて前記キャラクタジェネ
レータへ読み出しアドレスを出力する手段であって、 a.第1バイトが(E0)〜(E7)である各シフトJIS
コードについては、最上位ビットから順に、当該シフト
JISコードの第2バイトの上位2ビット、当該シフトJIS
コードの第1バイトの下位3ビット、(00)、当該シ
フトJISコードの第2バイトの下位6ビットの各ビット
からなる読み出しアドレスを出力し、 b.第1バイトが(E8)または(E9)である各シフト
JISコードについては、最上位ビットから順に、(00)
、当該シフトJISコードの第1バイトの最下位ビッ
ト、当該シフトJISコードの第2バイトの上位2ビッ
ト、(00)、当該シフトJISコードの第2バイトの下
位6ビットの各ビットからなる読み出しアドレスを出力
し、 c.第1バイトが(EA)である各シフトJISコードにつ
いては、最上位ビットから順に、(00000)、当該シ
フトJISコードの第2バイトの上位2ビット、当該シフ
トJISコードの第2バイトの下位6ビットの各ビットか
らなる読み出しアドレスを出力し、 d.上記a,b,c以外のシフトJISコードについては、当該シ
フトJISコードを読み出しアドレスとして出力するアド
レス変換手段と 前記キャラクタジェネレータから出力されるフォントデ
ータに基づいて表示用のシリアルドットデータを作成す
るドットデータ作成部と を具備することを特徴とするキャラクタ表示装置。 2.シフトJISコードが入力されることにより当該シフ
トJISコードに対応した文字のフォントデータを出力す
るキャラクタジェネレータであって、第1バイトおよび
第2バイトからなる2バイトのアドレスが割り当てられ
た一連の記憶エリアからなり、前記各フォントデータの
うち第1バイトとして(E0)〜(E9)を含む各シフ
トJISコードに対応した漢字のフォントデータを、第2
バイトの上位2ビットが「00」であるアドレスの割り当
てられた各記憶エリアに記憶し、第1バイトとして(E
A)を含む各シフトJISコードに対応した漢字のフォン
トデータを、第1バイトが(80)であるアドレスの割
り当てられた各記憶エリアに記憶し、他の各文字のフォ
ントデータを、当該フォントデータに対応したシフトJI
Sコードをアドレスとする記憶エリアに記憶してなる第
1のキャラクタジェネレータと、 1バイトの文字コードで指示される文字のフォントデー
タを記憶した第2のキャラクタジェネレータと、 メモリから出力される文字コードが1バイトの文字コー
ドである場合は前記第2のキャラクタジェネレータを選
択する選択手段と、 前記シフトJISコードに基づいて前記第1のキャラクタ
ジェネレータの記憶手段へ読み出しアドレスを出力する
手段であって、 a.第1バイトが(E0)〜(E7)である各シフトJIS
コードについては、最上位ビットから順に、当該シフト
JISコードの第2バイトの上位2ビット、当該シフトJIS
コードの第1バイトの下位3ビット、(00)、当該シ
フトJISコードの第2バイトの下位6ビットの各ビット
からなる読み出しアドレスを出力し、 b.第1バイトが(E8)または(E9)である各シフト
JISコードについては、最上位ビットから順に、(00)
、当該シフトJISコードの第1バイトの最下位ビッ
ト、当該シフトJISコードの第2バイトの上位2ビッ
ト、(00)、当該シフトJISコードの第2バイトの下
位6ビットの各ビットからなる読み出しアドレスを出力
し、 c.第1バイトが(EA)である各シフトJISコードにつ
いては、最上位ビットから順に、(00000)、当該シ
フトJISコードの第2バイトの上位2ビット、当該シフ
トJISコードの第2バイトの下位6ビットの各ビットか
らなる読み出しアドレスを出力し、 d.上記a,b,c以外のシフトJISコードについては、当該シ
フトJISコードを読み出しアドレスとして出力するアド
レス変換手段と 前記第1および第2のキャラクタジェネレータから出力
されるフォントデータに基づいて表示用のシリアルドッ
トデータを作成するドットデータ作成部と を具備することを特徴とするキャラクタ表示装置。
(57) [Claims] A character generator that outputs font data of a character corresponding to the shift JIS code when a shift JIS code is input, and is a series of storage areas to which a 2-byte address including a first byte and a second byte is assigned. The font data of the kanji corresponding to each shift JIS code including (E0) H to (E9) H as the first byte of the font data is stored in the second byte.
The upper two bits of the byte are stored in each storage area to which an address of “00” is assigned.
Font data kanji corresponding to each shift JIS code including A) H, first byte (80) is stored in each storage area assigned in which the address H, the other font data for each character, the Shift JI corresponding to font data
A character generator stored in a storage area having an S code as an address, and means for outputting a read address to the character generator based on the Shift JIS code, wherein: a. The first byte is (E0) H to ( E7) Each shift JIS that is H
For codes, the shift
Upper 2 bits of the second byte of the JIS code, shift JIS
A read address consisting of the lower 3 bits of the first byte of the code, (00) B , and the lower 6 bits of the second byte of the Shift JIS code is output. B. The first byte is (E8) H or ( E9) Each shift that is H
For JIS code, (00)
B , the least significant bit of the first byte of the Shift JIS code, the upper 2 bits of the second byte of the Shift JIS code, (00) B , the lower 6 bits of the second byte of the Shift JIS code C. For each shift JIS code in which the first byte is (EA) H , (00000) B , the upper two bits of the second byte of the shift JIS code, A read address consisting of the lower 6 bits of the second byte of the second byte of the shift JIS code is output. D. For the shift JIS code other than the above a, b, and c, an address conversion that outputs the shift JIS code as a read address. Means and a dot data creation unit for creating serial dot data for display based on font data output from the character generator. Character display apparatus according to claim. 2. A character generator that outputs font data of a character corresponding to the shift JIS code when a shift JIS code is input, and is a series of storage areas to which a 2-byte address including a first byte and a second byte is assigned. The font data of the kanji corresponding to each shift JIS code including (E0) H to (E9) H as the first byte of the font data is stored in the second byte.
The upper two bits of the byte are stored in each storage area to which an address of “00” is assigned.
Font data kanji corresponding to each shift JIS code including A) H, first byte (80) is stored in each storage area assigned in which the address H, the other font data for each character, the Shift JI corresponding to font data
A first character generator stored in a storage area having an S code as an address, a second character generator storing font data of a character designated by a 1-byte character code, and a character code output from the memory A selection means for selecting the second character generator when is a one-byte character code; and a means for outputting a read address to the storage means of the first character generator based on the Shift JIS code, a. Each shift JIS whose first byte is (E0) H to (E7) H
For codes, the shift
Upper 2 bits of the second byte of the JIS code, shift JIS
A read address consisting of the lower 3 bits of the first byte of the code, (00) B , and the lower 6 bits of the second byte of the Shift JIS code is output. B. The first byte is (E8) H or ( E9) Each shift that is H
For JIS code, (00)
B , the least significant bit of the first byte of the Shift JIS code, the upper 2 bits of the second byte of the Shift JIS code, (00) B , the lower 6 bits of the second byte of the Shift JIS code C. For each shift JIS code in which the first byte is (EA) H , (00000) B , the upper two bits of the second byte of the shift JIS code, A read address consisting of the lower 6 bits of the second byte of the second byte of the shift JIS code is output. D. For the shift JIS code other than the above a, b, and c, an address conversion that outputs the shift JIS code as a read address. Means and a dot data creating section for creating serial dot data for display based on font data output from the first and second character generators Character display apparatus characterized by comprising a.
JP62320306A 1987-12-18 1987-12-18 Character display Expired - Lifetime JP2778957B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62320306A JP2778957B2 (en) 1987-12-18 1987-12-18 Character display

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62320306A JP2778957B2 (en) 1987-12-18 1987-12-18 Character display

Publications (2)

Publication Number Publication Date
JPH01161970A JPH01161970A (en) 1989-06-26
JP2778957B2 true JP2778957B2 (en) 1998-07-23

Family

ID=18120021

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62320306A Expired - Lifetime JP2778957B2 (en) 1987-12-18 1987-12-18 Character display

Country Status (1)

Country Link
JP (1) JP2778957B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07248755A (en) * 1994-02-25 1995-09-26 Internatl Business Mach Corp <Ibm> Character display method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57157346A (en) * 1981-03-24 1982-09-28 Canon Inc Code converter
JPS58139243A (en) * 1982-02-10 1983-08-18 Toshiba Corp Processor for character data
JPS5930587A (en) * 1982-08-13 1984-02-18 日本電気株式会社 Crt display
JPS59184392A (en) * 1983-04-05 1984-10-19 富士ゼロックス株式会社 Address calculation for font memory
JPS6043688A (en) * 1983-08-19 1985-03-08 日本電気株式会社 Character pattern generator

Also Published As

Publication number Publication date
JPH01161970A (en) 1989-06-26

Similar Documents

Publication Publication Date Title
US5251293A (en) Character display apparatus
US4278973A (en) Video display terminal with partitioned screen
US5504922A (en) Virtual machine with hardware display controllers for base and target machines
US4990903A (en) Method for storing Chinese character description information in a character generating apparatus
US4575816A (en) Interactive transactions processor using sequence table pointers to access function table statements controlling execution of specific interactive functions
US4954979A (en) Personal computer with multiple independent CRT displays of ideographic and/or ASCII characters having loadable font memory for storing digital representations of subset or special characters
CA1132713A (en) Text editing system having flexible repetitive operation capability with keyboard interactive feature
JP2778957B2 (en) Character display
KR920001310B1 (en) Character displaying apparatus
JPS6144317B2 (en)
JPS6318217B2 (en)
JPS5930587A (en) Crt display
EP0261629A2 (en) Display apparatus
JPH031186A (en) Character display device
KR910002134B1 (en) Msx computer with han ja displaing ability
JPS6322334B2 (en)
JPS60159784A (en) Pattern output unit
JPS6217752B2 (en)
JPS59114583A (en) Terminal
JPH068991B2 (en) Character display
JP2846357B2 (en) Font memory device
KR910001565B1 (en) Msx computer be able to indicate hangeul of english letter twice size
JPS61179754A (en) Pattern converting apparatus
JPH082712Y2 (en) Display controller
JPS6339063B2 (en)