Changeset 7258c6a in buchla-68k for ram/ptdkey.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/ptdkey.c
r0292fbb r7258c6a 43 43 #endif 44 44 45 extern short asig, astat;46 47 extern u nsigned short dpepred, dpecpos, dpesucc;48 49 extern short ptegood, ptedfok, ptestok, ptedsok, ptedtok;50 51 extern short ptedef, ptestm, ptespec, ptesuba, ptedat1, ptedat2;52 53 extern short ptedftp, ptedfst, ptedest, ptedata;54 55 extern short pteset, ptbflag, ptemenu;56 57 extern short ptepred, ptecpos, ptesucc;58 59 extern short stccol, stcrow;60 61 extern charptdebuf[50];45 extern int16_t asig, astat; 46 47 extern uint16_t dpepred, dpecpos, dpesucc; 48 49 extern int16_t ptegood, ptedfok, ptestok, ptedsok, ptedtok; 50 51 extern int16_t ptedef, ptestm, ptespec, ptesuba, ptedat1, ptedat2; 52 53 extern int16_t ptedftp, ptedfst, ptedest, ptedata; 54 55 extern int16_t pteset, ptbflag, ptemenu; 56 57 extern int16_t ptepred, ptecpos, ptesucc; 58 59 extern int16_t stccol, stcrow; 60 61 extern int8_t ptdebuf[50]; 62 62 63 63 extern struct patch ptebuf; … … 67 67 */ 68 68 69 short dsdecol[5][2][2] = { /* destination data entry column table */69 int16_t dsdecol[5][2][2] = { /* destination data entry column table */ 70 70 71 71 6, 8, 19, 21, /* 0 -- key, rel -- key number */ … … 76 76 }; 77 77 78 short des2fmt[] = { /* destination type to data entry format */78 int16_t des2fmt[] = { /* destination type to data entry format */ 79 79 80 80 -1, 0, 1, 2, 3, 4, 4, 5, … … 84 84 }; 85 85 86 short dtabl7[] = { 11, 1, 2, 3, 10 }; /* aux datum format table */87 88 short dtabl9[] = { 11, 1, 2, 3, 9 }; /* FPU datum format table */86 int16_t dtabl7[] = { 11, 1, 2, 3, 10 }; /* aux datum format table */ 87 88 int16_t dtabl9[] = { 11, 1, 2, 3, 9 }; /* FPU datum format table */ 89 89 90 90 /* … … 98 98 */ 99 99 100 void SnapPTV( char*s)100 void SnapPTV(int8_t *s) 101 101 { 102 register u nsigned short stim;103 register short i;104 chardbuf[50];102 register uint16_t stim; 103 register int16_t i; 104 int8_t dbuf[50]; 105 105 106 106 printf("\n%s(): called SnapPTV()\n", s); … … 266 266 void setptcv(void) 267 267 { 268 register u nsigned short spec;268 register uint16_t spec; 269 269 270 270 ptedest = des2fmt[spec = ptespec & PE_SPEC]; … … 358 358 void pte2buf(void) 359 359 { 360 register u nsigned short spec;360 register uint16_t spec; 361 361 362 362 memset(ptdebuf, ' ', 50); … … 424 424 */ 425 425 426 void ptde_ds( short n, short key)426 void ptde_ds(int16_t n, int16_t key) 427 427 { 428 register short chan, port, stim;429 charbuf[8], buf2[8];428 register int16_t chan, port, stim; 429 int8_t buf[8], buf2[8]; 430 430 431 431 if (n ? ptestok : ptedfok) { … … 559 559 */ 560 560 561 void ptdkey( short k)561 void ptdkey(int16_t k) 562 562 { 563 register short key, val, vg;564 charbuf[8];563 register int16_t key, val, vg; 564 int8_t buf[8]; 565 565 566 566 if (NOT astat) /* only do this on key closures */
Note:
See TracChangeset
for help on using the changeset viewer.