Previous 15994 Revisions Next

r15745 Saturday 4th August, 2012 at 15:07:11 UTC by Miodrag Milanović
cleaned not needed variables (nw)
[src/lib/formats]dsk_dsk.c
[src/mess/drivers]pc88va.c ti99_8.c
[src/mess/machine]isa_ide_cd.c

src/lib/formats/dsk_dsk.c
r15744r15745
381381         track_header tr;
382382         io_generic_read(io, &tr,track_offsets[(track<<1)+side],sizeof(tr));
383383         //printf("%d,%d %d, %d\n",track,side,tr.track_number, tr.gap3_length);
384         int sec_location = track_offsets[(track<<1)+side] + 0x100;
384         //int sec_location = track_offsets[(track<<1)+side] + 0x100;
385385         for(int j=0;j<tr.number_of_sector;j++)
386386         {
387387            sector_header sector;
388388            io_generic_read(io, &sector,track_offsets[(track<<1)+side]+sizeof(tr)+(sizeof(sector)*j),sizeof(sector));
389389            //printf("sec %02x %08x\n",sector.sector_id,sec_location);
390390
391            sec_location += sector.data_lenght;
391            //sec_location += sector.data_lenght;
392392         }
393393         counter++;
394394      }
src/mess/machine/isa_ide_cd.c
r15744r15745
2525   UINT8 *atapi_regs = m_atapi_regs;
2626   int shift;
2727   shift = 0;
28   int reg = offset<<1;
2928   switch(mem_mask)
3029   {
3130   case 0x000000ff:
3231      break;
3332   case 0x0000ff00:
34      reg+=1;
3533      shift=8;
3634      break;
3735   }
src/mess/drivers/pc88va.c
r15744r15745
231231   UINT32 tile_num;
232232   UINT16 attr;
233233   UINT8 attr_mode;
234   UINT8 fg_col,bg_col,secret,reverse,blink,dwidc,dwid,uline,hline;
234   UINT8 fg_col,bg_col,secret,reverse;
235   //UINT8 blink,dwidc,dwid,uline,hline;
235236   UINT8 screen_fg_col,screen_bg_col;
236237
237238   count = (tvram[state->m_tsp.tvram_vreg_offset+0] | tvram[state->m_tsp.tvram_vreg_offset+1] << 8);
r15744r15745
253254
254255         attr = (tvram[count+state->m_tsp.attr_offset] & 0x00ff);
255256
256         fg_col = bg_col = reverse = blink = secret = dwidc = dwid = uline = hline = 0;
257         fg_col = bg_col = reverse = secret = 0; //blink = dwidc = dwid = uline = hline = 0;
257258
258259         switch(attr_mode)
259260         {
r15744r15745
276277            case 1:
277278               fg_col = (attr & 0xf0) >> 4;
278279               bg_col = screen_bg_col;
279               hline = (attr & 0x08) >> 3;
280               //hline = (attr & 0x08) >> 3;
280281               reverse = (attr & 0x04) >> 2;
281               blink = (attr & 0x02) >> 1;
282               //blink = (attr & 0x02) >> 1;
282283               secret = (attr & 0x01) >> 0;
283284               break;
284285            /*
r15744r15745
294295            case 2:
295296               fg_col = screen_fg_col;
296297               bg_col = screen_bg_col;
297               dwidc = (attr & 0x80) >> 7;
298               dwid = (attr & 0x40) >> 6;
299               uline = (attr & 0x20) >> 5;
300               hline = (attr & 0x10) >> 4;
298               //dwidc = (attr & 0x80) >> 7;
299               //dwid = (attr & 0x40) >> 6;
300               //uline = (attr & 0x20) >> 5;
301               //hline = (attr & 0x10) >> 4;
301302               reverse = (attr & 0x04) >> 2;
302               blink = (attr & 0x02) >> 1;
303               //blink = (attr & 0x02) >> 1;
303304               secret = (attr & 0x01) >> 0;
304305               break;
305306            /*
r15744r15745
328329                  {
329330                     fg_col = screen_fg_col;
330331                     bg_col = screen_bg_col;
331                     dwidc = (attr & 0x80) >> 7;
332                     dwid = (attr & 0x40) >> 6;
333                     uline = (attr & 0x20) >> 5;
334                     hline = (attr & 0x10) >> 4;
332                     //dwidc = (attr & 0x80) >> 7;
333                     //dwid = (attr & 0x40) >> 6;
334                     //uline = (attr & 0x20) >> 5;
335                     //hline = (attr & 0x10) >> 4;
335336                     reverse = (attr & 0x04) >> 2;
336                     blink = (attr & 0x02) >> 1;
337                     //blink = (attr & 0x02) >> 1;
337338                     secret = (attr & 0x01) >> 0;
338339                  }
339340               }
r15744r15745
346347            case 4:
347348               fg_col = (attr & 0x0f) >> 0;
348349               bg_col = (attr & 0x70) >> 4;
349               blink = (attr & 0x80) >> 7;
350               //blink = (attr & 0x80) >> 7;
350351               break;
351352            /*
352353                x--- ---- blink
r15744r15745
357358            case 5:
358359               fg_col = (attr & 0x0f) >> 0;
359360               bg_col = (attr & 0x70) >> 4;
360               blink = (attr & 0x80) >> 7;
361               if((fg_col & 7) == 1)
362                  hline = 1;
361               //blink = (attr & 0x80) >> 7;
362               //if((fg_col & 7) == 1)
363                  //hline = 1;
363364               break;
364365            default:
365366               popmessage("Illegal text tilemap attribute mode %02x, contact MESSdev",attr_mode);
src/mess/drivers/ti99_8.c
r15744r15745
577577      //
578578      // bit 26: high
579579      // bit 27: tape input
580      int answer = 4;
580      answer = 4;
581581      if ((machine().device<cassette_image_device>(CASSETTE_TAG))->input() > 0)
582582         answer |= 8;
583583      break;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team