JPH0133794B2 - - Google Patents
Info
- Publication number
- JPH0133794B2 JPH0133794B2 JP55076331A JP7633180A JPH0133794B2 JP H0133794 B2 JPH0133794 B2 JP H0133794B2 JP 55076331 A JP55076331 A JP 55076331A JP 7633180 A JP7633180 A JP 7633180A JP H0133794 B2 JPH0133794 B2 JP H0133794B2
- Authority
- JP
- Japan
- Prior art keywords
- date
- stored
- digit
- ram
- days
- 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
Links
Classifications
-
- G—PHYSICS
- G04—HOROLOGY
- G04G—ELECTRONIC TIME-PIECES
- G04G9/00—Visual time or date indication means
- G04G9/08—Visual time or date indication means by building-up characters using a combination of indicating elements, e.g. by using multiplexing techniques
- G04G9/085—Visual time or date indication means by building-up characters using a combination of indicating elements, e.g. by using multiplexing techniques provided with date indication
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Electric Clocks (AREA)
- Calculators And Similar Devices (AREA)
Description
【発明の詳細な説明】
この発明はカレンダ機能を備えた小型電子式計
算機等において、複数の特定日からなる期間を簡
単に設定できるカレンダ表示装置に関する。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a calendar display device in which a period consisting of a plurality of specific days can be easily set in a small electronic calculator or the like having a calendar function.
従来、小型電子式計算機においては、カレンダ
機能を備えたもの、すなわち、任意の年、月を指
定してそのカレンダを表示できるようにしたもの
がある。さらに、このカレンダ機能付の小型電子
式計算機では、例えば誕生日、記念日、会社の休
日等の特定日を予め指定して記憶させカレンダ表
示を行なわせた時にその特定日の表示体のそばに
別の表示体を点灯して特定日を明示するようにし
たものが考えられている。しかしながら、上記従
来における特定日の設定方法では、各特定日毎に
その日付を入力しなければならないので、例えば
夏休み等長期間の指定を行う場合、特定日が連続
するものであつてもその期間の全ての日付に対し
て指定操作を行わなければならず、その操作が非
常に面倒であつた。 2. Description of the Related Art Conventionally, some small electronic calculators are equipped with a calendar function, that is, they are capable of displaying a calendar by specifying an arbitrary year and month. Furthermore, this small electronic calculator with a calendar function allows you to specify and memorize specific dates such as birthdays, anniversaries, company holidays, etc. in advance, and when the calendar is displayed, a A system is being considered in which a separate display is lit to clearly indicate a specific date. However, in the conventional method of setting specific days mentioned above, the date must be entered for each specific day, so when specifying a long period of time, such as summer vacation, even if the specific days are consecutive, it is necessary to enter the date for each specific day. Specifying operations had to be performed for all dates, which was extremely troublesome.
この発明は上記の点に鑑みてなされたもので、
指定された起算日と日数を入力することにより、
上記起算日から上記日数が経過するまでの期間が
特定日として設定できるカレンダ表示装置を提供
することを目的とする。 This invention was made in view of the above points,
By entering the specified starting date and number of days,
It is an object of the present invention to provide a calendar display device in which a period from the starting date to the elapse of the number of days can be set as a specific day.
以下、図面を参照して、この発明の一実施例を
説明する。第1図は小型電子式計算機のシステム
構成を示す図である。同図において、11はキー
入力部で、年、月、日を入力する「DATE」キ
ー11a、カレンダを表示させる「CALE」キー
11b、期間を設定する「SET」キー11c、
テンキー部11e、フアンシヨンキー部11fを
備えている。また、12は各種マイクロ命令が記
憶されているROM(リードオンメモリ)で、こ
のROM12からアドレス制御部13にはアドレ
ス制御信号、制御部14には制御信号が送出され
る。 An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a diagram showing the system configuration of a small electronic calculator. In the figure, 11 is a key input section, including a "DATE" key 11a for inputting the year, month, and day, a "CALE" key 11b for displaying a calendar, a "SET" key 11c for setting a period,
It includes a numeric keypad section 11e and a function key section 11f. Further, 12 is a ROM (read-on memory) in which various microinstructions are stored, and from this ROM 12, address control signals are sent to the address control section 13, and control signals are sent to the control section 14.
前記アドレス制御部13は第1のRAM15及
び第2のRAM16にアドレス指定信号を送出す
る。また、第1のRAM15及び第2のRAM1
6は出力信号をラツチ回路17と前記アドレス制
御部13に送出する。また、ラツチ回路17に保
持されるデータは演算回路18に送出され制御部
14から出力される演算指定信号に基づいて演算
が行なわれ、演算回路18から第1のRAM15
及び第2のRAM16に演算結果が送出される。
なお演算回路18の入力端の一方にはROM12
からコード信号(図示せず)が入力される。さら
に、上記演算回路18からキヤリー信号、データ
信号が制御部14に送出される。そして、制御部
14はこれらの信号に基づいて、前記ROM12
の次アドレス指定信号を出力する。またさらに、
前記アドレス制御部13には制御部14からアド
レスレジスタADの制御信号が供給される。さら
に、制御部14から第1のRAM15及び第2の
RAM16にそれぞれチツプイネーブル信号CE1、
CE2が供給されると共に、及び読出し/書込み信
号R/Wが各々供給される。また、前記キー入力
部11から供給されるデータは演算回路18を介
して後述する第1のRAM15のTレジスタに入
力される。そして、前記ラツチ回路17の一方の
出力は表示用バツフアHBを備える表示部19及
び前記キー入力部11にデータバスを介して供給
される。 The address control section 13 sends addressing signals to the first RAM 15 and the second RAM 16. In addition, the first RAM 15 and the second RAM 1
6 sends an output signal to the latch circuit 17 and the address control section 13. Further, the data held in the latch circuit 17 is sent to the arithmetic circuit 18, and arithmetic is performed based on the arithmetic designation signal output from the control section 14.
And the calculation result is sent to the second RAM 16.
Note that the ROM 12 is connected to one of the input terminals of the arithmetic circuit 18.
A code signal (not shown) is input from. Further, a carry signal and a data signal are sent from the arithmetic circuit 18 to the control section 14. Then, the control unit 14 controls the ROM 12 based on these signals.
Outputs the next address designation signal. Furthermore,
The address control section 13 is supplied with a control signal for the address register AD from the control section 14 . Furthermore, the control unit 14 controls the first RAM 15 and the second RAM 15 .
Chip enable signal CE 1 to RAM16,
CE 2 and read/write signals R/W are provided, respectively. Further, data supplied from the key input section 11 is inputted to a T register of a first RAM 15, which will be described later, via an arithmetic circuit 18. One output of the latch circuit 17 is supplied to a display section 19 including a display buffer HB and the key input section 11 via a data bus.
次に、第2図Aは第1図における第1のRAM
15の構成を示す図である。同図に示される如く
第1のRAM15はAないしFレジスタ、S、T
レジスタ及び図示しない演算用レジスタを備え、
Aレジスタ、Eレジスタ及びFレジスタは一時記
憶用、BないしDレジスタは日付情報記憶用、S
レジスタは年情報記憶用あるいは一時記憶用、T
レジスタは置数情報記憶用として用いられる。 Next, Figure 2A shows the first RAM in Figure 1.
15 is a diagram showing the configuration of No. 15. As shown in the figure, the first RAM 15 includes A to F registers, S, T
Equipped with a register and a calculation register (not shown),
A, E, and F registers are for temporary storage, B to D registers are for date information storage, and S
The register is for year information storage or temporary storage, T
The register is used for storing numeric information.
また、第2図Bは第1図における第2のRAM
16の構成を示す図である。同図Bに示される如
く第2のRAM16は一年分の設定日を記憶する
ことができる。そして、上記第2のRAM16は
各月に対応して例えば8桁で構成され、1桁に対
して4ビツトの情報を記憶することができる。そ
して、第2のRAM16内の各月の記憶領域(M1
〜M12)のうち最右ビツトから順に「1日」、「2
日」、「3日」……に対する設定情報が記憶される
もので、あるビツトに“1”が書き込まれている
場合は、そのビツトに対応する日付は設定日であ
ることを示している。 Also, Figure 2B shows the second RAM in Figure 1.
16 is a diagram showing the configuration of No. 16. As shown in Figure B, the second RAM 16 can store one year's worth of set dates. The second RAM 16 is composed of, for example, eight digits corresponding to each month, and can store four bits of information for each digit. Then, the storage area for each month (M 1
~ M12 ), "1st", "2nd" in order from the rightmost bit.
Setting information for "3rd day", "3rd day", etc. is stored, and when "1" is written in a certain bit, it indicates that the date corresponding to that bit is the set date.
以上のように構成されたこの発明の動作を説明
する。今例えば、西暦1980年3月16日から14日間
を特定日として設定する場合の動作について説明
する。まず、キー入力部11で□1□9□8□0
DATE□3DATE□1□6DATE□+□1□4
SETを順次操作すると、第3図に示すフロー
チヤートの動作が開始される。そして、ステツプ
S11においてTレジスタに記憶されている置数デ
ータがBレジスタに転送される(第4図A参照。
以下レジスタの状態を第4図に示す。)。次にステ
ツプS12においてB2,3(Bレジスタの2、3桁を示
す。以下同様)の内容「16」がF3,4桁に転送され
る。そして、ステツプS13において詳細を第5図
を用いて後述する桁指定サブルーチンIが実行さ
れる。 The operation of the present invention configured as above will be explained. For example, the operation when setting 14 days from March 16, 1980 as a specific date will be described. First, use the key input section 11 to select □1□9□8□0.
DATE□3DATE□1□6DATE□+□1□4
When SET is operated in sequence, the operation of the flowchart shown in FIG. 3 is started. And the steps
At S11 , the numeric data stored in the T register is transferred to the B register (see FIG. 4A).
The states of the registers are shown in FIG. 4 below. ). Next, in step S12 , the content "16" of B2,3 (representing the 2nd and 3rd digits of the B register; the same applies hereinafter) is transferred to the F3,4 digit. Then, in step S13 , a digit designation subroutine I, the details of which will be described later with reference to FIG. 5, is executed.
この桁指定サブルーチンIは、第2のRAM1
6に設定日をセツトするためのもので、F3,4桁の
日付により第2のRAM16の桁指定及びセツト
される数値が算出される。そして、桁指定データ
はF0に、数値はF2に記憶される。 This digit specification subroutine I is executed in the second RAM1.
This is to set the set date to 6, and the digit designation of the second RAM 16 and the numerical value to be set are calculated using the 3rd and 4th digit date. Then, the digit designation data is stored in F0 , and the numerical value is stored in F2 .
次にステツプS14において上記桁指定サブルー
チンIの結果として出力されるF0の内容「3」
がA0に記憶される。そして、ステツプS15におい
て上記桁指定サブルーチンIの結果として出力さ
れるF2の内容「8」がA2に記憶される。(第4図
B)次に、ステツプS16においてB2〜9の内容
「19800316」の内容から基準日数を算出する。 Next, in step S14 , the content of F0 output as a result of the above digit specification subroutine I is "3".
is stored in A 0 . Then, in step S15 , the content "8" of F2 output as a result of the digit designation subroutine I is stored in A2 . (FIG. 4B) Next, in step S16 , the reference number of days is calculated from the contents of B2 to B9 , ``19800316''.
この基準日数とは、ある基準日(例えば西暦
1900年3月1日)から当日までの日数を意味す
る。この基準日数は、公知の計算式より求められ
るものである。次に、ステツプS17においてステ
ツプS16で求めた基準日数B0,1の内容「14」を加
算し、この基準日数に対応する日付を求め、この
日付をD2〜9桁に記憶する。(第4図C)次に、
ステツプS18においてD2,3の内容「29」をF3,4に転
送する。そして、ステツプS19において桁指定サ
ブルーチンIが呼び出されて実行される。次にス
テツプS20において上記桁指定サブルーチンIの
結果が記憶されているF0の内容「7」がC0に記
憶される。次に、ステツプS12において上記桁指
定サブルーチンIの結果が記憶されているF2の
内容「1」がC2に記憶される。(第4図E)次
に、ステツプS22においてB4、5に記憶される起算
日の属する月情報「3」とD4,5に記憶される期間
経過後の月情報「3」とが比較される。上記ステ
ツプS22において起算日から所定期間を入力する
ことにより月が変化するか否か判断している。こ
のステツプS22で、比較結果が等しければステツ
プS23、等しくなければステツプS24が実行され
る。次に、ステツプS23において「C0−A0」の演
算が実行される。 This standard number of days refers to a certain standard date (for example,
means the number of days from March 1, 1900 to the current date. This standard number of days is calculated using a known calculation formula. Next, in step S17 , the content "14" of the reference number of days B0,1 obtained in step S16 is added to obtain a date corresponding to this reference number of days, and this date is stored in D2 to D9 digits. (Figure 4C) Next,
In step S18 , the content "29" of D2,3 is transferred to F3,4 . Then, in step S19 , digit designation subroutine I is called and executed. Next, in step S20 , the content "7" of F0 , where the result of the digit designation subroutine I is stored, is stored in C0 . Next, in step S12 , the content " 1 " of F2, where the result of the digit designation subroutine I is stored, is stored in C2 . (Fig. 4E) Next, in step S22 , the month information "3" to which the starting date belongs, stored in B4 , 5 , and the month information "3" after the elapsed period, stored in D4,5 , are combined. be compared. In step S22 , it is determined whether the month changes by inputting a predetermined period from the start date. In step S22 , if the comparison results are equal, step S23 is executed; if not, step S24 is executed. Next, in step S23 , the calculation "C 0 -A 0 " is executed.
この演算結果が「0」ならばステツプS38、
「1」ならばステツプS33、「1」より大きければ
ステツプS24に分岐される。上記ステツプS23にお
いて、3月の設定日記憶における起算日のフラグ
が立つ桁と所定期間「14日」経過後の日のフラグ
が立つ桁との比較される。この場合は「C0−A0」
の内容が4であるのでステツプS24へ進む。この
ステツプS24において第2のRAM16の桁を指定
するA0の内容を「+1」してE0に記憶する。次
に、ステツプS25においてE0の内容「4」をアド
レス制御部のアドレスレジスタADのAD0、1桁に、
BB4,5の内容「3」をAD2,3に転送する。 If the result of this calculation is "0", step S38 ;
If it is "1", the process branches to step S33 , and if it is greater than "1", the process branches to step S24 . In step S23 , the digit where the flag is raised on the starting day in the set date memory for March is compared with the digit where the flag is raised on the day after the predetermined period of "14 days" has elapsed. In this case, “C 0 −A 0 ”
Since the content of is 4, proceed to step S24 . In this step S24 , the contents of A0 specifying the digit of the second RAM 16 are incremented by "+1" and stored in E0 . Next, in step S25 , the content "4" of E0 is set to AD0 , 1 digit of the address register AD of the address control section.
Transfer the content "3" of BB 4,5 to AD 2,3 .
このアドレスレジスタAD0,1の内容により行指
定を行なう。そして、ステツプS26において
“1111”(10進数の「15」)がADの内容「0304」
でアドレス修飾される第2のRAM16の3月の
設定日記憶域M3の4桁目に記憶される。次に、
ステツプS27においてE0の内容が「+1」される。
次に、ステツプS28においてE0の内容と「8」が
比較される。ここで、この「8」は第2のRAM
16内最大桁数を示している。つまり、1桁を4
ビツト構成としているので8桁あれば、「1日」
〜「31日」の日付に対する情報を記憶するこがで
きる。上記ステツプS23において「E0=8」と判
定されるとステツプS29においてB4,5の内容を+
1してE1,2に転送し月を「+1月」進める。さら
に、ステツプS30においてE0に「0」が記憶され
る。一方、前記ステツプS28おいて「E0≠8」と
判定されるとステツプS31へ進む。そして、ステ
ツプS31においてE1,2に記憶される月情報とD4,5に
記憶される期間設定の最後日の属する月情報とか
比較される。この場合、設定される期間は3月16
日から3月29日であるので、ステツプS32へ進む。
そして、このステツプS32においてE0とC0に記憶
されている各月ごとの設定日記憶領域の桁数が比
較される。この場合E0とC0の内容は等しくない
と判断される。そして、ステツプS25→S26→S27
→S28→S31→S32→S25→S26→S27→S28→SS31→
S32→の処理をE0=C0になるまで繰り返して3月
の設定日記憶領域M3内の4ないし6桁目に
“1111”か記憶される(第4図F)。次に、ステツ
プS23においてC0−A0=1と判断された場合及び
ステツプS32においてE0=C0と判定された場合は
ステツプS33へ進む。そして、ステツプS33におい
て詳細を第6図において後述する桁指定サブルー
チンが実行される。 Row designation is performed based on the contents of address registers AD0,1 . Then, in step S26 , "1111" (decimal number "15") is changed to the AD content "0304".
The setting date for March is stored in the fourth digit of the memory area M3 of the second RAM 16 whose address is modified by . next,
In step S27 , the contents of E0 are incremented by "+1".
Next, in step S28 , the contents of E0 and "8" are compared. Here, this "8" is the second RAM
It shows the maximum number of digits within 16. In other words, one digit is 4
Since it is a bit structure, if there are 8 digits, it is "1 day".
~Can store information for the date "31st". If it is determined that "E 0 = 8" in step S23 , the contents of B4,5 are added to + in step S29 .
1 and transfer to E 1,2 and advance the month by "+1 month". Further, in step S30 , " 0 " is stored in E0. On the other hand, if it is determined in step S28 that "E 0 ≠8", the process advances to step S31 . Then, in step S31 , the month information stored in E1,2 is compared with the month information stored in D4,5 , which belongs to the last day of the period setting. In this case, the period set is March 16
Since it is March 29th, proceed to step S32 .
Then, in step S32 , the number of digits in the set date storage areas for each month stored in E0 and C0 are compared. In this case, it is determined that the contents of E 0 and C 0 are not equal. Then step S 25 →S 26 →S 27
→S 28 →S 31 →S 32 →S 25 →S 26 →S 27 →S 28 →SS 31 →
The process of S 32 → is repeated until E 0 =C 0 , and “1111” is stored in the 4th to 6th digits in the set date storage area M 3 for March (FIG. 4F). Next, if it is determined in step S23 that C 0 -A 0 =1, or if it is determined that E 0 =C 0 in step S32 , the process advances to step S33 . Then, in step S33 , a digit designation subroutine whose details will be described later in FIG. 6 is executed.
この桁指定サブルーチンでは、Aレジスタの
A2桁及びCレジスタのC2桁の内容に所定数を加
算する。次に、ステツプS34において期間終了の
日の属する桁を指定する。C0の内容「7」が
AD0,1に、期間の属する月を指定するD4,5の内容
「3」がAD2,3に記憶される。次に、ステツプS35
においてC2に記憶されている「1」とアドレス
レジスタADで指定される第2のRAM16の所
定領域(M3の7桁目)とのオア加算がとられる。
次に、ステツプS36において期間の最初の日の属
する桁を指定するA0の内容「3」がAD0,1に、期
間の属する月を指定するB4,5の内容「3」が
AD2,3に記憶される。次に、ステツプS37において
A2に記憶されている「8」とアドレスレジスタ
ADで指定されている第2のRAM16の所定領
域(M3の3桁目)とがオア加算される。(第4図
)一方、前記ステツプS23においてC0−A0=0
と判断され設定期間の最初の日と最後の日が設定
日記憶領域(第2のRAM16のM1〜M12)内の
同一桁に位置する場合はステツプS38へ進む。上
記ステツプS38において第6図において後述する
桁指定サブルーチンが実行される。そして、ス
テツプS39において上記桁指定サブルーチンより
出力されるA2とC2とのオア加算がとられ、その
結果がA2に記憶される。その後、ステツプS36及
びS37の処理が実行され、処理を終了する。 In this digit specification subroutine, the A register
Add a predetermined number to the contents of the A 2 digits and the C 2 digits of the C register. Next, in step S34 , the digit to which the end of the period belongs is specified. The content of C 0 is “7”
In AD 0,1 , the content "3" of D 4,5 , which specifies the month to which the period belongs, is stored in AD 2,3 . Next, step S 35
In this step, an OR operation is performed between "1" stored in C2 and a predetermined area (7th digit of M3 ) of the second RAM 16 specified by the address register AD.
Next, in step S36 , the content "3" of A 0 , which specifies the digit to which the first day of the period belongs, is set to AD 0,1 , and the content "3" of B 4,5 , which specifies the month to which the period belongs, is set to AD 0,1.
Stored in AD 2,3 . Next, in step S37
"8" stored in A 2 and address register
A predetermined area of the second RAM 16 (third digit of M3 ) specified by AD is OR-added. (Fig. 4) On the other hand, in step S23 , C 0 −A 0 =0
If it is determined that the first day and the last day of the setting period are located in the same digit in the setting date storage area (M 1 to M 12 of the second RAM 16), the process advances to step S38 . In step S38 , a digit designation subroutine, which will be described later in FIG. 6, is executed. Then, in step S39 , A2 and C2 output from the digit designation subroutine are OR-added, and the result is stored in A2 . Thereafter, steps S36 and S37 are executed, and the process ends.
次に、第5図のフローチヤートを用いて桁指定
サブルーチンの動作を説明する。上記桁指定サブ
ルーチンが呼び出されると、ステツプS41におい
てF3,4に記憶されている日付が「4」で除算さ
れ、商がF0に、余りがF1にに記憶される。次に、
ステツプS42においてF1が「0」か判定される。
そして、F1=0の時はステツプS43において「F0
−1」がF0に記憶される。すなわち、S41の演算
で「余り」がない場合は、日にちが4の倍数であ
るから、指定すべき桁アドレス1桁ずれる。これ
を補正するためにF0を「−1」するものである。
例えば、日にちが「8日」の場合F0=2、F1=
0であり桁アドレスは2桁目になる。このままで
は第2のRAM16のM1〜M12の9〜12ビツト目
が指定されるが、「8日」に対応するのは8ビツ
ト目である。したがつて、1桁目が指定されなけ
ればならない。次に、ステツプS44においてF2に
「8」が記憶される。 Next, the operation of the digit designation subroutine will be explained using the flowchart shown in FIG. When the digit designation subroutine is called, the date stored in F3 and F4 is divided by "4" in step S41 , the quotient is stored in F0 , and the remainder is stored in F1 . next,
In step S42 , it is determined whether F1 is "0".
Then, when F 1 = 0 , "F 0
-1” is stored in F 0 . That is, if there is no "remainder" in the calculation in S41 , the date is a multiple of 4, so the digit address to be specified is shifted by one digit. In order to correct this, F 0 is set by "-1".
For example, if the date is "8th", F 0 = 2, F 1 =
It is 0 and the digit address is the second digit. As it is, the 9th to 12th bits of M 1 to M 12 of the second RAM 16 are designated, but the 8th bit corresponds to "8th day". Therefore, the first digit must be specified. Next, in step S44 , "8" is stored in F2 .
上記ステツプS42でF1≠0のときはステツプS45
が実行される。ステツプS45においてF1が「1」、
「2」、「3」か否か判定される。上記ステツプS45
においてF1=1と判断された場合にはステツプ
S46においてF2に1が記憶される。上記ステツプ
S45においてF1=2と判断された場合にはステツ
プS47においてF2に2が記憶される。さらに、上
記ステツプS45においてF1=3と判断された場合
にはステツプS48においてF2に4が記憶される。
以上のようにして桁指定サブルーチンにおいて入
力された日付に対する第2のRAM16の設定日
記憶領域(M1〜M12)内の桁アドレスがF0に、
当該桁内における数値がF2に記憶される。 If F 1 ≠ 0 in step S 42 above, step S 45
is executed. In step S45 , F 1 is "1",
It is determined whether it is "2" or "3". Step S 45 above
If it is determined that F 1 = 1 in
In S46 , 1 is stored in F2 . Above steps
If it is determined in S45 that F 1 =2, 2 is stored in F 2 in step S47 . Furthermore, if it is determined in step S45 that F 1 =3, 4 is stored in F 2 in step S48 .
The digit address in the set date storage area ( M1 to M12 ) of the second RAM 16 for the date input in the digit specification subroutine as described above is set to F0 ,
The numerical value within that digit is stored in F2 .
次に、第6図のフローチヤートを用いて桁指定
サブルーチンの処理を説明する。このサブルー
チンは設定期間の開始日の属する桁に書き込む数
値が記憶されたA2と設定期間の最終日の属する
桁に書き込む数値が記憶されたC2を入力として、
設定期間の開始日と最終日の間にフラグを立てる
ための処理を行なう。まず、ステツプS51におい
てA2か「8」か否か判定される。上記ステツプ
S51においてA2が「8」のときはステツプS56と分
岐されA21か「8」でないと判定されると、ステ
ツプS52に進む。上記ステツプS52において、A2=
1と判定されるとステツプS53においてA2に
「15」(“1111”)が記憶される。一方、ステツプ
S52において、A2=2と判定されるとステツプS54
においてA2に「14」(“1110”)が記憶される。ま
た、ステツプS52においてA2=4と判定されると
ステツプS55においてA2に「12」(“1100”)が記
憶される。そして、ステツプS51、S53ないしS55
の処理の後、ステツプS56へ進む。上記ステツプ
S56においてC2が「1」か否か判定される。そし
て、上記ステツプS56においてC2が「1」であれ
ば処理は終了し、C2が「1」でないと判断され
ると、ステツプS57へ進む。このステツプS57にお
いて、C2=2と判断されると、ステツプS58にお
いてC2に「3」(“0011”)が記憶される。また、
ステツプS57において、C2=4と判断されると、
ステツプS59においてC2に「7」(“0111”)が記憶
される。さらにまた、ステツプS60において、C2
=8と判断されるとステツプS60においてC2に
「15」(“1111”)が記憶される。そして、上記ステ
ツプS56、S58ないしS60の処理後フローチヤート
の処理は終了する。 Next, the processing of the digit designation subroutine will be explained using the flowchart shown in FIG. This subroutine takes as input A2, which stores the numerical value to be written in the digit that belongs to the start date of the setting period, and C2 , which stores the numerical value to write in the digit that belongs to the final day of the setting period,
Perform processing to set a flag between the start date and the last day of the set period. First, in step S51 , it is determined whether A2 or "8". Above steps
If A 2 is ``8'' in S 51 , the process branches to step S 56 , and if it is determined that A 21 is not ``8'', the process proceeds to step S 52 . In step S52 above, A 2 =
If it is determined to be 1, "15"("1111") is stored in A2 in step S53 . On the other hand, step
If it is determined in S52 that A 2 =2, the process proceeds to step S54.
"14"("1110") is stored in A2 . Furthermore, if it is determined in step S52 that A 2 =4, "12"("1100") is stored in A 2 in step S55 . and steps S 51 , S 53 to S 55
After processing, the process advances to step S56 . Above steps
In S56 , it is determined whether C2 is "1". Then, in step S56 , if C2 is "1", the process ends, and if it is determined that C2 is not "1", the process proceeds to step S57 . If it is determined in step S57 that C2 =2, "3"("0011") is stored in C2 in step S58 . Also,
In step S57 , if it is determined that C 2 =4,
In step S59 , "7"("0111") is stored in C2 . Furthermore, in step S 60 , C 2
If it is determined that =8, "15"("1111") is stored in C2 in step S60 . Then, after the steps S56 , S58 to S60 are processed, the process of the flowchart ends.
次に、第2のRAM16に記憶されているカレ
ンダを表示する場合の動作を第7図のフローチヤ
ートを用いて説明する。1980年3月のカレンダを
表示させる場合には、□1□9□8□0DATE□3
DATE CALEと順次キー入力すると、
第7図のフローチヤートの処理が実行される。ま
ず、ステツプS61においてT0〜7に記憶される置数
データ「198003」がB0〜5に転送される。次に、
ステツプS62においてB0〜5に記憶される年、月情
報より第1日曜日の日にちを演算し、当該日にち
をB8に記憶する。次に、ステツプS63においてB8
に記憶される第1日曜日の日にちを表示用バツフ
アHB8に記憶する。そして、ステツプS64におい
てカレンダを表示部に表示した場合における不要
な日を消去する処理を行う。ここにおいて、
B0〜5に記憶されている年、月情報より当月が小
の月の場合には、B9に「1」を記憶し、当月が
2月の場合には、B9に「7」を記憶し、当月が
うるう年の2月の場合には、B9に「3」を記憶
する。次に、ステツプS65においてB9を表示用バ
ツフアHB9に記憶する。次に、ステツプS66にお
いてS6〜9に記憶されている第2のRAMに記憶さ
れているカレンダの年とB2〜5に記憶されている
表示部に表示させる年とが比較される。上記ステ
ツプS66において両者が等しいと判定されると、
ステツプS69においてB0,1に記憶されている月
「3」がAD2,3に記憶される。次に、ステツプS68
においてAD2,3でアドレス修飾される第2の
RAM16上の3月の設定日記憶域M3の内容が表
示用バツフアのHB0〜7に転送される。一方、前記
ステツプS66において両者が等しくないと判断さ
れると、表示は行われない。一方、前記ステツプ
S66において両者が等しいと判断されると表示用
バツフアHB0〜7の内容に従つて第8図のように
1980年3月のカレンダが表示される。第8図にお
いて各日にちはマトリクス状に配列され、各列毎
に日曜日表示体21が設定されている。そして各
日にちの下には特定日表示用セグメント22が配
置される。また、29、30、31日は不要な月にはマ
スク体23によりマスクされて表示されないよう
になつている。そして、前記表示用バツフア
HB8の内容に従つて日曜日表示体21が表示さ
れ、第2のRAM16に予め設定されている期間
3月16日〜29日の日にちの特定日表示用セグメン
ト22が表示される。 Next, the operation for displaying the calendar stored in the second RAM 16 will be explained using the flowchart shown in FIG. To display the calendar for March 1980, □1□9□8□0DATE□3
If you enter DATE CALE in sequence,
The processing in the flowchart of FIG. 7 is executed. First, in step S61 , the numeric data "198003" stored in T0-7 is transferred to B0-5 . next,
In step S62 , the date of the first Sunday is calculated from the year and month information stored in B0 to B5 , and the date is stored in B8 . Then, in step S 63 , B 8
The date of the first Sunday stored in is stored in the display buffer HB 8 . Then, in step S64 , unnecessary days when the calendar is displayed on the display section are deleted. put it here,
If the current month is a smaller month than the year and month information stored in B 0 to B 5 , "1" is stored in B 9 , and if the current month is February, "7" is stored in B 9 . If the current month is February of a leap year, "3" is stored in B9 . Next, in step S65 , B9 is stored in the display buffer HB9 . Next, in step S66 , the year of the calendar stored in the second RAM stored in S6-9 is compared with the year displayed on the display section stored in B2-5 . If it is determined in step S66 that the two are equal,
At step S69 , the month "3" stored in B 0,1 is stored in AD 2,3 . Next, step S 68
The second address qualified with AD 2,3 in
The contents of the March setting date storage area M3 on the RAM 16 are transferred to display buffers HB0 to HB7 . On the other hand, if it is determined in step S66 that the two are not equal, no display is performed. On the other hand, the step
If it is determined in S66 that the two are equal, the display buffer HB 0 to HB 0 to 7 will be displayed as shown in Figure 8.
The calendar for March 1980 will be displayed. In FIG. 8, the dates are arranged in a matrix, and a Sunday indicator 21 is set for each column. A specific day display segment 22 is arranged below each date. Additionally, the 29th, 30th, and 31st are masked by a mask body 23 so that they are not displayed in unnecessary months. Then, the display buffer
A Sunday display 21 is displayed according to the contents of HB 8 , and specific day display segments 22 for dates from March 16th to March 29th, which are preset in the second RAM 16, are displayed.
なお、期間を入力する場合には起算日より以前
の期間を入力してもよいことは勿論である。 Note that when inputting a period, it is of course possible to input a period earlier than the starting date.
また、実施例では起算日と日数データにより日
付データを順次算出したが、これに限らず、起算
日の日付データと日数データを記憶してもよい。 Further, in the embodiment, the date data is calculated sequentially using the starting date and number of days data, but the present invention is not limited to this, and date data and number of days data of the starting date may be stored.
以上、詳述したようにこの発明によれば起算日
の日付データと日数データを入力するだけでこの
期間内の日付を順次算出して記憶することができ
るので、期間の設定を簡単に行なうことができる
カレンダ表示装置を提供することができる。 As described in detail above, according to the present invention, by simply inputting the date data and the number of days data of the starting date, the dates within this period can be calculated and stored in sequence, making it easy to set the period. It is possible to provide a calendar display device that can perform
図面はこの発明の一実施例を示すもので、第1
図は電子式卓上計算機の全体のシステム構成図、
第2図Aは第1図における第1のRAM15内の
構成を示す図、第2図Bは第1図における第2の
RAM16の構成を示す図、第3図は動作を説明
するためのフローチヤート、第4図Aないしは
各レジスタ及び設定日記憶領域の状態を示す図、
第5図は桁指定サブルーチンを示すフローチヤ
ート、第6図は桁指定サブルーチンを示すフロ
ーチヤート、第7図は表示処理を行なうフローチ
ヤート、第8図はカレンダ表示を示す図である。
11……キー入力部、11a……DATEキー、
11b……CALEキー、12……ROM、13…
…アドレス制御部、15……第1のRAM、16
……第2のRAM。
The drawings show one embodiment of the invention.
The figure shows the overall system configuration of an electronic desk calculator.
2A is a diagram showing the internal configuration of the first RAM 15 in FIG. 1, and FIG. 2B is a diagram showing the internal configuration of the first RAM 15 in FIG.
A diagram showing the configuration of the RAM 16, FIG. 3 is a flowchart for explaining the operation, and FIG. 4 is a diagram showing the states of A or each register and setting date storage area.
FIG. 5 is a flowchart showing a digit designation subroutine, FIG. 6 is a flowchart showing a digit designation subroutine, FIG. 7 is a flowchart for display processing, and FIG. 8 is a diagram showing a calendar display. 11...Key input section, 11a...DATE key,
11b...CALE key, 12...ROM, 13...
...Address control unit, 15...First RAM, 16
...Second RAM.
Claims (1)
めの1ないし31の日付が表示可能な表示手段と、
起算日としての所望の月、日データ及び上記起算
日からの所定期間を表わす日数データを入力する
入力手段と、この入力手段から入力された起算日
及び日数データに基づき、上記起算日から上記日
数データの経過までの期間の日付を算出する演算
手段と、この演算手段により算出された各日付を
特定日として記憶する記憶手段と、この記憶手段
に記憶されている特定日情報に基づいて上記表示
手段に表示されている日付に対し特定日であるこ
とを示す表示を行う表示制御手段とを具備したこ
とを特徴とするカレンダ表示装置。1. A display means capable of displaying 1 to 31 dates for displaying at least one month's calendar;
An input means for inputting desired month and day data as the starting date and number of days data representing a predetermined period from the above starting date, and based on the starting date and number of days data input from this input means, the above number of days from the above starting date. A calculation means for calculating the dates of the period up to the elapse of the data, a storage means for storing each date calculated by the calculation means as a specific date, and the above display based on the specific date information stored in the storage means. 1. A calendar display device comprising display control means for displaying that the date displayed on the means is a specific day.
Priority Applications (5)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7633180A JPS573077A (en) | 1980-06-06 | 1980-06-06 | Term setting system |
| GB8116422A GB2077465B (en) | 1980-06-06 | 1981-05-29 | Compact electronic device having calendar function |
| US06/268,796 US4415271A (en) | 1980-06-06 | 1981-06-01 | Compact electronic device having calendar function |
| DE3122495A DE3122495C2 (en) | 1980-06-06 | 1981-06-05 | Compact electronic device with calendar function |
| HK711/89A HK71189A (en) | 1980-06-06 | 1989-09-07 | Compact electronic device having calendar function |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7633180A JPS573077A (en) | 1980-06-06 | 1980-06-06 | Term setting system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS573077A JPS573077A (en) | 1982-01-08 |
| JPH0133794B2 true JPH0133794B2 (en) | 1989-07-14 |
Family
ID=13602363
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP7633180A Granted JPS573077A (en) | 1980-06-06 | 1980-06-06 | Term setting system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS573077A (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS59166891A (en) * | 1983-03-14 | 1984-09-20 | Sanyo Electric Co Ltd | Display device |
| JP2648091B2 (en) * | 1994-06-21 | 1997-08-27 | 日本電気アイシーマイコンシステム株式会社 | Input circuit |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS53144375A (en) * | 1977-05-20 | 1978-12-15 | Omron Tateisi Electronics Co | Timer setting system |
-
1980
- 1980-06-06 JP JP7633180A patent/JPS573077A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS573077A (en) | 1982-01-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4385291A (en) | Electronic diary watch | |
| EP0369829B1 (en) | Information searching apparatus | |
| US4751668A (en) | Portable electronic memorandum device | |
| JPS6367158B2 (en) | ||
| JPH0133794B2 (en) | ||
| US4361874A (en) | Schedule table printing apparatus | |
| JPS63113664A (en) | Schedule storage display device | |
| JPS6232432B2 (en) | ||
| JPS6158860B2 (en) | ||
| JP3328815B2 (en) | Timetable display device and timetable display control method | |
| JPS5851330A (en) | Character processor | |
| JP2615552B2 (en) | Data storage device | |
| JPS6040066B2 (en) | Calendar information display method | |
| JPH0926939A (en) | Display device | |
| JPH0727881A (en) | Clock device with summer time switching function | |
| JPH0615313Y2 (en) | Data storage device | |
| JPS61230075A (en) | Miniature electronic apparatus provided with time data storage function | |
| JPS6232431B2 (en) | ||
| JP2596379B2 (en) | Schedule output device | |
| JPS6367157B2 (en) | ||
| JPH0731659B2 (en) | Data storage | |
| JPS62138927A (en) | data storage device | |
| JPH0214745B2 (en) | ||
| JPS5916306B2 (en) | calculator | |
| JPH0413732Y2 (en) |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 19891226 |