- Timestamp:
- 11/12/2017 04:56:25 PM (7 years ago)
- Branches:
- master
- Children:
- 2a87ef3
- Parents:
- f537c48
- Location:
- ram
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ram/stmproc.c
rf537c48 r6f49665 38 38 #endif 39 39 40 uint16_tdtfree; /* defent free list index */41 uint16_tptfree; /* patch free list index */42 43 uint16_tdpepred; /* defent predecessor index */44 uint16_tdpecpos; /* current defent index */45 uint16_tdpesucc; /* defent successor index */46 47 int8_t ptdsbuf[50];/* patch display build buffer */48 49 int 8_t defptr[NDEFSTMS];/* definition index table */50 int 8_t stmptr[NDEFSTMS];/* stimulus index table */40 int16_t dtfree; /* defent free list index */ 41 int16_t ptfree; /* patch free list index */ 42 43 int16_t dpepred; /* defent predecessor index */ 44 int16_t dpecpos; /* current defent index */ 45 int16_t dpesucc; /* defent successor index */ 46 47 int8_t ptdsbuf[50]; /* patch display build buffer */ 48 49 int16_t defptr[NDEFSTMS]; /* definition index table */ 50 int16_t stmptr[NDEFSTMS]; /* stimulus index table */ 51 51 52 52 struct defent defents[RAWDEFS]; /* definition control table */ … … 58 58 uint16_t ptewrds[NPTEQELS]; /* patch trigger fifo entries */ 59 59 60 int8_t dmatch[] = {/* addat1 match tags */60 uint8_t dmatch[] = { /* addat1 match tags */ 61 61 62 62 0, 0, 0, 0, 0, 0, 0, 0, /* 0 .. 7 */ … … 74 74 void initpt(void) 75 75 { 76 register uint16_t i;76 int16_t i; 77 77 78 78 /* initialize the trigger fifo */ … … 110 110 */ 111 111 112 uint16_t pt_alc(void)113 { 114 register uint16_t pe;112 int16_t pt_alc(void) 113 { 114 int16_t pe; 115 115 116 116 if (0 NE (pe = ptfree)) … … 126 126 */ 127 127 128 void pt_del( uint16_t pe)128 void pt_del(int16_t pe) 129 129 { 130 130 patches[pe].nextstm = ptfree; … … 138 138 */ 139 139 140 uint16_t dt_alc(void)141 { 142 register uint16_t de;140 int16_t dt_alc(void) 141 { 142 int16_t de; 143 143 144 144 if (0 NE (de = dtfree)) … … 154 154 */ 155 155 156 void dt_del( uint16_t de)156 void dt_del(int16_t de) 157 157 { 158 158 defents[de].nextdef = dtfree; … … 171 171 */ 172 172 173 int16_t cprdpe( uint16_t np)173 int16_t cprdpe(int16_t np) 174 174 { 175 175 register uint16_t ca, cb, ct; … … 230 230 int16_t finddpe(void) 231 231 { 232 register uint16_t c, idef;232 int16_t c, idef; 233 233 234 234 dpepred = 0; /* initialize dpepred = 0 (no predecessor) */ … … 316 316 */ 317 317 318 int16_t cprpte( uint16_t np)318 int16_t cprpte(int16_t np) 319 319 { 320 320 register uint16_t ca, cb, ct; … … 382 382 int16_t findpte(void) 383 383 { 384 register uint16_t c, istim;384 int16_t c, istim; 385 385 386 386 ptepred = 0; /* initialize ptepred = 0 (no predecessor) */ … … 703 703 */ 704 704 705 void dpte(int16_t pe, int16_t row, int16_t atr)705 void dpte(int16_t pe, int16_t row, uint16_t atr) 706 706 { 707 707 register int16_t i; … … 962 962 void stmproc(uint16_t trg) 963 963 { 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; 967 968 uint16_t addat1, adrtag; 968 969 -
ram/stmproc.x
rf537c48 r6f49665 18 18 19 19 extern struct defent defents[RAWDEFS]; 20 extern int 8_t defptr[NDEFSTMS];21 extern int8_t dmatch[];22 extern uint16_tdpecpos;23 extern uint16_tdpepred;24 extern uint16_tdpesucc;25 extern uint16_tdtfree;20 extern int16_t defptr[NDEFSTMS]; 21 extern uint8_t dmatch[]; 22 extern int16_t dpecpos; 23 extern int16_t dpepred; 24 extern int16_t dpesucc; 25 extern int16_t dtfree; 26 26 extern struct patch patches[MAXPATCH]; 27 27 extern int8_t ptdsbuf[50]; 28 28 extern struct wordq ptefifo; 29 29 extern uint16_t ptewrds[NPTEQELS]; 30 extern uint16_tptfree;31 extern int 8_t stmptr[NDEFSTMS];30 extern int16_t ptfree; 31 extern int16_t stmptr[NDEFSTMS]; 32 32 33 33 /* … … 37 37 */ 38 38 39 extern int16_t cprdpe( uint16_t np);40 extern int16_t cprpte( uint16_t np);41 extern void dpte(int16_t pe, int16_t row, int16_t atr);39 extern int16_t cprdpe(int16_t np); 40 extern int16_t cprpte(int16_t np); 41 extern void dpte(int16_t pe, int16_t row, uint16_t atr); 42 42 extern void dptw(void); 43 extern uint16_tdt_alc(void);44 extern void dt_del( uint16_t de);43 extern int16_t dt_alc(void); 44 extern void dt_del(int16_t de); 45 45 extern void entrpte(void); 46 46 extern int16_t find1st(void); … … 50 50 extern int16_t findpte(void); 51 51 extern void initpt(void); 52 extern uint16_tpt_alc(void);53 extern void pt_del( uint16_t pe);52 extern int16_t pt_alc(void); 53 extern void pt_del(int16_t pe); 54 54 extern void srdspte(void); 55 55 extern void stmproc(uint16_t trg);
Note:
See TracChangeset
for help on using the changeset viewer.