JPS59116786A - Cursor control system - Google Patents

Cursor control system

Info

Publication number
JPS59116786A
JPS59116786A JP57226114A JP22611482A JPS59116786A JP S59116786 A JPS59116786 A JP S59116786A JP 57226114 A JP57226114 A JP 57226114A JP 22611482 A JP22611482 A JP 22611482A JP S59116786 A JPS59116786 A JP S59116786A
Authority
JP
Japan
Prior art keywords
cursor
angle
movement
processor
register
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
JP57226114A
Other languages
Japanese (ja)
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP57226114A priority Critical patent/JPS59116786A/en
Publication of JPS59116786A publication Critical patent/JPS59116786A/en
Pending legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Digital Computer Display Output (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明はカーソル制御方式に関し、%に文字列編集用の
キャラクタディスプレイや図形処理編集用のグラフィッ
クディスプレイに好適に用い得る、カーソルを指定角度
方向に移動可能とするカーソル制御方式に関する。
[Detailed Description of the Invention] [Field of Application of the Invention] The present invention relates to a cursor control method, which is suitable for use in character displays for character string editing and graphic displays for graphic processing editing. This invention relates to a cursor control method that allows movement.

〔従来技術〕[Prior art]

従来のキャラクタディスプレイ、グラフィックディスプ
レイにおいては、表示画面上の対象を特定したり、新規
作成表示位置を指定したシする場合に、ファンクション
キー、ダイアルあるいはライトペン、ジョイスティック
等を用いて行うのが普通である。しかしながら、ファン
クションキー、ダイアルによる方法では、カーソルを水
平または垂直方向にしか移動させることができず、カー
ソルの移動目標位置が斜め方向の場合には位置指定操作
が難しく、使い勝手が悪いという問題があった。また、
ライトペンジョイスティックは操作は簡単であるが高価
であるという問題があった。
In conventional character displays and graphic displays, when specifying an object on the display screen or specifying a new display position, it is common to use function keys, dials, light pens, joysticks, etc. be. However, the method using function keys and dials can only move the cursor horizontally or vertically, and when the target position of the cursor is diagonally, it is difficult to specify the position, making it inconvenient to use. Ta. Also,
Although light pen joysticks are easy to operate, they are expensive.

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

本発明は上記事情に鑑みてなされたもので、その目的と
するところは、従来のCR,T表示装置の位置指定方式
における上述の如き問題を解消し、表示画面上の位置指
定を容易に行うことができ、かつ、安価なカーソル制御
方式を提供することにある。
The present invention has been made in view of the above circumstances, and its purpose is to solve the above-mentioned problems in the position specification method of conventional CR and T display devices, and to easily specify the position on the display screen. An object of the present invention is to provide a cursor control method that is capable of controlling a cursor and is inexpensive.

〔発明の概要〕[Summary of the invention]

本発明の要点は、プロセッサによシカ−ツルの移動が制
御されるCR,T表示装置において、カーソルの移動角
度を指定する角度用機能スイッチと、該スイッチによシ
指定された角度での双方向の移動を指定するスイッチと
、前記プロセッサによシ読み書き可能な角度レジスタと
を設け、該角度レジスタの内容を前記プロセッサが取り
込んでカーソルの移動を制御するようにした点にある。
The gist of the present invention is that in a CR/T display device in which the movement of the deer crane is controlled by a processor, an angle function switch that specifies the movement angle of the cursor, and both angles specified by the switch are provided. The cursor is provided with a switch for specifying direction movement and an angle register that can be read and written by the processor, and the processor takes in the contents of the angle register to control the movement of the cursor.

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

以下、本発明の実施例を図面に基づいて詳細に説明する
Embodiments of the present invention will be described in detail below with reference to the drawings.

第1図は本発明の一実施例である角度指定カーソル付き
表示装置の斜視図である。本実施例装置は、図からも明
らかな如く、通常のキーボード1の他に、カーソルを目
標角度方向に設定する角度用機能スイッチ2、カーソル
を通常は画面の左右方向に移動させるスイッチであるが
、前記角度用機能スイッチ2で角度指定が行われた際に
は、その角度で双方向にカーソルを移動させる機能スイ
ッチ3.4およびカーソルを画面の上下方向に移動させ
る機能スイッチ5.6を備えている。なお、7は表示画
面上に表示されているカーソルを示している。
FIG. 1 is a perspective view of a display device with an angle specifying cursor, which is an embodiment of the present invention. As is clear from the figure, the device of this embodiment has, in addition to a normal keyboard 1, an angle function switch 2 that sets the cursor in the target angle direction, and a switch that normally moves the cursor in the left-right direction of the screen. , a function switch 3.4 that moves the cursor in both directions at that angle when an angle is specified with the angle function switch 2, and a function switch 5.6 that moves the cursor in the vertical direction of the screen. ing. Note that 7 indicates a cursor displayed on the display screen.

第2図は本実施例装置におけるカーソルの移動状況を示
す図である。従来は機能スイッチ3と同5とを用いて、
図に(3)、(5)で示される如くカーソルを移動させ
ていたが、本実施例装置においては、角度用機能スイッ
チ2と機能スイッチ3とを用いて、図に(2+3)で示
される如く、目標位置までカーソルを直接移動させるこ
とができる。また、角度用機能スイッチ2の設定に誤差
があった場合には、前記(2+3)の移動の後に、通常
の機能スイッチの機能で位置修正を行えば良い。
FIG. 2 is a diagram showing the movement of the cursor in the device of this embodiment. Conventionally, function switches 3 and 5 were used,
The cursor was moved as shown in (3) and (5) in the figure, but in this embodiment, the angle function switch 2 and the function switch 3 are used to move the cursor as shown in (2+3) in the figure. You can move the cursor directly to the target position. Further, if there is an error in the setting of the angle function switch 2, the position can be corrected using the normal function switch function after the above-mentioned (2+3) movement.

第3図は本実施例装置の詳細な構成を示す図でおる。図
において、10はプロセッサであり、アドレスバスAB
1データバスDB、Read/Write  信号線R
/Wにより周辺デバイスとインタフェースするようにな
っている。20はアドレスデコーダでめり、アドレスバ
スABの内容をデコードして周辺デバイスに対してどの
チップを選ぶかというチップセレクト信号を発生するも
のである。30は読出し専用メモリ(ROM)であり、
プロセッサ100制御プログラムが格納されている。4
0は任意アクセスメモリ(RAM)であシ、プロセッサ
10のデータメモリとして使われる。
FIG. 3 is a diagram showing the detailed configuration of the apparatus of this embodiment. In the figure, 10 is a processor, and address bus AB
1 data bus DB, Read/Write signal line R
/W is used to interface with peripheral devices. Reference numeral 20 is an address decoder which decodes the contents of the address bus AB and generates a chip select signal indicating which chip to select for the peripheral device. 30 is a read-only memory (ROM);
A processor 100 control program is stored. 4
0 is random access memory (RAM), which is used as data memory for the processor 10.

50はカーソルの移動する角度を規定する角度レジスタ
であり、前記アドレスデコーダ20の出力によりチップ
セレクト信号が供給される。また、データバスDBに接
続されてお’)、Read /Write  信号線R
/Wからの信号により、プロセッサ10との間でのデー
タ転送が制御される。
An angle register 50 defines the angle at which the cursor moves, and is supplied with a chip select signal by the output of the address decoder 20. Also, it is connected to the data bus DB, and the Read/Write signal line R
Data transfer with the processor 10 is controlled by a signal from /W.

