From:	Jnet%"EREZ@TAURUS"  8-AUG-1989 10:26:12.53
To:	bob peraino <PERAINO@GMUVAX>, Shawn Masters <SMASTERS@GMUVAX>
CC:	
Subj:	Scrollable Calendar.

Received: From AUVM(MAILER) by GMUVAX with Jnet id 8308
          for PERAINO@GMUVAX; Tue,  8 Aug 89 10:26 EDT
Received: by AUVM (Mailer R2.03B) id 8307; Tue, 08 Aug 89 10:24:57 EDT
Date:         Tue, 8 Aug 89 09:50:50 +0300
Reply-To:     erez@math.tau.ac.il
Sender:       HP-28 -  HP-28C and HP-28S Calculators <HP-28@NDSUVM1>
Comments:     If you have trouble reaching this host as math.tau.ac.il Please
              use the old address: user@taurus.bitnet
From:         EREZ@TAURUS
Subject:      Scrollable Calendar.
To:           bob peraino <PERAINO@GMUVAX>, Shawn Masters <SMASTERS@GMUVAX>
     
     
        Hello HP-28x users !
     
  I have new program that replace the DCAL program in the CLOCK package
The program sit in any directory under the TD (Time, Date) in my case
it's name is MCAL. There are 4 objects in the directory (in the current
version) : CAL PROCS KEYS LSDISP
     
The programs Use some other programs and they are :
1. KYS, Get key (with sound). ; Chksum [9CC3]
<< DO UNTIL KEY END DUP NUM 32 - 12 / 2 SWAP ^ 55 * .1 BEEP >>
   Or without music
<< DO UNTIL KEY END >>
     
2. MTHLST, The program from the CLOCK package.
        IF U DON'T HAVE IT IN THE CLOCK PACKAGE THEN U CAN'T    !!!!!!
        OPERATE THIS PROGRAM.                                   !!!!!!
     
CAL is the main and only user program it is used in the following way :
9.1989
CAL
     
        Gives the calendar of September 1989.
        Then there are 3 working Keys :
        1. UP scroll up.
        2. DOWN scroll down.
        3. SPACE to end the program.
     
CAL                             ; Chksum [EFCF]
<< MTHLST 0 SWAP 1
   LSDISP
   DO KYS
     IF KEYS SWAP POS
     DUP 0 <>
     THEN 'PROCS'
     SWAP GET EVAL
     ELSE DROP
     END LSDISP
  UNTIL 3 PICK
  END DROP DROP DROP
  CLMF
>>
     
PROCS
        Is a list of procedures that are called from CAL.
     
PROCS                           ; Chksum [665E]
{
<<
   IF DUP 2 >=
   THEN 1 -
   END
>>
<< 1 +
>>
<< ROT DROP 1 3 ROLLD
>> }
     
KEYS
        Is a list of "known" keys.
     
KEYS                            ; Chksum [4146]
{ "UP" "DOWN" " " }
     
LSDISP  Is the "LiSt DISPlay" program. Chksum [51C9]
<< DUP2 OVER SIZE -> l
i s
   <<
      IF i 3 + s >=
      THEN 1 - DUP 'i'
      STO
      END l i GET 1
      DISP l i 1 + GET 2
      DISP l i 2 + GET 3
      DISP l i 3 + GET 4
      DISP
   >>
>>
     
Well that's all. I'm sure that any one that saw the GEDIT programs
see here the same program structure. So that's right this is very useful
structure whenever there are some key input and some different procedure
to each key.
     
Have Good time with this programs.
     
Well I want to get some feedback from the NET about my programs and the usage
of them. So please any1 that use any program that I wrote, please send me
mail that says what program(s) Does he (she) use. :-)
     
        Thanks a lot & Bye Bye all.
     
                        Erez.
     
**********************************************************************
*   Strauss Erez.      Erez@Taurus    OR    Erez@Math.Tau.Ac.IL      *
*                                                                    *
*   Snail-mail : Strauss Erez, Mishmeret 45, Tel-Aviv 69694, Israel  *
*   Home phone : ... 972 3 424481                                    *
**********************************************************************
*   Make love Not War                                                *
**********************************************************************
