Previous 15994 Revisions Next

r1805 Friday 29th February, 2008 at 03:50:58 UTC by R. Belmont
64-bit GCC warning fixes.
[src/mess/formats]thom_cas.c thom_dsk.c
[src/mess/machine]dgn_beta.c
[src/mess/tools/messtest]testmess.c

src/mess/tools/messtest/testmess.c
r1804r1805
890890      {
891891         state = STATE_ABORTED;
892892         report_message(MSG_FAILURE, "Failed verification step (%s; 0x%x-0x%x)",
893            filename, offset_start, offset_end);
893            filename, (int)offset_start, (int)offset_end);
894894         break;
895895      }
896896   }
src/mess/machine/dgn_beta.c
r1804r1805
295295      memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, bank_start, bank_end,0,0,writebank);
296296      memory_install_write8_handler(1, ADDRESS_SPACE_PROGRAM, bank_start, bank_end,0,0,writebank);
297297
298      LOG_BANK_UPDATE(("UpdateBanks:MapPage=$%02X readbank=$%X\n",MapPage,(int)readbank));
298      LOG_BANK_UPDATE(("UpdateBanks:MapPage=$%02X readbank=$%X\n",MapPage,(int)(FPTR)readbank));
299299      LOG_BANK_UPDATE(("PageRegsSet Task=%X Page=%x\n",TaskReg,Page));
300300      LOG_BANK_UPDATE(("memory_set_bankptr(%X)\n",Page+1));
301301      LOG_BANK_UPDATE(("memory_install_write8_handler CPU=0\n"));
src/mess/formats/thom_dsk.c
r1804r1805
150150       (d->density == DEN_FM_LO) ? "FM" : "MFM",
151151       d->tracks, d->sectors,
152152       (d->sides * d->tracks * d->sectors * d->sector_size) / 1024 ));
153   LOG (( "thom_floppy: drive %d loaded\n", d - thom_floppy_drives ));
153   LOG (( "thom_floppy: drive %d loaded\n", (int)(FPTR)(d - thom_floppy_drives) ));
154154
155155   if ( d->data )
156156   {
r1804r1805
215215      physical_track = 0;
216216   if ( physical_track >= 80 )
217217      physical_track = 79;
218   LOG(( "%f thom_floppy_seek: dev=%d track=%i\n", attotime_to_double(timer_get_time()), d - thom_floppy_drives, physical_track ));
218   LOG(( "%f thom_floppy_seek: dev=%d track=%i\n", attotime_to_double(timer_get_time()), (int)(FPTR)(d - thom_floppy_drives), physical_track ));
219219   d->cur_track = physical_track;
220220}
221221
r1804r1805
240240   if ( trk >= d->tracks )
241241      trk = d->tracks - 1;
242242   VLOG(( "thom_floppy_get_id: dev=%d track=%i idx=%i phy-side=%i dens=%s/%s\n",
243          d - thom_floppy_drives, trk, id_index, physical_side,
243          (int)(FPTR)(d - thom_floppy_drives), trk, id_index, physical_side,
244244          (thom_density == DEN_FM_LO) ? "FM" : "MFM",
245245          (d->density == DEN_FM_LO) ? "FM" : "MFM" ));
246246   thom_floppy_active( 0 );
r1804r1805
283283   thom_floppy_drive* d = thom_floppy_drive_of_image( image );
284284   UINT8* src = thom_floppy_sector_ptr( d, index1, d->cur_track, 0 );
285285   thom_floppy_active( 0 );
286   LOG(( "thom_floppy_read_sector_data_into_buffer: dev=%d track=%i idx=%i side=%i len=%i\n", d - thom_floppy_drives, d->cur_track, index1, side, length ));
286   LOG(( "thom_floppy_read_sector_data_into_buffer: dev=%d track=%i idx=%i side=%i len=%i\n", (int)(FPTR)(d - thom_floppy_drives), d->cur_track, index1, side, length ));
287287   if ( length > d->sector_size )
288288   {
289289      logerror( "thom_floppy_read_sector_data_into_buffer: sector size %i truncated to %i\n", length, d->sector_size );
r1804r1805
300300   thom_floppy_drive* d = thom_floppy_drive_of_image( image );
301301   UINT8* dst = thom_floppy_sector_ptr( d, data_id, d->cur_track, 0 );
302302   thom_floppy_active( 1 );
303   LOG(( "thom_floppy_write_sector_data_into_buffer: dev=%d track=%i idx=%i side=%i ddam=%i len=%i\n", d - thom_floppy_drives, d->cur_track, data_id, side, ddam, length ));
303   LOG(( "thom_floppy_write_sector_data_into_buffer: dev=%d track=%i idx=%i side=%i ddam=%i len=%i\n", (int)(FPTR)(d - thom_floppy_drives), d->cur_track, data_id, side, ddam, length ));
304304   if ( length > d->sector_size )
305305   {
306306      logerror( "thom_floppy_write_sector_data_from_buffer: sector size %i truncated to %i\n", length, d->sector_size );
r1804r1805
322322   UINT8* dst;
323323   thom_floppy_active( 1 );
324324   LOG(( "thom_floppy_format_sector: dev=%d track=%i/%i side=%i/%i idx=%i/%i c=%i h=%i r=%i n=%i filler=$%02X\n",
325         d - thom_floppy_drives,
325         (int)(FPTR)(d - thom_floppy_drives),
326326         d->cur_track, d->tracks, side, d->sides, sector_index, d->sectors,
327327         c, h, r, n, filler ));
328328
src/mess/formats/thom_cas.c
r1804r1805
765765         cassette_image_read( cass, block, pos, 6 );
766766         if ( ! memcmp( block, "DCMOTO", 6 ) )
767767         {
768            LOG (( "mo5_k5_load: DCMOTO signature found at off=$%x\n", pos ));
768            LOG (( "mo5_k5_load: DCMOTO signature found at off=$%x\n", (int)pos ));
769769            pos += 6;
770770         }
771771         else if ( ! memcmp( block, "DCMO", 4 ) )
772772         {
773            LOG (( "mo5_k5_load: DCMO* signature found at off=$%x\n", pos ));
773            LOG (( "mo5_k5_load: DCMO* signature found at off=$%x\n", (int)pos ));
774774            pos += 5;
775775         }
776776      }
r1804r1805
857857   {
858858      invalid++;
859859      K5_FILL_0( 1200 );
860      LOG (( "mo5_k5_load: trailing trash off=$%x size=%i hbitstart=%i\n", (int) pos, (int) size-pos, hbitsize ));
860      LOG (( "mo5_k5_load: trailing trash off=$%x size=%i hbitstart=%i\n", (int) pos, (int) (size-pos), hbitsize ));
861861      for ( ; pos < size; pos++ )
862862      {
863863         cassette_image_read( cass, &in, pos, 1 );
r1804r1805
867867            cassette_image_read( cass, block, pos, 6 );
868868            if ( ! memcmp( block, "DCMOTO", 6 ) )
869869            {
870               LOG (( "mo5_k5_load: DCMOTO signature found at off=$%x\n", pos ));
870               LOG (( "mo5_k5_load: DCMOTO signature found at off=$%x\n", (int)pos ));
871871               pos += 6;
872872               cassette_image_read( cass, &in, pos, 1 );
873873            }
874874            else if ( ! memcmp( block, "DCMO", 4 ) )
875875            {
876               LOG (( "mo5_k5_load: DCMO* signature found at off=$%x\n", pos ));
876               LOG (( "mo5_k5_load: DCMO* signature found at off=$%x\n", (int)pos ));
877877               pos += 5;
878878               cassette_image_read( cass, &in, pos, 1 );
879879            }

Previous 15994 Revisions Next


© 1998-2018 The MESS Team