60は水平カーソルレジスタ、70は垂直カーソルレジ
スタでアリ、これらのレジスタもプロセッサIOKより
アクセス可能になっている。水平カーソルレジスタロ0
の出力CX垂直カーソルレジスタ70の出力CYは一致
回路8oに供給され、後述するタイミング制御回路90
のキャラクタカウンタの出力95とラインカウンタの出
力99との一致がとられ、両者が一致したときカーソル
表示信号85が発生する。また、100はアドレス変換
器であり、前記キャラクタカウンタの出力95とライン
カウンタの出力99との二次元アドレスを一次元のアド
レスに変換するものである。
60 is a horizontal cursor register, and 70 is a vertical cursor register, and these registers can also be accessed from the processor IOK. Horizontal cursor register row 0
The output CX of the vertical cursor register 70 and the output CY of the vertical cursor register 70 are supplied to a coincidence circuit 8o, and a timing control circuit 90 described later.
The output 95 of the character counter and the output 99 of the line counter are matched, and when they match, a cursor display signal 85 is generated. Further, 100 is an address converter, which converts the two-dimensional address of the output 95 of the character counter and the output 99 of the line counter into a one-dimensional address.

タイミング制御回路90の詳細を第4図に示した。図に
おいて、91はクロックオシレータ、93は1文字区画
の横ドツト数を規定するドツトカウンタ、94は1水平
走査線上のキャラクタ数を規定するキャラクタカウンタ
である。1だ、96は1文字区画の縦ドツト数を規定す
るラスタカウンタ、9Elj:1フレームのライン数を
規定するラインカウンタである。なお、オシレータ91
の出力92は、後述するパラレル・シリアル変換器13
0のシフトパルスとしても用いられる。キャラクタカウ
ンタ94の出力95、ラインカウンタ98の出力99は
前記カーソルレジスタとの一致信号として使われる他、
前記アドレス変換器100において一次元アドレスに変
換されて出力105となシ、リフレッシュメモリ110
に対して表示データの読出しアドレスとして供給される
Details of the timing control circuit 90 are shown in FIG. In the figure, 91 is a clock oscillator, 93 is a dot counter that defines the number of horizontal dots in one character section, and 94 is a character counter that defines the number of characters on one horizontal scanning line. 96 is a raster counter that defines the number of vertical dots in one character block, and 9Elj is a line counter that defines the number of lines in one frame. In addition, the oscillator 91
The output 92 of
It is also used as a zero shift pulse. The output 95 of the character counter 94 and the output 99 of the line counter 98 are used as a coincidence signal with the cursor register, and
The address converter 100 converts it into a one-dimensional address and outputs it as an output 105, and the refresh memory 110
is supplied as a read address for display data.

