home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 200-299 / ff274.lzh / HP11 / ins.h < prev    next >
C/C++ Source or Header  |  1989-11-16  |  3KB  |  65 lines

  1. /* HP11 numeric limits */
  2. #define MAXHP11 9.999999999E99
  3. #define MINHP11 1E-99
  4. #define MAXFACT 69.95757445
  5.  
  6. /* The different type of sto operations. The order must reflect the ordering of
  7.   instruction codes in code.h */
  8. enum StoTypes {sto, add, sub, mul, div};
  9.  
  10. extern BOOL enabled, entering, overflow; /* Various flags related to the instructions */
  11.  
  12. /* Current entry value, used during number entry */
  13. extern BOOL expo, decpt; /* expo true for an exponent present, decpt true for decimal point */
  14. extern char strx[13], expx[4];
  15.  
  16. typedef void (*HP11Function)(void);
  17.  
  18. extern HP11Function insfunc[];
  19.  
  20. /* Function declarations */
  21. /* ===================== */
  22. double Check(double); /* Check the argument for HP11 limits (1e-99 --> 1e100),
  23.    return adjusted value if out of limits */
  24. void DISABLE(void); /* Disable stack */
  25. void ENABLE(void); /* Enable stack */
  26. void Enter(void); /* Do an "Enter" */
  27. #define NEUTRAL() { entering = FALSE; } /* Neutral operation, simply end
  28.  number entry */
  29.  
  30. /* Instructions */
  31. void FIX(int); /* set display mode to FIX n */
  32. void SCI(int);
  33. void ENG(int);
  34. void STO(int, enum StoTypes); /* Sto in reg n (0 <= n <= 21, with 20 = I, 21 = (i)),
  35.  with desired operation */
  36. void RCL(int); /* RCl, n same as for sto */
  37. void EnterNum(int); /* Add keycode to current number */
  38. void GTO(int); /* Goto label n (n = 0 to 9, A to E (10 to 14) or I (15) : indirection */
  39. void SF(int), CF(int), Set(int);
  40. void GSB(int); /* Call subprogram n (cf GTO) */
  41. void GTOLine(int); /* Jump to line in prog */
  42.  
  43. #ifdef ABS
  44. #undef ABS
  45. #endif
  46.  
  47. void Sqrt(void), Exp(void), Exp10(void), ExpYX(void), Invert(void),
  48.      Divide(void), SIN(void), COS(void), TAN(void), Times(void), Rdn(void),
  49.      ExgXY(void), ENTER(void), Minus(void), SigmaPlus(void), Plus(void),
  50.      Pi(void), ToRect(void), ClearSigma(void), ClearReg(void), Random(void),
  51.      DoPerm(void), ToHMS(void), ToRAD(void), FRAC(void), Fact(void),
  52.      Estimate(void), LinearRegression(void), Sqr(void), LN(void), LOG(void),
  53.      Percent(void), DeltaPercent(void), ABS(void), DEG(void), RAD(void),
  54.      GRAD(void), ArcSIN(void), ArcCOS(void), ArcTAN(void), ToPolar(void),
  55.      Rup(void), CLX(void), LSTX(void), DoComb(void), ToH(void), ToDEG(void),
  56.      INT(void), Mean(void), SDev(void), SigmaSub(void), HypSIN(void),
  57.      HypCOS(void), HypTAN(void), ArcHypSIN(void), ArcHypCOS(void),
  58.      ArcHypTAN(void), ExgXI(void), STORandom(void), RCLSigma(void), USER(void),
  59.      ProgarmEntry(void), RunStart(void), XleY(void), Xlt0(void),
  60.      DSE(void), ISG(void), XgtY(void), Xgt0(void), PSE(void), XneY(void),
  61.      Xne0(void), XeqY(void), Xeq0(void), RTN(void), SST(void), BST(void),
  62.      HP11ColdReset(void), MEM(void), PREFIX(void), RND(void), DoCHS(void),
  63.      DoPoint(void), DoEEX(void), ExgXInd(void), ProgramEntry(void);
  64.  
  65.