Changeset fa50076 in buchla-68k for ram/initi.c
- Timestamp:
- 11/12/2017 07:08:44 PM (6 years ago)
- Branches:
- master
- Children:
- 26553e2
- Parents:
- c93e44d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ram/initi.c
rc93e44d rfa50076 58 58 */ 59 59 60 int16_t segtime(int16_t pn, uint16_t ptime)60 uint16_t segtime(int16_t pn, uint16_t ptime) 61 61 { 62 62 register struct instpnt *pp; … … 102 102 */ 103 103 104 int16_t timeto(int16_t fn, int16_t pj)104 uint16_t timeto(int16_t fn, int16_t pj) 105 105 { 106 106 register struct instdef *ip; 107 107 register struct instpnt *pt; 108 register int16_t tf, pm, pn; 108 register int16_t pm, pn; 109 uint16_t tf; 109 110 110 111 ip = &vbufs[curvce]; … … 423 424 void initi(struct instdef *ip) 424 425 { 425 register int16_t i, mintfpu, rb; 426 int16_t i, rb; 427 uint16_t mintfpu; 426 428 427 429 memsetw(ip, 0, sizeof (struct instdef) / 2); … … 433 435 434 436 ip->idhplft = NIPNTS - NFINST; 435 ip->idhcfg = (in itcfg >> 8) & 0x00FF;437 ip->idhcfg = (int8_t)((initcfg >> 8) & 0x00FF); 436 438 mintfpu = tofpu(1); 437 439 … … 442 444 rb = ((i < 4) AND (i NE 0)) ? 0 : I_NRATIO; 443 445 ip->idhfnc[i].idfpif = 1; 444 ip->idhfnc[i].idfpt1 = i;445 ip->idhfnc[i].idftmd = ( I_TM_KEY | 0x0010) | rb;446 ip->idhfnc[i].idfpt1 = (int8_t)i; 447 ip->idhfnc[i].idftmd = (int8_t)((I_TM_KEY | 0x0010) | rb); 446 448 447 449 /* initialize the first point in the function */ … … 453 455 for (i = 0; i < NUMWPNT; i++) { 454 456 455 ip->idhwvaf[i] = (ip->idhwvao[i] = 0x8000 ^ ((i + 1) << 8));456 ip->idhwvbf[i] = (ip->idhwvbo[i] = 0x8000 ^ ((i + 1) << 8));457 ip->idhwvaf[i] = (ip->idhwvao[i] = (int16_t)0x8000 ^ ((i + 1) << 8)); 458 ip->idhwvbf[i] = (ip->idhwvbo[i] = (int16_t)0x8000 ^ ((i + 1) << 8)); 457 459 } 458 460 }
Note:
See TracChangeset
for help on using the changeset viewer.