これによシ、リフレッシュメモリ110がら指定された
アドレスの文字コード115が読出されキャラクタジェ
ネレータ120に供給される。キャラクタジェネレータ
120には、前記文字コード115の他に、前記ラスタ
カクンタ96の出力97が供給されておシ、指定された
文字コードの指定されたラインの文字パターン125を
読出し、これがパラレル・シリアル変換器130によシ
リアルビデオ信号135に変換され、混合器140を介
して、CRT表示器150に表示される。混合器14(
1:前記シリアルビデオ信号135にカーソル表示信号
85を混合してカーソル表示を行わせるものである。
As a result, the character code 115 at the specified address is read from the refresh memory 110 and supplied to the character generator 120. In addition to the character code 115, the character generator 120 is supplied with the output 97 of the raster kakunta 96, reads out the character pattern 125 of the designated line of the designated character code, and converts this into a parallel-to-serial converter. 130 into a serial video signal 135, which is displayed on a CRT display 150 via a mixer 140. Mixer 14 (
1: A cursor display signal 85 is mixed with the serial video signal 135 to display a cursor.

160は前記角度用機能スイッチ(第1図2参照)であ
り、これが操作されると、割込み信号165がプロセッ
サ10に送られ、角度データはデータバスDBを介して
プロセッサ10に読み込まれる。170は前記カーソル
移動用機能スイッチ(第1図3.4−.5.6参照)で
あり、このスイッチが押されたとき、割込み信号が送ら
れ、プロセッサにより後述する如く、指定角度方向のカ
ーソルの移動制御が行われる。上述の如ぐ構成された本
実施例装置において、角度用機能スイッチ160でカー
ソル移動角度が指定され、カーソル移動用機能スイッチ
170が押された場合の動作を以下、説明する。
Reference numeral 160 denotes the angle function switch (see FIG. 1 and 2), and when this is operated, an interrupt signal 165 is sent to the processor 10, and the angle data is read into the processor 10 via the data bus DB. 170 is the function switch for moving the cursor (see Fig. 1, 3.4-.5.6); when this switch is pressed, an interrupt signal is sent, and the processor moves the cursor in a specified angular direction, as will be described later. Movement control is performed. In the apparatus of this embodiment configured as described above, the operation when the cursor movement angle is designated by the angle function switch 160 and the cursor movement function switch 170 is pressed will be described below.

第5図は上記動作のフローチャート、第6図はカーソル
移動のアルゴリズム説明図である。なお、以下の説明に
おいて、 CX:水平カーンルレジスタ60の内容CY:垂直カー
ソルレジスタ70の内容TH二角度レジスタ50の内容 を示し、現在のカーソル位置lll−1(、n)である
とする。すなわち、 m;水平方向位置(=CX) n:垂直方向位置(=CY) であり、DX、DYはそれぞれ、垂直格子線および水平
格子線の単位間隔長である。
FIG. 5 is a flowchart of the above operation, and FIG. 6 is an explanatory diagram of the algorithm for moving the cursor. In the following description, CX: Contents of the horizontal cursor register 60 CY: Contents of the vertical cursor register 70 TH The contents of the two-angle register 50 are assumed to be the current cursor position lll-1(,n). That is, m: horizontal position (=CX) n: vertical position (=CY), and DX and DY are the unit interval lengths of the vertical grid line and the horizontal grid line, respectively.

角度用機能スイッチ2(160)がTHに設定され、移
動用機能スイッチ3または4が押下されると、プロセッ
サ10は前記ROM30から次の処理を行うプログラム
をロードして、カーソルを角度THの方向に移動させる
処理を行う。
When the angle function switch 2 (160) is set to TH and the movement function switch 3 or 4 is pressed, the processor 10 loads a program for the following processing from the ROM 30 and moves the cursor in the direction of the angle TH. Perform the process of moving it to .

(1)  現在のカーソル位置CX、CYを読む。(1) Read the current cursor position CX, CY.

(3)設定された角度THを読む。(3) Read the set angle TH.

(3)  現在のカーソル位置から角度THで伸ばした
直線が、水平格子線と垂直格子線のどちらと、より多く
交叉するかを判定する。判定条件はtanTHとDY/
DXとを比較することであり、tanTH≦DY/DX
ならば垂直格子線と、より多く交叉することになる。以
下、垂直格子線と、よυ多く交叉する場合について説明
するが、水平格子線と、よシ多く交叉する場合も同様で
ある。
(3) Determine whether a straight line extended from the current cursor position at an angle TH intersects with more horizontal grid lines or vertical grid lines. Judgment conditions are tanTH and DY/
DX, tanTH≦DY/DX
If so, it will intersect with the vertical grid lines more often. In the following, a case will be described in which the vertical grid lines intersect a large number of times, but the same applies to a case where the horizontal grid lines intersect a large number of times.

(4)現在のカーソル位置に隣接する垂直格子線と、前
記角度THの直線との交点のY座標Yを次式によシ求め
る。
(4) Find the Y coordinate Y of the intersection of the vertical grid line adjacent to the current cursor position and the straight line at the angle TH using the following equation.

Y ” n−DY+DX @ tan TH(5)(4
)で求めたY座標が、現在のカーソル位置の水平格子線
から数えて、何番目の水平格子線の間にあるかを求める
。この判定条件は、前記交点のY座標Yかに番目とに+
1番目の水平格子線の間にあるものとし、 (n+k)DY)Y≧(n+に−1)DYとなる。
Y” n-DY+DX @ tan TH (5) (4
) is located between which horizontal grid lines, counting from the horizontal grid line at the current cursor position. This judgment condition is that the Y coordinate of the intersection point is +
It is assumed that it is between the first horizontal grid lines, and (n+k)DY)Y≧(-1 to n+)DY.

