Changeset 432327d in buchla-68k for ram/etadyn.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/etadyn.c
r8c8b4e5 r432327d 20 20 grp = 0x00FF & (n >> 8); 21 21 22 ebuf[0] = grpdyn[grp] + '0';22 ebuf[0] = (int8_t)(grpdyn[grp] + '0'); 23 23 ebuf[1] = '\0'; 24 24 … … 40 40 struct idfnhdr *fp; 41 41 uint16_t fpmant, fpexp; 42 int16_t oldsr;42 uint16_t oldsr; 43 43 int16_t nop; 44 44 … … 47 47 g = grp + 1; 48 48 49 fpmant = ( ((int32_t)curintp & 0x0000FFF0L) *50 ((int32_t)timemlt & 0x0000FFFFL)) >> 15 ;49 fpmant = (uint16_t)((((int32_t)curintp & 0x0000FFF0L) * 50 ((int32_t)timemlt & 0x0000FFFFL)) >> 15); 51 51 52 52 fpexp = expbit[curintp & 0x000F]; … … 70 70 71 71 if (fp->idftmd & I_VNSUBN) 72 *(fpu + (int32_t)FPU_TNV1) = val;72 *(fpu + (int32_t)FPU_TNV1) = (uint16_t)val; 73 73 else 74 *(fpu + (int32_t)FPU_TNV0) = val;74 *(fpu + (int32_t)FPU_TNV0) = (uint16_t)val; 75 75 76 76 ++nop; ++nop; ++nop; 77 77 78 78 *(fpu + (int32_t)FPU_TCTL) = 79 ( fp->idftmd & (I_NRATIO | I_NVBITS)) | 0x0001;79 (uint16_t)((fp->idftmd & (I_NRATIO | I_NVBITS)) | 0x0001); 80 80 81 81 setsr(oldsr); … … 121 121 grp = 0x00FF & (nn >> 8); 122 122 123 dspbuf[0] = grpdyn[grp] + '0';123 dspbuf[0] = (int8_t)(grpdyn[grp] + '0'); 124 124 dspbuf[1] = '\0'; 125 125 … … 143 143 n = nn & 0xFF; 144 144 145 dspbuf[0] = ebuf[0] = k + '0';145 dspbuf[0] = ebuf[0] = (int8_t)(k + '0'); 146 146 dspbuf[1] = ebuf[1] = '\0'; 147 147
Note:
See TracChangeset
for help on using the changeset viewer.