Changeset 7f5fa1b in buchla-68k
- Timestamp:
- 11/12/2017 07:54:11 PM (7 years ago)
- Branches:
- master
- Children:
- a3eb131
- Parents:
- 4b63bf3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ram/etloc.c
r4b63bf3 r7f5fa1b 16 16 int16_t et_loc(int16_t n) 17 17 { 18 ebuf[0] = grploc[n] + 1 + '0';18 ebuf[0] = (int8_t)(grploc[n] + 1 + '0'); 19 19 ebuf[1] = '\0'; 20 20 ebflag = TRUE; … … 34 34 struct idfnhdr *fp; 35 35 uint16_t fpmant, fpexp; 36 int16_t oldsr;36 uint16_t oldsr; 37 37 int16_t nop; 38 38 39 39 grploc[grp] = loc; 40 val = (loctab[loc] << 1) ^ 0x8000;40 val = (loctab[loc] << 1) ^ (int16_t)0x8000; 41 41 g = grp + 1; 42 42 43 fpmant = ( ((int32_t)curintp & 0x0000FFF0L) *44 (( int32_t)timemlt & 0x0000FFFFL)) >> 15;43 fpmant = (uint16_t)(((uint32_t)(curintp & 0xFFF0) * 44 ((uint32_t)timemlt)) >> 15); 45 45 46 46 fpexp = expbit[curintp & 0x000F]; … … 65 65 66 66 if (fp->idftmd & I_VNSUBN) 67 *(fpu + (int32_t)FPU_TNV1) =val;67 *(fpu + FPU_TNV1) = (uint16_t)val; 68 68 else 69 *(fpu + (int32_t)FPU_TNV0) =val;69 *(fpu + FPU_TNV0) = (uint16_t)val; 70 70 71 71 ++nop; ++nop; ++nop; 72 72 73 *(fpu + (int32_t)FPU_TCTL) =74 ( fp->idftmd & (I_NRATIO | I_NVBITS)) | 0x0001;73 *(fpu + FPU_TCTL) = (uint16_t) 74 ((fp->idftmd & (I_NRATIO | I_NVBITS)) | 0x0001); 75 75 76 76 setsr(oldsr); … … 107 107 if (E_NULL NE (ep = findev(p_cur, t_cur, EV_LOCN, n, -1))) { 108 108 109 ep->e_data2 = ival;109 ep->e_data2 = (int8_t)ival; 110 110 111 111 } else if (E_NULL NE (ep = e_alc(E_SIZE2))) { 112 112 113 113 ep->e_type = EV_LOCN; 114 ep->e_data1 = n;115 ep->e_data2 = ival;114 ep->e_data1 = (int8_t)n; 115 ep->e_data2 = (int8_t)ival; 116 116 ep->e_time = t_cur; 117 117 p_cur = e_ins(ep, ep_adj(p_cur, 0, t_cur))->e_fwd; … … 166 166 (void)n; 167 167 168 ebuf[0] = k + '0';168 ebuf[0] = (int8_t)(k + '0'); 169 169 170 170 if (v_regs[5] & 0x0180)
Note:
See TracChangeset
for help on using the changeset viewer.