Changeset 6f49665 in buchla-68k for ram/stmproc.c


Ignore:
Timestamp:
11/12/2017 04:56:25 PM (6 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
2a87ef3
Parents:
f537c48
Message:

Fixed stmproc.c.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ram/stmproc.c

    rf537c48 r6f49665  
    3838#endif
    3939
    40 uint16_t        dtfree;                 /* defent free list index */
    41 uint16_t        ptfree;                 /* patch free list index */
    42 
    43 uint16_t        dpepred;                /* defent predecessor index */
    44 uint16_t        dpecpos;                /* current defent index */
    45 uint16_t        dpesucc;                /* defent successor index */
    46 
    47 int8_t  ptdsbuf[50];                    /* patch display build buffer */
    48 
    49 int8_t  defptr[NDEFSTMS];               /* definition index table */
    50 int8_t  stmptr[NDEFSTMS];               /* stimulus index table */
     40int16_t         dtfree;                 /* defent free list index */
     41int16_t         ptfree;                 /* patch free list index */
     42
     43int16_t         dpepred;                /* defent predecessor index */
     44int16_t         dpecpos;                /* current defent index */
     45int16_t         dpesucc;                /* defent successor index */
     46
     47int8_t          ptdsbuf[50];            /* patch display build buffer */
     48
     49int16_t         defptr[NDEFSTMS];       /* definition index table */
     50int16_t         stmptr[NDEFSTMS];       /* stimulus index table */
    5151
    5252struct  defent  defents[RAWDEFS];       /* definition control table */
     
    5858uint16_t        ptewrds[NPTEQELS];      /* patch trigger fifo entries */
    5959
    60 int8_t  dmatch[] = {                    /* addat1 match tags */
     60uint8_t         dmatch[] = {            /* addat1 match tags */
    6161
    6262        0, 0, 0, 0, 0, 0, 0, 0,         /*  0 ..  7 */
     
    7474void initpt(void)
    7575{
    76         register uint16_t i;
     76        int16_t i;
    7777
    7878        /* initialize the trigger fifo */
     
    110110*/
    111111
    112 uint16_t pt_alc(void)
    113 {
    114         register uint16_t pe;
     112int16_t pt_alc(void)
     113{
     114        int16_t pe;
    115115
    116116        if (0 NE (pe = ptfree))
     
    126126*/
    127127
    128 void pt_del(uint16_t pe)
     128void pt_del(int16_t pe)
    129129{
    130130        patches[pe].nextstm = ptfree;
     
    138138*/
    139139
    140 uint16_t dt_alc(void)
    141 {
    142         register uint16_t de;
     140int16_t dt_alc(void)
     141{
     142        int16_t de;
    143143
    144144        if (0 NE (de = dtfree))
     
    154154*/
    155155
    156 void dt_del(uint16_t de)
     156void dt_del(int16_t de)
    157157{
    158158        defents[de].nextdef = dtfree;
     
    171171*/
    172172
    173 int16_t cprdpe(uint16_t np)
     173int16_t cprdpe(int16_t np)
    174174{
    175175        register uint16_t ca, cb, ct;
     
    230230int16_t finddpe(void)
    231231{
    232         register uint16_t c, idef;
     232        int16_t c, idef;
    233233
    234234        dpepred = 0;            /* initialize dpepred = 0  (no predecessor) */
     
    316316*/
    317317
    318 int16_t cprpte(uint16_t np)
     318int16_t cprpte(int16_t np)
    319319{
    320320        register uint16_t ca, cb, ct;
     
    382382int16_t findpte(void)
    383383{
    384         register uint16_t c, istim;
     384        int16_t c, istim;
    385385
    386386        ptepred = 0;            /* initialize ptepred = 0  (no predecessor) */
     
    703703*/
    704704
    705 void dpte(int16_t pe, int16_t row, int16_t atr)
     705void dpte(int16_t pe, int16_t row, uint16_t atr)
    706706{
    707707        register int16_t i;
     
    962962void stmproc(uint16_t trg)
    963963{
    964         register struct defent  *nextdef;
    965         register struct patch   *nextpch;
    966         register uint16_t adspec, adsuba, np, stim;
     964        struct defent *nextdef;
     965        struct patch *nextpch;
     966        uint16_t adspec, adsuba, stim;
     967        int16_t np;
    967968        uint16_t addat1, adrtag;
    968969
Note: See TracChangeset for help on using the changeset viewer.