(6)  新しいカーソル位置を、カーソル位置レジス
タに次のように設定する。
(6) Set the new cursor position in the cursor position register as follows.

CX = m + 1 CY = n + k−1 上記処理により、カーソルは第6図に示す如く、指定角
度上を近イ以的な@線(図の○印)で移動することにな
る。なお、前述の如<、tan TH)DY/DXの場
合も同様の処理となる。
CX = m + 1 CY = n + k-1 As shown in Fig. 6, the cursor moves on the designated angle along the near a or more @ line (marked with a circle in the figure). Note that similar processing is performed in the case of <, tan TH) DY/DX as described above.

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

以上述べた如く、本発明によれば、プロセッサによりカ
ーソルの移動が制御されるCRT表示装置において、カ
ーソルの移動角度を指定する角度用機能スイッチと、該
スイッチにより指定された角度での双方の移動を指定す
るスイッチと、前記プロセッサによシ読み書き可能な角
度レジスタとを設けて、該角度レジスタの内容を前記グ
ロセッサが取り込んでカーソルの移動を制御するように
したので、カーソルを直接斜め方向に移動させることが
可能で、かつ、安価なカーソル制御方式を実現できると
いう顕著な効果を奏する。
As described above, according to the present invention, in a CRT display device in which the movement of a cursor is controlled by a processor, there is provided an angle function switch that specifies the movement angle of the cursor, and movement of both at the angle specified by the switch. and an angle register that can be read and written by the processor, and the grosser takes in the contents of the angle register to control the movement of the cursor, so the cursor can be directly moved diagonally. This has the remarkable effect of realizing an inexpensive cursor control method.

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

