- Timestamp:
- 11/15/2017 07:46:27 PM (7 years ago)
- Branches:
- master
- Children:
- 58ff1a9
- Parents:
- 72741f4
- Location:
- ram
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
ram/cminit.c
r72741f4 r00c31a2 122 122 QQop = QQstr; 123 123 124 while ( *QQop++ = *q++) ;124 while ((*QQop++ = *q++)) ; 125 125 126 126 QQip = t; … … 163 163 QQop = QQstr; 164 164 165 while ( *QQop++ = *q++) ;165 while ((*QQop++ = *q++)) ; 166 166 167 167 QQip = t; … … 195 195 n = c - '0'; 196 196 197 while ( c = *p) {197 while ((c = *p)) { 198 198 199 199 if (!isascii(c)) … … 252 252 n = 0; 253 253 254 while ( p = *l++) {254 while ((p = *l++)) { 255 255 256 256 q = p; … … 260 260 QQop = QQstr; 261 261 262 while ( *QQop++ = *q++) ;262 while ((*QQop++ = *q++)) ; 263 263 264 264 QQlnum = n; … … 288 288 n = 0; 289 289 290 while ( p = *l++) {290 while ((p = *l++)) { 291 291 292 292 q = p; … … 296 296 QQop = QQstr; 297 297 298 while ( *QQop++ = *q++) ;298 while ((*QQop++ = *q++)) ; 299 299 300 300 QQlnum = n; -
ram/dformat.c
r72741f4 r00c31a2 55 55 for (trk = 0; trk < 80; trk++) { 56 56 57 if ( dferror = (int16_t)XBIOS(X_FORMAT, dfbuf, 0L, 0, 9,58 trk, 0, 1, 0x87654321L, 0xE5E5)) {57 if ((dferror = (int16_t)XBIOS(X_FORMAT, dfbuf, 0L, 0, 9, 58 trk, 0, 1, 0x87654321L, 0xE5E5))) { 59 59 60 60 defect = 1; /* unable to format 1st side */ … … 64 64 if (dfsides EQ 2) { /* format second side */ 65 65 66 if ( dferror = (int16_t)XBIOS(X_FORMAT, dfbuf, 0L, 0, 9,67 trk, 1, 1, 0x87654321L, 0xE5E5)) {66 if ((dferror = (int16_t)XBIOS(X_FORMAT, dfbuf, 0L, 0, 9, 67 trk, 1, 1, 0x87654321L, 0xE5E5))) { 68 68 69 69 defect = 2; /* unable to format 2nd side */ … … 80 80 /* write boot sector to disk */ 81 81 82 if ( dferror = (int16_t)XBIOS(X_FLOPWR, dfbuf, 0L, 0, 1, 0, 0, 1)) {82 if ((dferror = (int16_t)XBIOS(X_FLOPWR, dfbuf, 0L, 0, 1, 0, 0, 1))) { 83 83 84 84 defect = 3; /* unable to write boot sector */ … … 101 101 } 102 102 103 if ( dferror = (int16_t)BIOS(B_RDWR, 3, dfbuf,104 DF_FSIZ, DF_FREC, 0)) {103 if ((dferror = (int16_t)BIOS(B_RDWR, 3, dfbuf, 104 DF_FSIZ, DF_FREC, 0))) { 105 105 106 106 defect = 4; /* unable to write primary FAT */ … … 108 108 } 109 109 110 if ( dferror = (int16_t)BIOS(B_RDWR, 3, dfbuf,111 DF_FSIZ, DF_FREC-DF_FSIZ, 0)) {110 if ((dferror = (int16_t)BIOS(B_RDWR, 3, dfbuf, 111 DF_FSIZ, DF_FREC-DF_FSIZ, 0))) { 112 112 113 113 defect = 5; /* unable to write secondary FAT */ … … 119 119 memsetw(dfbuf, 0, 4096); 120 120 121 if ( dferror = (int16_t)BIOS(B_RDWR, 3, dfbuf,122 DF_DSIZ, DF_FREC+DF_FSIZ, 0)) {121 if ((dferror = (int16_t)BIOS(B_RDWR, 3, dfbuf, 122 DF_DSIZ, DF_FREC+DF_FSIZ, 0))) { 123 123 124 124 defect = 6; /* unable to write directory */ -
ram/enterit.c
r72741f4 r00c31a2 303 303 /* limit text movement to 1 axis */ 304 304 305 if (cmtype NE CT_GRAF) 305 if (cmtype NE CT_GRAF) { 306 306 if (acx GE acy) 307 307 cyrate = 0; 308 308 else 309 309 cxrate = 0; 310 } 310 311 } 311 312 } -
ram/etiosc.c
r72741f4 r00c31a2 102 102 int16_t cnvp2c(void) 103 103 { 104 if (ebuf[0] EQ 9) /* high limit is C9 00 */104 if (ebuf[0] EQ 9) { /* high limit is C9 00 */ 105 105 if (ebuf[1] GT 2) 106 106 return(FAILURE); 107 else if (ebuf[1] EQ 2) 107 else if (ebuf[1] EQ 2) { 108 108 if (ebuf[2] NE 7) 109 109 return(FAILURE); 110 110 else if (ebuf[3] OR ebuf[4]) 111 111 return(FAILURE); 112 } 113 } 112 114 113 115 cents = (ebuf[0] * 1200) + pitches[ebuf[1]] + shrpflt[ebuf[2] - 7] -
ram/instdsp.c
r72741f4 r00c31a2 218 218 } 219 219 220 if (how AND (xp EQ 0)) 220 if (how AND (xp EQ 0)) { 221 221 if (wn EQ 12) 222 222 drawpt(ptx, pty, ID_SELD); 223 223 else 224 224 idpoint(ptx, pty, ID_SELD); 225 } 225 226 226 227 for (i = 1; i < np; i++) { -
ram/libdsp.c
r72741f4 r00c31a2 1202 1202 /* make sure the name is unique */ 1203 1203 1204 if ( rc = ckdups()) {1204 if ((rc = ckdups())) { 1205 1205 1206 1206 sprintf(ldmsg1, "Duplicate %s", ftypes[rc - 1][2]); -
ram/msl.c
r72741f4 r00c31a2 380 380 case 73: /* Tempo */ 381 381 382 if (aval > 50) 382 if (aval > 50) { /* dead band */ 383 383 if (aval < 53) 384 384 aval = 50; 385 385 else 386 386 aval -= 2; 387 } 387 388 388 389 tmpomlt = aval > 100 ? 100 : aval; … … 417 418 case 74: /* Time */ 418 419 419 if (aval > 50) 420 if (aval > 50) { /* dead band */ 420 421 if (aval < 53) 421 422 aval = 50; 422 423 else 423 424 aval -= 2; 425 } 424 426 425 427 ti = aval > 100 ? 100 : aval; … … 447 449 case 75: /* Tuning */ 448 450 449 if (aval > 50) 451 if (aval > 50) { /* dead band */ 450 452 if (aval < 53) 451 453 aval = 50; 452 454 else 453 455 aval -= 2; 456 } 454 457 455 458 i = (aval > 100) ? 100 : aval; -
ram/ptdkey.c
r72741f4 r00c31a2 1185 1185 1186 1186 if (((ptesuba & 0x0001) AND (stccol EQ 45)) OR 1187 ((0 EQ ptesuba & 0x0001) AND (stccol EQ 44)))1187 ((0 EQ (ptesuba & 0x0001)) AND (stccol EQ 44))) 1188 1188 ctcon(); 1189 1189 else -
ram/ptfield.c
r72741f4 r00c31a2 268 268 patches[sp].prevstm = pp; 269 269 270 if ( sp = findnxt(cp)) /* adjust ptecpos */270 if ((sp = findnxt(cp))) /* adjust ptecpos */ 271 271 ptecpos = sp; 272 else if ( pp = findprv(cp))272 else if ((pp = findprv(cp))) 273 273 ptecpos = pp; 274 274 else … … 279 279 for (i = 0; i < NDEFSTMS; ++i) { /* adjust defptr list */ 280 280 281 if ( cp = defptr[i]) { /* in use ? */281 if ((cp = defptr[i])) { /* in use ? */ 282 282 283 283 pp = 0; /* initial predecessor */ -
ram/ptselbx.c
r72741f4 r00c31a2 1242 1242 ptedat2 = 0x0000; 1243 1243 1244 if ( ptd = desdatf[i]) {1244 if ((ptd = desdatf[i])) { 1245 1245 1246 1246 if (ptd & 1) -
ram/ptwrite.c
r72741f4 r00c31a2 59 59 nb = 0L; 60 60 61 if ( pp = find1st()) {61 if ((pp = find1st())) { 62 62 63 63 while (pp) { … … 100 100 LCFBX10, LCBBX10); 101 101 102 if ( pp = find1st()) {102 if ((pp = find1st())) { 103 103 104 104 while (pp) { -
ram/scadv.c
r72741f4 r00c31a2 251 251 for (i = 224; i--; ) { 252 252 253 if ( sword = maskpx & *fsl)253 if ((sword = maskpx & *fsl)) 254 254 *optr = (*optr & masksl) | sword; 255 255 -
ram/stmproc.c
r72741f4 r00c31a2 687 687 /* find the end of the chain for the stimulus */ 688 688 689 while ( pp = patches[np].nextstm)689 while ((pp = patches[np].nextstm)) 690 690 np = pp; 691 691 -
ram/uslice.c
r72741f4 r00c31a2 230 230 /* update the slice */ 231 231 232 if ( w = *pxptr++) /* 212 */233 *slptr = (*slptr & mask2) | (w & ncolor); 234 235 ++slptr; 236 237 if ( w = *pxptr++) /* 213 */238 *slptr = (*slptr & mask2) | (w & ncolor); 239 240 ++slptr; 241 242 if ( w = *pxptr++) /* 214 */243 *slptr = (*slptr & mask2) | (w & ncolor); 244 245 ++slptr; 246 247 if ( w = *pxptr++) /* 215 */248 *slptr = (*slptr & mask2) | (w & ncolor); 249 250 ++slptr; 251 252 if ( w = *pxptr++) /* 216 */253 *slptr = (*slptr & mask2) | (w & ncolor); 254 255 ++slptr; 256 257 if ( w = *pxptr++) /* 217 */258 *slptr = (*slptr & mask2) | (w & ncolor); 259 260 ++slptr; 261 262 if ( w = *pxptr++) /* 218 */263 *slptr = (*slptr & mask2) | (w & ncolor); 264 265 ++slptr; 266 267 if ( w = *pxptr++) /* 219 */268 *slptr = (*slptr & mask2) | (w & ncolor); 269 270 ++slptr; 271 272 if ( w = *pxptr++) /* 220 */273 *slptr = (*slptr & mask2) | (w & ncolor); 274 275 ++slptr; 276 277 if ( w = *pxptr++) /* 221 */278 *slptr = (*slptr & mask2) | (w & ncolor); 279 280 ++slptr; 281 282 if ( w = *pxptr++) /* 222 */283 *slptr = (*slptr & mask2) | (w & ncolor); 284 285 ++slptr; 286 287 if ( w = *pxptr) /* 223 */232 if ((w = *pxptr++)) /* 212 */ 233 *slptr = (*slptr & mask2) | (w & ncolor); 234 235 ++slptr; 236 237 if ((w = *pxptr++)) /* 213 */ 238 *slptr = (*slptr & mask2) | (w & ncolor); 239 240 ++slptr; 241 242 if ((w = *pxptr++)) /* 214 */ 243 *slptr = (*slptr & mask2) | (w & ncolor); 244 245 ++slptr; 246 247 if ((w = *pxptr++)) /* 215 */ 248 *slptr = (*slptr & mask2) | (w & ncolor); 249 250 ++slptr; 251 252 if ((w = *pxptr++)) /* 216 */ 253 *slptr = (*slptr & mask2) | (w & ncolor); 254 255 ++slptr; 256 257 if ((w = *pxptr++)) /* 217 */ 258 *slptr = (*slptr & mask2) | (w & ncolor); 259 260 ++slptr; 261 262 if ((w = *pxptr++)) /* 218 */ 263 *slptr = (*slptr & mask2) | (w & ncolor); 264 265 ++slptr; 266 267 if ((w = *pxptr++)) /* 219 */ 268 *slptr = (*slptr & mask2) | (w & ncolor); 269 270 ++slptr; 271 272 if ((w = *pxptr++)) /* 220 */ 273 *slptr = (*slptr & mask2) | (w & ncolor); 274 275 ++slptr; 276 277 if ((w = *pxptr++)) /* 221 */ 278 *slptr = (*slptr & mask2) | (w & ncolor); 279 280 ++slptr; 281 282 if ((w = *pxptr++)) /* 222 */ 283 *slptr = (*slptr & mask2) | (w & ncolor); 284 285 ++slptr; 286 287 if ((w = *pxptr)) /* 223 */ 288 288 *slptr = (*slptr & mask2) | (w & ncolor); 289 289 … … 514 514 /* update the slice */ 515 515 516 if ( w = *pxptr++) /* 212 */517 *slptr = (*slptr & mask2) | (w & ncolor); 518 519 ++slptr; 520 521 if ( w = *pxptr++) /* 213 */522 *slptr = (*slptr & mask2) | (w & ncolor); 523 524 ++slptr; 525 526 if ( w = *pxptr++) /* 214 */527 *slptr = (*slptr & mask2) | (w & ncolor); 528 529 ++slptr; 530 531 if ( w = *pxptr++) /* 215 */532 *slptr = (*slptr & mask2) | (w & ncolor); 533 534 ++slptr; 535 536 if ( w = *pxptr++) /* 216 */537 *slptr = (*slptr & mask2) | (w & ncolor); 538 539 ++slptr; 540 541 if ( w = *pxptr++) /* 217 */542 *slptr = (*slptr & mask2) | (w & ncolor); 543 544 ++slptr; 545 546 if ( w = *pxptr++) /* 218 */547 *slptr = (*slptr & mask2) | (w & ncolor); 548 549 ++slptr; 550 551 if ( w = *pxptr++) /* 219 */552 *slptr = (*slptr & mask2) | (w & ncolor); 553 554 ++slptr; 555 556 if ( w = *pxptr++) /* 220 */557 *slptr = (*slptr & mask2) | (w & ncolor); 558 559 ++slptr; 560 561 if ( w = *pxptr++) /* 221 */562 *slptr = (*slptr & mask2) | (w & ncolor); 563 564 ++slptr; 565 566 if ( w = *pxptr++) /* 222 */567 *slptr = (*slptr & mask2) | (w & ncolor); 568 569 ++slptr; 570 571 if ( w = *pxptr) /* 223 */516 if ((w = *pxptr++)) /* 212 */ 517 *slptr = (*slptr & mask2) | (w & ncolor); 518 519 ++slptr; 520 521 if ((w = *pxptr++)) /* 213 */ 522 *slptr = (*slptr & mask2) | (w & ncolor); 523 524 ++slptr; 525 526 if ((w = *pxptr++)) /* 214 */ 527 *slptr = (*slptr & mask2) | (w & ncolor); 528 529 ++slptr; 530 531 if ((w = *pxptr++)) /* 215 */ 532 *slptr = (*slptr & mask2) | (w & ncolor); 533 534 ++slptr; 535 536 if ((w = *pxptr++)) /* 216 */ 537 *slptr = (*slptr & mask2) | (w & ncolor); 538 539 ++slptr; 540 541 if ((w = *pxptr++)) /* 217 */ 542 *slptr = (*slptr & mask2) | (w & ncolor); 543 544 ++slptr; 545 546 if ((w = *pxptr++)) /* 218 */ 547 *slptr = (*slptr & mask2) | (w & ncolor); 548 549 ++slptr; 550 551 if ((w = *pxptr++)) /* 219 */ 552 *slptr = (*slptr & mask2) | (w & ncolor); 553 554 ++slptr; 555 556 if ((w = *pxptr++)) /* 220 */ 557 *slptr = (*slptr & mask2) | (w & ncolor); 558 559 ++slptr; 560 561 if ((w = *pxptr++)) /* 221 */ 562 *slptr = (*slptr & mask2) | (w & ncolor); 563 564 ++slptr; 565 566 if ((w = *pxptr++)) /* 222 */ 567 *slptr = (*slptr & mask2) | (w & ncolor); 568 569 ++slptr; 570 571 if ((w = *pxptr)) /* 223 */ 572 572 *slptr = (*slptr & mask2) | (w & ncolor); 573 573 -
ram/wheel.c
r72741f4 r00c31a2 176 176 #endif 177 177 178 while ( c = 0x00FF & *str++) /* get a byte */178 while ((c = 0x00FF & *str++)) /* get a byte */ 179 179 BIOS(B_PUTC, PRT_DEV, c); /* output it */ 180 180 }
Note:
See TracChangeset
for help on using the changeset viewer.