Changeset 19caa64 in buchla-68k
- Timestamp:
- 11/12/2017 06:00:49 PM (7 years ago)
- Branches:
- master
- Children:
- 3f2d518
- Parents:
- 018d7ba
- Location:
- ram
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
ram/sqdisp.c
r018d7ba r19caa64 14 14 #endif 15 15 16 int16_t curslin;/* current sequence line */17 18 int8_t sqhead[] =16 int16_t curslin; /* current sequence line */ 17 18 int8_t sqhead[] = 19 19 20 20 "\260 Lin Time Action 1 Action 2 Action 3 \260 No Seq Rg T \260"; 21 21 22 int8_t *sqmcon[] = {22 int8_t *sqmcon[] = { 23 23 24 24 "\260 Key transient Trigger on Stop Set reg Value \260", … … 29 29 }; 30 30 31 int16_t seqpal[16][3] = {/* sequence display palette */31 int16_t seqpal[16][3] = { /* sequence display palette */ 32 32 33 33 {0, 0, 0}, /* 0 - black */ … … 49 49 }; 50 50 51 int16_t sqatype[] = { /* sequence action types by box number */51 uint16_t sqatype[] = { /* sequence action types by box number */ 52 52 53 53 SQ_NULL, /* " " 0 */ … … 71 71 }; 72 72 73 int8_t *sqdsptb[] = {/* sequence action display strings by action */73 int8_t *sqdsptb[] = { /* sequence action display strings by action */ 74 74 75 75 " ", /* SQ_NULL 0x0000 null action */ -
ram/sqdisp.x
r018d7ba r19caa64 17 17 extern int16_t curslin; 18 18 extern int16_t seqpal[16][3]; 19 extern int16_tsqatype[];19 extern uint16_t sqatype[]; 20 20 extern int8_t *sqdsptb[]; 21 21 extern int8_t sqhead[]; -
ram/sqselbx.c
r018d7ba r19caa64 22 22 struct seqent seqbuf; /* sequence line buffer */ 23 23 24 int8_t sqhilit[][8] = {/* submenu highlight table */24 int8_t sqhilit[][8] = { /* submenu highlight table */ 25 25 26 26 /* start, width, row1, row2, row3, row4, row5, pad */ … … 40 40 }; 41 41 42 int8_t sqopreq[] = { /* action needs operand type flag table */42 int8_t sqopreq[] = { /* action needs operand type flag table */ 43 43 44 44 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1 45 45 }; 46 46 47 int8_t nextact[] = { 24, 36, 6 }; /* next column after action entry */48 49 int16_t sqidata[] = { /* intial data by box */47 int8_t nextact[] = { 24, 36, 6 }; /* next column after action entry */ 48 49 uint16_t sqidata[] = { /* intial data by box */ 50 50 51 51 0x0000, /* " " 0 */ … … 69 69 }; 70 70 71 int8_t actcol[] = {/* action data entry column by action */71 int8_t actcol[] = { /* action data entry column by action */ 72 72 73 73 0, 3, 3, 3, 3, 9, 9, 9, 9, 5, 5, 5, 5, 10, 8, 3, 5 74 74 }; 75 75 76 int8_t sqvcol[] = { 9, 8, 9, 9 }; /* value entry column - type order */77 78 int8_t seqvcol[] = { 8, 8, 9, 9, 9 }; /* value entry column - box order */79 80 int16_t sqndata[] = {/* data types in box order */76 int8_t sqvcol[] = { 9, 8, 9, 9 }; /* value entry column - type order */ 77 78 int8_t seqvcol[] = { 8, 8, 9, 9, 9 }; /* value entry column - box order */ 79 80 uint16_t sqndata[] = { /* data types in box order */ 81 81 82 82 SQ_VAL, SQ_REG, SQ_VLT, SQ_RND … … 209 209 register int32_t ltemp; 210 210 register uint16_t *ap, *dp; 211 uint16_t theact, port, chan, key, val, obj, dtype;211 int16_t theact, port, chan, key, val, obj, dtype; 212 212 213 213 switch (action) { … … 260 260 } 261 261 262 key = ltemp - 1;262 key = (int16_t)(ltemp - 1); 263 263 264 264 i = sqdebuf[lcol + 7]; … … 287 287 } 288 288 289 chan = ltemp - 1; 290 *dp = (port << 11) | (chan << 7) | key; 289 chan = (int16_t)(ltemp - 1); 290 *dp = ((uint16_t)port << 11) | ((uint16_t)chan << 7) | 291 (uint16_t)key; 291 292 292 293 break; … … 305 306 } 306 307 307 *dp = ltemp - 1;308 *dp = (uint16_t)(ltemp - 1); 308 309 309 310 break; … … 323 324 ltemp = (ltemp * 10) + (sqdebuf[i] - '0'); 324 325 325 *dp = ltemp;326 *dp = (uint16_t)ltemp; 326 327 327 328 break; … … 344 345 } 345 346 346 obj = ltemp - 1;347 obj = (int16_t)(ltemp - 1); 347 348 348 349 switch (dtype) { … … 359 360 } 360 361 361 val = ltemp - 1;362 val = (int16_t)(ltemp - 1); 362 363 break; 363 364 … … 389 390 val |= 0x1000; 390 391 391 *ap = (*ap & SQ_MACT) | ( obj << 8);392 *dp = (*dp & SQ_MTYP) | val;392 *ap = (*ap & SQ_MACT) | ((uint16_t)obj << 8); 393 *dp = (*dp & SQ_MTYP) | (uint16_t)val; 393 394 394 395 break; … … 432 433 ltemp = (ltemp * 10) + (sqdebuf[i] - '0'); 433 434 434 curslin = ltemp;435 curslin = (int16_t)ltemp; 435 436 sqdeflg = FALSE; 436 437 dstw(); … … 448 449 ltemp = (ltemp * 10) + (sqdebuf[i] - '0'); 449 450 450 seqtab[curslin].seqtime = ltemp;451 seqbuf.seqtime = ltemp;451 seqtab[curslin].seqtime = (uint16_t)ltemp; 452 seqbuf.seqtime = (uint16_t)ltemp; 452 453 dsqlin(sqdebuf, curslin); 453 454 sqdeflg = TRUE; -
ram/sqselbx.x
r018d7ba r19caa64 26 26 extern int16_t sqdeflg; 27 27 extern int8_t sqhilit[][8]; 28 extern int16_tsqidata[];28 extern uint16_t sqidata[]; 29 29 extern int16_t sqmenu; 30 extern int16_tsqndata[];30 extern uint16_t sqndata[]; 31 31 extern int8_t sqopreq[]; 32 32 extern int8_t sqvcol[];
Note:
See TracChangeset
for help on using the changeset viewer.