第1図は本発明の一実施例を示す斜視図、第2図はカー
ソルの移動状況を示す図、第3図は実施例装置の詳細を
示すブロック図、第4図はそのタイミング制御回路の詳
細図、第5図は処理のプログラムフローチャート、第6
図はカーソル移動のアルゴリズム説明図である。 2(160)・・・角度用機能スイッチ、3,4,5゜
6(170)・・・移動用機能スイッチ、10・・・プ
ロセッサ、20・・・アドレスデコーダ、30・・・R
OM。 50・・・角度レジスタ、60・・・水平カーソルレジ
スタ、70・・・垂直カーソルレジスタ、80・・・−
数回路、90・・・タイミング制御回路、100・・・
アドレス変換L1xo・・・リフレッシュメモリ、12
0・・・キャラクタジェネレータ、130・・・パラレ
ル・シリアル変換器、140・・・混合器、150・・
・CR,T第 5  図 第6図 X
FIG. 1 is a perspective view showing an embodiment of the present invention, FIG. 2 is a diagram showing a cursor movement situation, FIG. 3 is a block diagram showing details of the embodiment device, and FIG. 4 is a timing control circuit diagram thereof. Detailed diagram, Figure 5 is a program flowchart of processing, Figure 6 is a detailed diagram.
The figure is an explanatory diagram of an algorithm for cursor movement. 2(160)...Function switch for angle, 3,4,5°6(170)...Function switch for movement, 10...Processor, 20...Address decoder, 30...R
OM. 50...Angle register, 60...Horizontal cursor register, 70...Vertical cursor register, 80...-
Several circuits, 90...timing control circuit, 100...
Address conversion L1xo...Refresh memory, 12
0...Character generator, 130...Parallel/serial converter, 140...Mixer, 150...
・CR, T Figure 5 Figure 6 X

Claims (1)

【特許請求の範囲】[Claims] 1、 プロセッサによシカ−ツルの移動が制御されるC
RT表示装置において、カーソルの移動角度を指定する
角度用機能スイッチと、該スイッチにより指定された角
度での双方向の移動を指定するスイッチと、前記プロセ
ッサにより読み書き可能な角度レジスタとを設け、該角
度レジスタの内容を前記プロセッサが取り込んでカーソ
ルの移動を制御することを特徴とするカーソル制御方式
1. C where the movement of deer cranes is controlled by a processor
The RT display device is provided with an angle function switch for specifying a movement angle of the cursor, a switch for specifying bidirectional movement at the angle specified by the switch, and an angle register readable and writable by the processor, A cursor control method characterized in that the processor reads the contents of an angle register to control movement of the cursor.
JP57226114A 1982-12-24 1982-12-24 Cursor control system Pending JPS59116786A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57226114A JPS59116786A (en) 1982-12-24 1982-12-24 Cursor control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57226114A JPS59116786A (en) 1982-12-24 1982-12-24 Cursor control system

Publications (1)

Publication Number Publication Date
JPS59116786A true JPS59116786A (en) 1984-07-05

Family

ID=16840050

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57226114A Pending JPS59116786A (en) 1982-12-24 1982-12-24 Cursor control system

Country Status (1)

Country Link
JP (1) JPS59116786A (en)

Similar Documents

Publication Publication Date Title
JPS57203127A (en) Selecting device of graphic data
JPS60251473A (en) Tabulation system
JPS6250966A (en) Picture processing device
JPS59116786A (en) Cursor control system
JPS644189B2 (en)
JPS60140477A (en) Pattern input system
JPS62192865A (en) Graphic display device
JPS60119598A (en) Display controller
JP2680805B2 (en) Graphic coordinate controller
JPH01191928A (en) Data input device
JPH0145662B2 (en)
JPS63204296A (en) Display system for telewriting terminal
JPS62168197A (en) Display controller
JPH0253797B2 (en)
JPH04354069A (en) Picture processor
JPH0424748B2 (en)
JPS59171990A (en) Image correction system for image display
JPS6243779A (en) Template picture drawing device for graphic processing
JPS61161537A (en) Information processor
JPS6068375A (en) Screen control system for display unit
JPH05130504A (en) Image display controller
JPS61190390A (en) Cursor display system for display unit
JPS62229317A (en) Character processor
JPS63104191A (en) Drawn picture processor
JPS6173190A (en) Cursor display unit