Changeset 432327d in buchla-68k for ram/asgdsp.c
- Timestamp:
- 09/17/2017 09:27:29 PM (7 years ago)
- Branches:
- master
- Children:
- 6099cac
- Parents:
- 8c8b4e5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ram/asgdsp.c
r8c8b4e5 r432327d 238 238 */ 239 239 240 void keycpyw(volatile uint16_t *dest, volatile uint16_t *src, int16_t len, uint16_t wk, uint16_t bk)240 void keycpyw(volatile uint16_t *dest, volatile uint16_t *src, int16_t len, int16_t wk, int16_t bk) 241 241 { 242 242 uint16_t wkey, bkey, theword; … … 358 358 vbank(0); 359 359 360 vputp(adoct, x, y, exp_c(pen));360 vputp(adoct, x, y, pen); 361 361 } 362 362 … … 389 389 void adswin(int16_t n) 390 390 { 391 register int16_t cx, i; 391 uint16_t cx; 392 int16_t i; 392 393 int8_t buf1[4], buf2[4]; 393 394 … … 512 513 if ((mctlnum[i] NE -1) AND (mctlnum[i] & CTAG1)) { 513 514 514 bfs[0] = '2' + i;515 bfs[0] = (int8_t)('2' + i); 515 516 bfs[1] = '\0'; 516 517 … … 603 604 case 7: /* port 1 key to group assignments */ 604 605 605 lseg( 8, 153, 15, 153, exp_c(adbox[n][4])); /* underlines */606 lseg(496, 153, 503, 153, exp_c(adbox[n][4]));606 lseg( 8, 153, 15, 153, adbox[n][4]); /* underlines */ 607 lseg(496, 153, 503, 153, adbox[n][4]); 607 608 608 609 asgkb(); /* icon */ … … 719 720 720 721 *(psg + PSG_ADDR) = PSG_PRTB; /* read current psg data */ 721 psgdata = *(psg + PSG_READ) & ~AUX_BIT;722 psgdata = (uint8_t)(*(psg + PSG_READ) & ~AUX_BIT); 722 723 723 724 *(psg + PSG_ADDR) = PSG_PRTB; /* send out updated aux data */ 724 *(psg + PSG_WRIT) = psgdata | (aux ? 0 : AUX_BIT);725 *(psg + PSG_WRIT) = (uint8_t)(psgdata | (aux ? 0 : AUX_BIT)); 725 726 } 726 727
Note:
See TracChangeset
for help on using the changeset viewer.