Changeset 7258c6a in buchla-68k for ram/stmproc.c
- Timestamp:
- 07/09/2017 04:45:34 PM (7 years ago)
- Branches:
- master
- Children:
- 8618599
- Parents:
- 0292fbb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ram/stmproc.c
r0292fbb r7258c6a 24 24 #include "ptdisp.h" 25 25 26 extern short ptegood, ptedfok, ptestok, ptedsok, ptedtok;27 28 extern short ptedef, ptestm, ptespec, ptesuba, ptedat1;29 30 extern short pteset;31 32 extern short ptecpos, ptepred, ptesucc;26 extern int16_t ptegood, ptedfok, ptestok, ptedsok, ptedtok; 27 28 extern int16_t ptedef, ptestm, ptespec, ptesuba, ptedat1; 29 30 extern int16_t pteset; 31 32 extern int16_t ptecpos, ptepred, ptesucc; 33 33 34 34 extern struct patch ptebuf; 35 35 36 extern charptdebuf[];36 extern int8_t ptdebuf[]; 37 37 38 38 #if DEBUGDP … … 62 62 #endif 63 63 64 u nsigned short dtfree; /* defent free list index */65 u nsigned short ptfree; /* patch free list index */66 67 u nsigned short dpepred; /* defent predecessor index */68 u nsigned short dpecpos; /* current defent index */69 u nsigned short dpesucc; /* defent successor index */70 71 charptdsbuf[50]; /* patch display build buffer */72 73 chardefptr[NDEFSTMS]; /* definition index table */74 charstmptr[NDEFSTMS]; /* stimulus index table */64 uint16_t dtfree; /* defent free list index */ 65 uint16_t ptfree; /* patch free list index */ 66 67 uint16_t dpepred; /* defent predecessor index */ 68 uint16_t dpecpos; /* current defent index */ 69 uint16_t dpesucc; /* defent successor index */ 70 71 int8_t ptdsbuf[50]; /* patch display build buffer */ 72 73 int8_t defptr[NDEFSTMS]; /* definition index table */ 74 int8_t stmptr[NDEFSTMS]; /* stimulus index table */ 75 75 76 76 struct defent defents[RAWDEFS]; /* definition control table */ … … 80 80 struct wordq ptefifo; /* patch trigger fifo header */ 81 81 82 u nsigned short ptewrds[NPTEQELS]; /* patch trigger fifo entries */83 84 chardmatch[] = { /* addat1 match tags */82 uint16_t ptewrds[NPTEQELS]; /* patch trigger fifo entries */ 83 84 int8_t dmatch[] = { /* addat1 match tags */ 85 85 86 86 0, 0, 0, 0, 0, 0, 0, 0, /* 0 .. 7 */ … … 102 102 void initpt(void) 103 103 { 104 register u nsigned short i;104 register uint16_t i; 105 105 106 106 /* initialize the trigger fifo */ … … 142 142 */ 143 143 144 u nsigned short pt_alc(void)145 { 146 register u nsigned short pe;144 uint16_t pt_alc(void) 145 { 146 register uint16_t pe; 147 147 148 148 if (0 NE (pe = ptfree)) … … 158 158 */ 159 159 160 void pt_del(u nsigned short pe)160 void pt_del(uint16_t pe) 161 161 { 162 162 patches[pe].nextstm = ptfree; … … 174 174 */ 175 175 176 u nsigned short dt_alc(void)177 { 178 register u nsigned short de;176 uint16_t dt_alc(void) 177 { 178 register uint16_t de; 179 179 180 180 if (0 NE (de = dtfree)) … … 190 190 */ 191 191 192 void dt_del(u nsigned short de)192 void dt_del(uint16_t de) 193 193 { 194 194 defents[de].nextdef = dtfree; … … 211 211 */ 212 212 213 short cprdpe(unsigned short np)214 { 215 register u nsigned short ca, cb, ct;213 int16_t cprdpe(uint16_t np) 214 { 215 register uint16_t ca, cb, ct; 216 216 register struct defent *pp; 217 217 … … 274 274 */ 275 275 276 short finddpe(void)277 { 278 register u nsigned short c, idef;276 int16_t finddpe(void) 277 { 278 register uint16_t c, idef; 279 279 280 280 dpepred = 0; /* initialize dpepred = 0 (no predecessor) */ … … 370 370 */ 371 371 372 short cprpte(unsigned short np)373 { 374 register u nsigned short ca, cb, ct;372 int16_t cprpte(uint16_t np) 373 { 374 register uint16_t ca, cb, ct; 375 375 register struct patch *pb, *pp; 376 376 … … 440 440 */ 441 441 442 short findpte(void)443 { 444 register u nsigned short c, istim;442 int16_t findpte(void) 443 { 444 register uint16_t c, istim; 445 445 446 446 ptepred = 0; /* initialize ptepred = 0 (no predecessor) */ … … 533 533 void entrpte(void) 534 534 { 535 register short c;536 register u nsigned short np, stim;535 register int16_t c; 536 register uint16_t np, stim; 537 537 538 538 ptegood = ptedfok AND ptestok AND ptedsok AND ptedtok; … … 711 711 */ 712 712 713 short find1st(void)714 { 715 register short cp, pp;713 int16_t find1st(void) 714 { 715 register int16_t cp, pp; 716 716 717 717 for (cp = 0; cp < NDEFSTMS; cp++) … … 728 728 */ 729 729 730 short findnxt(short cp)731 { 732 register short np, stim;730 int16_t findnxt(int16_t cp) 731 { 732 register int16_t np, stim; 733 733 734 734 if (0 NE (np = patches[cp].nextstm)) … … 754 754 */ 755 755 756 short findprv(short cp)757 { 758 register short np, pp, stim;756 int16_t findprv(int16_t cp) 757 { 758 register int16_t np, pp, stim; 759 759 760 760 if (0 NE (np = patches[cp].prevstm)) /* return prevstm if set */ … … 789 789 */ 790 790 791 void dpte( short pe, short row, short atr)792 { 793 register short i;791 void dpte(int16_t pe, int16_t row, int16_t atr) 792 { 793 register int16_t i; 794 794 795 795 memset(ptdsbuf, ' ', 50); … … 824 824 void dptw(void) 825 825 { 826 register short cp, r, row, pp;826 register int16_t cp, r, row, pp; 827 827 828 828 #if DEBUGDP … … 979 979 void srdspte(void) 980 980 { 981 short oldcpos, oldpred, oldsucc;981 int16_t oldcpos, oldpred, oldsucc; 982 982 #if DEBUGSR 983 983 register short i; … … 1064 1064 */ 1065 1065 1066 void stmproc(u nsigned short trg)1066 void stmproc(uint16_t trg) 1067 1067 { 1068 1068 register struct defent *nextdef; 1069 1069 register struct patch *nextpch; 1070 register u nsigned short adspec, adsuba, np, stim;1071 u nsigned short addat1, adrtag;1070 register uint16_t adspec, adsuba, np, stim; 1071 uint16_t addat1, adrtag; 1072 1072 1073 1073 /* ***** DEFINER PROCESSING PHASE ***** */
Note:
See TracChangeset
for help on using the changeset viewer.