Changeset fa50076 in buchla-68k


Ignore:
Timestamp:
11/12/2017 07:08:44 PM (6 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
26553e2
Parents:
c93e44d
Message:

Fixed initi.c.

Files:
6 edited

Legend:

Unmodified
Added
Removed
  • include/instdsp.h

    rc93e44d rfa50076  
    124124struct  instpnt {       /* function point definition */
    125125
    126         int16_t iptim;          /* time (packed) */
    127         int16_t ipval;          /* value */
    128         int16_t ipvmlt;         /* value multiplier */
    129 
    130         int8_t  ipvsrc;         /* value source */
    131         int8_t  ipact;          /* action code */
     126        uint16_t        iptim;  /* time (packed) */
     127        int16_t         ipval;  /* value */
     128        int16_t         ipvmlt; /* value multiplier */
     129
     130        int8_t          ipvsrc; /* value source */
     131        int8_t          ipact;  /* action code */
    132132
    133133#define AC_NULL         0       /* null action */
     
    140140#define AC_UNDF         7       /* -- undefined - treated as AC_NULL -- */
    141141
    142         int8_t  ippar1;         /* action parameter 1  (point) */
    143         int8_t  ippar2;         /* action parameter 2  (count) */
    144 
    145         int8_t  ippar3;         /* action parameter 3  (counter) */
    146         int8_t  ippad;          /* padding for even boundary */
     142        int8_t          ippar1; /* action parameter 1  (point) */
     143        int8_t          ippar2; /* action parameter 2  (count) */
     144
     145        int8_t          ippar3; /* action parameter 3  (counter) */
     146        int8_t          ippad;  /* padding for even boundary */
    147147};
    148148
  • ram/etitim.c

    rc93e44d rfa50076  
    7272                subj, pecase, temin, tmpval, temax);
    7373#endif
    74         if (tmpval > (uint16_t)temax)
     74        if (tmpval > temax)
    7575                return(FAILURE);
    7676
    77         if (tmpval < (uint16_t)temin)
     77        if (tmpval < temin)
    7878                return(FAILURE);
    7979
  • ram/im700.c

    rc93e44d rfa50076  
    200200int16_t         tagslot;                /* tagged load slot */
    201201int16_t         tdnamsw;                /* tuning editor displaying typewriter */
    202 int16_t         temax;                  /* time upper limit */
    203 int16_t         temin;                  /* time lower limit */
     202uint16_t        temax;                  /* time upper limit */
     203uint16_t        temin;                  /* time lower limit */
    204204int16_t         testing;                /* test level */
    205205int16_t         tglclk;                 /* clock on/off toggle flag */
  • ram/im700.x

    rc93e44d rfa50076  
    314314extern  int16_t         tdnamsw;
    315315extern  struct  octent  *tdoct;
    316 extern  int16_t         temax;
    317 extern  int16_t         temin;
     316extern  uint16_t        temax;
     317extern  uint16_t        temin;
    318318extern  int16_t         testing;
    319319extern  int16_t         tglclk;
  • ram/initi.c

    rc93e44d rfa50076  
    5858*/
    5959
    60 int16_t segtime(int16_t pn, uint16_t ptime)
     60uint16_t segtime(int16_t pn, uint16_t ptime)
    6161{
    6262        register struct instpnt *pp;
     
    102102*/
    103103
    104 int16_t timeto(int16_t fn, int16_t pj)
     104uint16_t timeto(int16_t fn, int16_t pj)
    105105{
    106106        register struct instdef *ip;
    107107        register struct instpnt *pt;
    108         register int16_t tf, pm, pn;
     108        register int16_t pm, pn;
     109        uint16_t tf;
    109110
    110111        ip = &vbufs[curvce];
     
    423424void initi(struct instdef *ip)
    424425{
    425         register int16_t i, mintfpu, rb;
     426        int16_t i, rb;
     427        uint16_t mintfpu;
    426428
    427429        memsetw(ip, 0, sizeof (struct instdef) / 2);
     
    433435
    434436        ip->idhplft = NIPNTS - NFINST;
    435         ip->idhcfg = (initcfg >> 8) & 0x00FF;
     437        ip->idhcfg = (int8_t)((initcfg >> 8) & 0x00FF);
    436438        mintfpu = tofpu(1);
    437439
     
    442444                rb = ((i < 4) AND (i NE 0)) ? 0 : I_NRATIO;
    443445                ip->idhfnc[i].idfpif = 1;
    444                 ip->idhfnc[i].idfpt1 = i;
    445                 ip->idhfnc[i].idftmd = (I_TM_KEY | 0x0010) | rb;
     446                ip->idhfnc[i].idfpt1 = (int8_t)i;
     447                ip->idhfnc[i].idftmd = (int8_t)((I_TM_KEY | 0x0010) | rb);
    446448
    447449                /* initialize the first point in the function */
     
    453455        for (i = 0; i < NUMWPNT; i++) {
    454456
    455                 ip->idhwvaf[i] = (ip->idhwvao[i] = 0x8000 ^ ((i + 1) << 8));
    456                 ip->idhwvbf[i] = (ip->idhwvbo[i] = 0x8000 ^ ((i + 1) << 8));
     457                ip->idhwvaf[i] = (ip->idhwvao[i] = (int16_t)0x8000 ^ ((i + 1) << 8));
     458                ip->idhwvbf[i] = (ip->idhwvbo[i] = (int16_t)0x8000 ^ ((i + 1) << 8));
    457459        }
    458460}
  • ram/initi.x

    rc93e44d rfa50076  
    3434extern  void            newvce(int16_t voice);
    3535extern  void            pntsel(void);
    36 extern  int16_t         segtime(int16_t pn, uint16_t ptime);
     36extern  uint16_t        segtime(int16_t pn, uint16_t ptime);
    3737extern  int16_t         selpnt(void);
    3838extern  void            setinst(void);
    3939extern  void            setivce(int16_t voice);
    4040extern  void            setseg(int16_t pn, uint16_t ptime);
    41 extern  int16_t         timeto(int16_t fn, int16_t pj);
     41extern  uint16_t        timeto(int16_t fn, int16_t pj);
    4242extern  int16_t         ttox(uint16_t time, int16_t window);
    4343extern  int16_t         vtoy(int16_t val, int16_t window);
Note: See TracChangeset for help on using the changeset viewer.