Previous 15994 Revisions Next

r6508 Thursday 3rd December, 2009 at 04:24:08 UTC by Nathan Woods
Dead code cleanups [Atari Ace]
[docs]messnew.txt
[src/mess]uimess.c
[src/mess/devices]sonydriv.h ti99cart.c
[src/mess/drivers]apexc.c apple2.c apple2gs.c apple3.c busicom.c cdi.c cgenie.c craft.c exelv.c gba.c glasgow.c ip22.c jr200.c kyocera.c lisa.c newbrain.c primo.c ti990_10.c ti990_4.c tutor.c x1.c x68k.c
[src/mess/includes]cybiko.h
[src/mess/machine]990_dk.c 990_hd.c 990_tap.c 99_hsgpl.c 99_hsgpl.h 99_ide.c 99_usbsm.h amstrad.c at.c at45dbxx.c at45dbxx.h compis.c cybiko.c gb.c genesis.c geneve.c kc.c lisa.c mz700.c pc.c pcf8593.c smartmed.c sms.c sst39vfx.c sst39vfx.h strata.c ti99_4x.c vc1541.c z80sti.c
[src/mess/tools/imgtool/modules]concept.c mac.c ti99.c ti990hd.c
[src/mess/tools/messtest]core.c
[src/mess/video]733_asr.c aim65.c gb.c intv.c newport.c pdp1.c sed1330.c tms3556.c tx0.c x68k.c

src/mess/devices/ti99cart.c
r6507r6508
20202020
20212021static READ16_DEVICE_HANDLER( ti99_cart_r_legacy )
20222022{
2023/*  if (hsgpl_crdena)
2024        return ti99_hsgpl_rom6_r(space, offset, mem_mask);
2025*/
20262023   int slotmbx, slotmini, slotebr2, slotrom;
20272024   ti99_multicart_t *cartslots = (ti99_multicart_t *)device->token;
20282025
2026#if 0
2027   if (hsgpl_crdena)
2028      return ti99_hsgpl_rom6_r(space, offset, mem_mask);
2029#endif
2030
20292031   slotmbx = cartslots->legacy_slotnumber[SLOTC_MBX];
20302032
20312033   if ((slotmbx != -1) && (offset >= 0x0600) && (offset <= 0x07fe))
r6507r6508
20632065
20642066static WRITE16_DEVICE_HANDLER( ti99_cart_w_legacy )
20652067{
2066
2067/*  if (hsgpl_crdena)
2068        ti99_hsgpl_rom6_w(space, offset, data, mem_mask);
2069        return;
2070        */
20712068   int slotmbx, slotmini, slotebr2, slotrom;
20722069   ti99_multicart_t *cartslots = (ti99_multicart_t *)device->token;
20732070
2071#if 0
2072   if (hsgpl_crdena)
2073   {
2074      ti99_hsgpl_rom6_w(space, offset, data, mem_mask);
2075      return;
2076   }
2077#endif
20742078   slotmbx = cartslots->legacy_slotnumber[SLOTC_MBX];
20752079   slotrom = cartslots->legacy_slotnumber[SLOTC_CROM];
20762080   slotebr2 = cartslots->legacy_slotnumber[SLOTC_DROM];
r6507r6508
21152119*/
21162120static READ8_DEVICE_HANDLER( ti99_cart_r_legacy8 )
21172121{
2118/*  if (hsgpl_crdena)
2119        return ti99_hsgpl_rom6_r(space, offset, mem_mask);
2120*/
21212122   int slotmbx, slotmini, slotebr2, slotrom;
21222123   ti99_multicart_t *cartslots = (ti99_multicart_t *)device->token;
21232124
2125#if 0
2126   if (hsgpl_crdena)
2127      return ti99_hsgpl_rom6_r(space, offset, mem_mask);
2128#endif
2129
21242130   slotmbx = cartslots->legacy_slotnumber[SLOTC_MBX];
21252131
21262132   if ((slotmbx != -1) && (offset >= 0x0c00) && (offset <= 0x0ffd))
r6507r6508
21612167*/
21622168static WRITE8_DEVICE_HANDLER( ti99_cart_w_legacy8 )
21632169{
2164
2165/*  if (hsgpl_crdena)
2166        ti99_hsgpl_rom6_w(space, offset, data, mem_mask);
2167        return;
2168        */
21692170   int slotmbx, slotmini, slotebr2, slotrom;
21702171   ti99_multicart_t *cartslots = (ti99_multicart_t *)device->token;
21712172
2173#if 0
2174   if (hsgpl_crdena)
2175   {
2176      ti99_hsgpl_rom6_w(space, offset, data, mem_mask);
2177      return;
2178   }
2179#endif
21722180   slotmbx = cartslots->legacy_slotnumber[SLOTC_MBX];
21732181   slotrom = cartslots->legacy_slotnumber[SLOTC_CROM];
21742182   slotebr2 = cartslots->legacy_slotnumber[SLOTC_DROM];
r6507r6508
22432251   /* There is a circuitry in TI99/4(a) that resets the console when a
22442252   cartridge is inserted or removed.  We emulate this instead of resetting
22452253   the emulator (which is the default in MESS). */
2246   /*cpu_set_input_line(machine->firstcpu, INPUT_LINE_RESET, PULSE_LINE);
2254#if 0
2255   cpu_set_input_line(machine->firstcpu, INPUT_LINE_RESET, PULSE_LINE);
22472256   tms9901_reset(0);
22482257   if (! has_evpc)
22492258      TMS9928A_reset();
22502259   if (has_evpc)
2251      v9938_reset(0);*/
2260      v9938_reset(0);
2261#endif
22522262
22532263   ch = strrchr(name, '.');
22542264   ch2 = (ch-1 >= name) ? ch-1 : "";
src/mess/devices/sonydriv.h
r6507r6508
1313#include "image.h"
1414#include "flopdrv.h"
1515
16/*enum
16#if 0
17enum
1718{
18    SONY_FLOPPY_ALLOW400K           = 0x0001,
19    SONY_FLOPPY_ALLOW800K           = 0x0002,
19   SONY_FLOPPY_ALLOW400K           = 0x0001,
20   SONY_FLOPPY_ALLOW800K           = 0x0002,
2021
21    SONY_FLOPPY_SUPPORT2IMG         = 0x4000,
22    SONY_FLOPPY_EXT_SPEED_CONTROL   = 0x8000    // means the speed is controlled by computer
22   SONY_FLOPPY_SUPPORT2IMG         = 0x4000,
23   SONY_FLOPPY_EXT_SPEED_CONTROL   = 0x8000    // means the speed is controlled by computer
2324};
25#endif
2426
25*/
26
2727void sony_set_lines(const device_config *device,UINT8 lines);
2828void sony_set_enable_lines(const device_config *device,int enable_mask);
2929void sony_set_sel_line(const device_config *device,int sel);
src/mess/uimess.c
r6507r6508
241241
242242   astring_printf(string, "%s\n\n", machine->gamedrv->description);
243243
244/*   if (mess_ram_size > 0)
244#if 0
245   if (mess_ram_size > 0)
245246   {
246247      char buf2[RAM_STRING_BUFLEN];
247248      astring_catprintf(string, "RAM: %s\n\n", ram_string(buf2, mess_ram_size));
248249   }
249*/
250#endif
251
250252   for (img = image_device_first(machine->config); img != NULL; img = image_device_next(img))
251253   {
252254      const char *name = image_filename(img);
src/mess/tools/messtest/core.c
r6507r6508
616616   }
617617   while(buf[i++]);
618618
619#if 0
619620   /* did we abort? */
620/*  if ((msgtype == MSG_FAILURE) && (state != STATE_ABORTED))
621    {
622        state = STATE_ABORTED;
623        final_time = timer_get_time(machine);
624        if (final_time > 0.0)
625            dump_screenshot();
626    }
627*/
621   if ((msgtype == MSG_FAILURE) && (state != STATE_ABORTED))
622   {
623      state = STATE_ABORTED;
624      final_time = timer_get_time(machine);
625      if (final_time > 0.0)
626         dump_screenshot();
627   }
628#endif
628629}
629630
630631
src/mess/tools/imgtool/modules/ti99.c
r6507r6508
761761         crc2 = c;
762762         calc_crc(& crc, c);
763763
764#if 0
764765         /* CRC seems to be completely hosed */
765         /*if (crc)
766                printf("aargh!");*/
766         if (crc)
767            printf("aargh!");
768#endif
767769         if ((seclen != 256) || (crc1 != 0xf7) || (crc2 != 0xf7)
768770               || (cylinder != expected_cylinder) || (head != expected_head)
769771               || ((pass == 1) && ((cylinder >= geometry->cylinders)
r6507r6508
859861         crc2 = c;
860862         calc_crc(& crc, c);
861863
864#if 0
862865         /* CRC seems to be completely hosed */
863         /*if (crc)
864                printf("aargh!");*/
866         if (crc)
867            printf("aargh!");
868#endif
865869         if ((crc1 != 0xf7) || (crc2 != 0xf7))
866870            continue;
867871
r6507r6508
990994         return IMGTOOLERR_CORRUPTIMAGE;   /* TODO: support 512-byte sectors */
991995      }
992996
997#if 0
993998      /* read vib */
994      /*reply = read_absolute_physrec(l1_img, 0, vib);
995        if (reply)
996            return reply;*/
999      reply = read_absolute_physrec(l1_img, 0, vib);
1000      if (reply)
1001         return reply;
1002#endif
9971003   }
9981004   else
9991005   {
r6507r6508
12941300    geometry (I): disk image geometry
12951301    address (O): physical sector address
12961302*/
1297/*static void win_aphysrec_to_sector_address(int aphysrec, const ti99_geometry *geometry, ti99_sector_address *address)
1303#ifdef UNUSED_FUNCTION
1304static void win_aphysrec_to_sector_address(int aphysrec, const ti99_geometry *geometry, ti99_sector_address *address)
12981305{
12991306    address.sector = aphysrec % l1_img->geometry.secspertrack;
13001307    aphysrec /= l1_img->geometry.secspertrack;
13011308    address.side = aphysrec % l1_img->geometry.heads;
13021309    address.cylinder = aphysrec / l1_img->geometry.heads;
1303}*/
1310}
1311#endif
13041312
13051313/*
13061314    Read one 256-byte physical record from a disk image
r6507r6508
13181326
13191327   if (l1_img->img_format == if_harddisk)
13201328   {
1321      /*win_aphysrec_to_sector_address(aphysrec, & l1_img->geometry, & address);
1329#if 0
1330      win_aphysrec_to_sector_address(aphysrec, & l1_img->geometry, & address);
1331      return read_sector(l1_img, & address, dest);
1332#endif
13221333
1323        return read_sector(l1_img, & address, dest);*/
1324
13251334      return imghd_read(&l1_img->harddisk_handle, aphysrec, dest) != IMGTOOLERR_SUCCESS;
13261335   }
13271336   else
r6507r6508
13481357
13491358   if (l1_img->img_format == if_harddisk)
13501359   {
1351      /*win_aphysrec_to_sector_address(aphysrec, & l1_img->geometry, & address);
1360#if 0
1361      win_aphysrec_to_sector_address(aphysrec, & l1_img->geometry, & address);
1362      return write_sector(l1_img, & address, dest);
1363#endif
13521364
1353        return write_sector(l1_img, & address, dest);*/
1354
13551365      return imghd_write(&l1_img->harddisk_handle, aphysrec, src) != IMGTOOLERR_SUCCESS;
13561366   }
13571367   else
r6507r6508
30133023         /* clear remainder of cluster table */
30143024         for (; i<54; i++)
30153025         {
3016            /*set_UINT16BE(&cur_fdr->clusters[i][0], 0);
3017                set_UINT16BE(&cur_fdr->clusters[i][1], 0);*/
3026#if 0
3027            set_UINT16BE(&cur_fdr->clusters[i][0], 0);
3028            set_UINT16BE(&cur_fdr->clusters[i][1], 0);
3029#endif
30183030            if ((get_UINT16BE(cur_fdr->clusters[i][0]) != 0) || (get_UINT16BE(cur_fdr->clusters[i][1]) != 0))
30193031               return IMGTOOLERR_CORRUPTIMAGE;
30203032         }
r6507r6508
32843296/*
32853297    Write a field in every fdr record associated to a file
32863298*/
3287/*static int set_win_fdr_field(ti99_lvl2_fileref *l2_file, size_t offset, size_t size, void *data)
3299#ifdef UNUSED_FUNCTION
3300static int set_win_fdr_field(ti99_lvl2_fileref *l2_file, size_t offset, size_t size, void *data)
32883301{
32893302    win_fdr fdr_buf;
32903303    unsigned fdr_aphysrec;
r6507r6508
33033316    }
33043317
33053318    return errorcode;
3306}*/
3319}
3320#endif
33073321
33083322static UINT8 get_file_flags(ti99_lvl2_fileref *l2_file)
33093323{
r6507r6508
45424556      return errorcode;
45434557
45444558   get_file_creation_date(&src_file, &date_time);
4545   /*if ((date_time.time_MSB == 0) || (date_time.time_LSB == 0)
4559#if 0
4560   if ((date_time.time_MSB == 0) || (date_time.time_LSB == 0)
45464561            || (date_time.date_MSB == 0) || (date_time.date_LSB == 0))
4547        current_date_time(&date_time);*/
4562      current_date_time(&date_time);
4563#endif
45484564   set_file_creation_date(&dst_file, date_time);
45494565
45504566   get_file_update_date(&src_file, &date_time);
4551   /*if ((date_time.time_MSB == 0) || (date_time.time_LSB == 0)
4567#if 0
4568   if ((date_time.time_MSB == 0) || (date_time.time_LSB == 0)
45524569            || (date_time.date_MSB == 0) || (date_time.date_LSB == 0))
4553        current_date_time(&date_time);*/
4570      current_date_time(&date_time);
4571#endif
45544572   set_file_update_date(&dst_file, date_time);
45554573
45564574   if (stream_write(destf, & dst_file.u.tifiles.hdr, 128) != 128)
r6507r6508
47074725      return errorcode;
47084726
47094727   get_file_creation_date(&src_file, &date_time);
4710   /*if ((date_time.time_MSB == 0) || (date_time.time_LSB == 0)
4728#if 0
4729   if ((date_time.time_MSB == 0) || (date_time.time_LSB == 0)
47114730            || (date_time.date_MSB == 0) || (date_time.date_LSB == 0))
4712        current_date_time(&date_time);*/
4731      current_date_time(&date_time);
4732#endif
47134733   set_file_creation_date(&dst_file, date_time);
47144734
47154735   get_file_update_date(&src_file, &date_time);
4716   /*if ((date_time.time_MSB == 0) || (date_time.time_LSB == 0)
4736#if 0
4737   if ((date_time.time_MSB == 0) || (date_time.time_LSB == 0)
47174738            || (date_time.date_MSB == 0) || (date_time.date_LSB == 0))
4718        current_date_time(&date_time);*/
4739      current_date_time(&date_time);
4740#endif
47194741   set_file_update_date(&dst_file, date_time);
47204742
47214743   /* alloc data physrecs */
r6507r6508
49474969      }
49484970      /* the condition below is an error, but it should not prevent us from
49494971        deleting the file */
4950      /*if (i<fphysrecs)
4951            return IMGTOOLERR_CORRUPTIMAGE;*/
4972#if 0
4973      if (i<fphysrecs)
4974         return IMGTOOLERR_CORRUPTIMAGE;
4975#endif
49524976
49534977      /* free fdr AU */
49544978      cur_AU = catalog->files[catalog_index].fdr_ptr / image->AUformat.physrecsperAU;
src/mess/tools/imgtool/modules/ti990hd.c
r6507r6508
13891389         iter->level++;
13901390         iter->nrc[iter->level] = get_UINT16BE(dor.nrc)/*get_UINT32BE(iter->fdr[iter->level-1].eom)-1*/;
13911391         iter->index[iter->level] = 0;
1392         /*if (get_UINT16BE(dor.nrc) != (get_UINT32BE(iter->xdr[iter->level-1].fdr.eom)-1))
1393                printf("hiha");*/
1392#if 0
1393         if (get_UINT16BE(dor.nrc) != (get_UINT32BE(iter->xdr[iter->level-1].fdr.eom)-1))
1394            printf("hiha");
1395#endif
13941396      }
13951397
13961398      /* go to upper level if applicable */
src/mess/tools/imgtool/modules/mac.c
r6507r6508
432432    Return a zero if s1 and s2 are equal, a negative value if s1 is less than
433433    s2, and a positive value if s1 is greater than s2.
434434*/
435/*static int mac_strcmp(const UINT8 *s1, const UINT8 *s2)
435#ifdef UNUSED_FUNCTION
436static int mac_strcmp(const UINT8 *s1, const UINT8 *s2)
436437{
437438    size_t common_len;
438439
439440    common_len = (s1[0] <= s2[0]) ? s1[0] : s2[0];
440441
441442    return memcmp(s1+1, s2+1, common_len) || ((int)s1[0] - s2[0]);
442}*/
443}
444#endif
443445
444446/*
445447    mac_stricmp()
r6507r6508
13951397
13961398   newABEof = (newEof + fileref->l2_img->blocksperAB * 512 - 1) / (fileref->l2_img->blocksperAB * 512);
13971399
1398   /*if (fileref->pLen % (fileref->l2_img->blocksperAB * 512))
1399        return IMGTOOLERR_CORRUPTIMAGE;*/
1400#if 0
1401   if (fileref->pLen % (fileref->l2_img->blocksperAB * 512))
1402      return IMGTOOLERR_CORRUPTIMAGE;
1403#endif
14001404
14011405   if (newEof < fileref->eof)
14021406      fileref->eof = newEof;
r6507r6508
14211425      return err;
14221426
14231427   /* update current pos if beyond new EOF */
1424   /*if (fileref->crPs > newEof)
1425    {
1426        if ((fileref->crPs / 512) != (newEof / 512))
1427            fileref->reload_buf = TRUE;
1428#if 0
1429   if (fileref->crPs > newEof)
1430   {
1431      if ((fileref->crPs / 512) != (newEof / 512))
1432         fileref->reload_buf = TRUE;
14281433
1429        fileref->crPs = newEof;
1430    }*/
1434      fileref->crPs = newEof;
1435   }
1436#endif
14311437
14321438   return IMGTOOLERR_SUCCESS;
14331439}
r6507r6508
40884094         /* this check is unecessary because the current consistency checks
40894095            that forward and back linking match and that node height is correct
40904096            are enough to detect such errors */
4091         /*if (bitmap[cur_node >> 3] & (0x80 >> (cur_node & 7)))
4097#if 0
4098         if (bitmap[cur_node >> 3] & (0x80 >> (cur_node & 7)))
40924099            {
40934100                err = IMGTOOLERR_CORRUPTIMAGE;
40944101                goto bail;
4095            }*/
4102            }
4103#endif
40964104         /* add node in bitmap */
40974105         bitmap[cur_node >> 3] |= (0x80 >> (cur_node & 7));
40984106         /* read node */
r6507r6508
42024210               }
42034211               /* next test is not necessary because we have checked that
42044212                    the root node has no successor */
4205               /*if (i < BTref->treeDepth-1)
4206                    {*/
4213#if 0
4214               if (i < BTref->treeDepth-1)
4215               {
4216#endif
42074217                  data_nodes[i+1].cur_rec++;
4208               /*}
4209                    else
4210                    {
4211                        err = IMGTOOLERR_CORRUPTIMAGE;
4212                        goto bail;
4213                    }*/
4218#if 0
4219               }
4220               else
4221               {
4222                  err = IMGTOOLERR_CORRUPTIMAGE;
4223                  goto bail;
4224               }
4225#endif
42144226            }
42154227            i++;
42164228         }
r6507r6508
43834395      /* this check is unecessary because the current consistency checks that
43844396        forward and back linking match and that node height is correct are
43854397        enough to detect such errors */
4386      /*if (bitmap[cur_node >> 3] & (0x80 >> (cur_node & 7)))
4398#if 0
4399      if (bitmap[cur_node >> 3] & (0x80 >> (cur_node & 7)))
43874400        {
43884401            err = IMGTOOLERR_CORRUPTIMAGE;
43894402            goto bail;
4390        }*/
4403        }
4404#endif
43914405      /* add node in bitmap */
43924406      bitmap[cur_node >> 3] |= (0x80 >> (cur_node & 7));
43934407      /* read map node */
r6507r6508
56505664   mac_dirent cat_info;
56515665   mac_fileref fileref;
56525666   UINT32 fork_len;
5653   /*UINT16 commentID;
5654    mac_str255 comment;*/
5667   /*UINT16 commentID;*/
5668   /*mac_str255 comment;*/
56555669   UINT8 buf[512];
56565670   UINT32 i, run_len;
56575671   imgtoolerr_t err;
r6507r6508
56665680   if (err)
56675681      return err;
56685682
5669   /*if (header.version_old != 0)
5670        return IMGTOOLERR_UNIMPLEMENTED;*/
5683#if 0
5684   if (header.version_old != 0)
5685      return IMGTOOLERR_UNIMPLEMENTED;
5686#endif
56715687   /*mac_strcpy(filename, header.filename);*/
56725688   memset(&cat_info, 0, sizeof(cat_info));
56735689   set_UINT32BE(&cat_info.flFinderInfo.type, 0x3F3F3F3F);
src/mess/tools/imgtool/modules/concept.c
r6507r6508
132132static void concept_image_closeenum(imgtool_directory *enumeration);
133133static imgtoolerr_t concept_image_freespace(imgtool_partition *partition, UINT64 *size);
134134static imgtoolerr_t concept_image_readfile(imgtool_partition *partition, const char *filename, const char *fork, imgtool_stream *destf);
135/*static imgtoolerr_t concept_image_writefile(imgtool_partition *partition, const char *filename, const char *fork, imgtool_stream *sourcef, option_resolution *writeoptions);
135#if 0
136static imgtoolerr_t concept_image_writefile(imgtool_partition *partition, const char *filename, const char *fork, imgtool_stream *sourcef, option_resolution *writeoptions);
136137static imgtoolerr_t concept_image_deletefile(imgtool_partition *partition, const char *filename);
137static imgtoolerr_t concept_image_create(const imgtool_module *mod, imgtool_stream *f, option_resolution *createoptions);*/
138static imgtoolerr_t concept_image_create(const imgtool_module *mod, imgtool_stream *f, option_resolution *createoptions);
139#endif
138140
139141void concept_get_info(const imgtool_class *imgclass, UINT32 state, union imgtoolinfo *info)
140142{
src/mess/video/pdp1.c
r6507r6508
573573{
574574   if (previous_lightpen_state.active)
575575   {
576      /*if (previous_lightpen_state.x>0)
577            pdp1_plot_pixel(bitmap, previous_lightpen_state.x/2-1, previous_lightpen_state.y/2, pen_black);
578        if (previous_lightpen_state.x<1023)
579            pdp1_plot_pixel(bitmap, previous_lightpen_state.x/2+1, previous_lightpen_state.y/2, pen_black);
580        if (previous_lightpen_state.y>0)
581            pdp1_plot_pixel(bitmap, previous_lightpen_state.x/2, previous_lightpen_state.y/2-1, pen_black);
582        if (previous_lightpen_state.y<1023)
583            pdp1_plot_pixel(bitmap, previous_lightpen_state.x/2, previous_lightpen_state.y/2+1, pen_black);*/
576#if 0
577      if (previous_lightpen_state.x>0)
578         pdp1_plot_pixel(bitmap, previous_lightpen_state.x/2-1, previous_lightpen_state.y/2, pen_black);
579      if (previous_lightpen_state.x<1023)
580         pdp1_plot_pixel(bitmap, previous_lightpen_state.x/2+1, previous_lightpen_state.y/2, pen_black);
581      if (previous_lightpen_state.y>0)
582         pdp1_plot_pixel(bitmap, previous_lightpen_state.x/2, previous_lightpen_state.y/2-1, pen_black);
583      if (previous_lightpen_state.y<1023)
584         pdp1_plot_pixel(bitmap, previous_lightpen_state.x/2, previous_lightpen_state.y/2+1, pen_black);
585#endif
584586      pdp1_draw_circle(bitmap, previous_lightpen_state.x, previous_lightpen_state.y, previous_lightpen_state.radius, pen_black);
585587   }
586588}
r6507r6508
590592   if (lightpen_state.active)
591593   {
592594      int color_ = lightpen_state.down ? pen_lightpen_pressed : pen_lightpen_nonpressed;
593      /*if (lightpen_state.x>0)
594            pdp1_plot_pixel(bitmap, lightpen_state.x/2-1, lightpen_state.y/2, color);
595        if (lightpen_state.x<1023)
596            pdp1_plot_pixel(bitmap, lightpen_state.x/2+1, lightpen_state.y/2, color);
597        if (lightpen_state.y>0)
598            pdp1_plot_pixel(bitmap, lightpen_state.x/2, lightpen_state.y/2-1, color);
599        if (lightpen_state.y<1023)
600            pdp1_plot_pixel(bitmap, lightpen_state.x/2, lightpen_state.y/2+1, color);*/
595#if 0
596      if (lightpen_state.x>0)
597         pdp1_plot_pixel(bitmap, lightpen_state.x/2-1, lightpen_state.y/2, color);
598      if (lightpen_state.x<1023)
599         pdp1_plot_pixel(bitmap, lightpen_state.x/2+1, lightpen_state.y/2, color);
600      if (lightpen_state.y>0)
601         pdp1_plot_pixel(bitmap, lightpen_state.x/2, lightpen_state.y/2-1, color);
602      if (lightpen_state.y<1023)
603         pdp1_plot_pixel(bitmap, lightpen_state.x/2, lightpen_state.y/2+1, color);
604#endif
601605      pdp1_draw_circle(bitmap, lightpen_state.x, lightpen_state.y, lightpen_state.radius, color_);
602606   }
603607   previous_lightpen_state = lightpen_state;
src/mess/video/gb.c
r6507r6508
12381238};
12391239
12401240/*
1241  For an AGS in CGB mode this data is:
1241  For an AGS in CGB mode this data is: */
1242#if 0
12421243static const UINT8 abs_oam_fingerprint[0x100] = {
12431244    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
12441245    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
r6507r6508
12571258    0xEE, 0xEE, 0xEE, 0xEE, 0xEE, 0xEE, 0xEE, 0xEE, 0xEE, 0xEE, 0xEE, 0xEE, 0xEE, 0xEE, 0xEE, 0xEE,
12581259    0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF
12591260};
1260*/
1261#endif
12611262
12621263enum {
12631264   GB_LCD_STATE_LYXX_M3=1,
src/mess/video/newport.c
r6507r6508
166166static UINT32 nREX3_Config;
167167static UINT32 nREX3_Status;
168168static UINT8 nREX3_XFerWidth;
169/*static UINT32 nREX3_CurrentX;
170static UINT32 nREX3_CurrentY;*/
169#if 0
170static UINT32 nREX3_CurrentX;
171static UINT32 nREX3_CurrentY;
172#endif
171173static UINT32 nREX3_Kludge_SkipLine;
172174
173175static UINT32 *video_base;
src/mess/video/aim65.c
r6507r6508
109109
110110WRITE8_DEVICE_HANDLER( aim65_printer_data_a )
111111{
112/*  if (flag_a == 0) {
113        printerRAM[(printer_y * 20) + printer_x] |= data;
114        flag_a = 1;
115    }*/
112#if 0
113   if (flag_a == 0) {
114      printerRAM[(printer_y * 20) + printer_x] |= data;
115      flag_a = 1;
116   }
117#endif
116118}
117119
118120WRITE8_DEVICE_HANDLER( aim65_printer_data_b )
119121{
120/*  data &= 0x03;
122#if 0
123   data &= 0x03;
121124
122    if (flag_b == 0) {
123        printerRAM[(printer_y * 20) + printer_x ] |= (data << 8);
124        flag_b = 1;
125    }*/
125   if (flag_b == 0) {
126      printerRAM[(printer_y * 20) + printer_x ] |= (data << 8);
127      flag_b = 1;
128   }
129#endif
126130}
127131
128132VIDEO_START( aim65 )
129133{
130134   print_timer = timer_alloc(machine, aim65_printer_timer, NULL);
131135
132   /*
133    videoram_size = 600 * 10 * 2;
134    printerRAM = auto_alloc_array(machine, UINT16, videoram_size / 2);
135    memset(printerRAM, 0, videoram_size);
136    printer_x = 0;
137    printer_y = 0;
138    printer_dir = 0;
139    flag_a=0;
140    flag_b=0;
136#if 0
137   videoram_size = 600 * 10 * 2;
138   printerRAM = auto_alloc_array(machine, UINT16, videoram_size / 2);
139   memset(printerRAM, 0, videoram_size);
140   printer_x = 0;
141   printer_y = 0;
142   printer_dir = 0;
143   flag_a=0;
144   flag_b=0;
141145
142146
143    printer_level = 0;
147   printer_level = 0;
144148
145    VIDEO_START_CALL(generic);
146    */
149   VIDEO_START_CALL(generic);
150#endif
147151}
148152
149153
r6507r6508
151155VIDEO_UPDATE( aim65 )
152156{
153157   /* Display printer output */
154/*  dir = 1;
155    for(y = 0; y<500;y++)
156    {
157        for(x = 0; x< 10; x++)
158        {
159            if (dir == 1) {
160                data = printerRAM[y * 10  + x];
161            }
162            else {
163                data = printerRAM[(y * 10) + (9 - x)];
164            }
158#if 0
159   dir = 1;
160   for(y = 0; y<500;y++)
161   {
162      for(x = 0; x< 10; x++)
163      {
164         if (dir == 1) {
165            data = printerRAM[y * 10  + x];
166         }
167         else {
168            data = printerRAM[(y * 10) + (9 - x)];
169         }
165170
166171
167            for (b = 0; b<10; b++)
168            {
169                color=machine->pens[(data & 0x1)?2:0];
170                plot_pixel(bitmap,700 - ((b * 10) + x), y,color);
171                data = data >> 1;
172            }
173        }
172         for (b = 0; b<10; b++)
173         {
174            color=machine->pens[(data & 0x1)?2:0];
175            plot_pixel(bitmap,700 - ((b * 10) + x), y,color);
176            data = data >> 1;
177         }
178      }
174179
175        if (dir == 0)
176            dir = 1;
177        else
178            dir = 0;
179    } */
180      if (dir == 0)
181         dir = 1;
182      else
183         dir = 0;
184   }
185#endif
180186
181187   return 0;
182188}
src/mess/video/x68k.c
r6507r6508
490490
491491READ16_HANDLER( x68k_crtc_r )
492492{
493/*  switch(offset)
494    {
495    default:
496        logerror("CRTC: [%08x] Read from CRTC register %i\n",activecpu_get_pc(),offset);
497        return 0xff;
498    }*/
493#if 0
494   switch(offset)
495   {
496   default:
497      logerror("CRTC: [%08x] Read from CRTC register %i\n",activecpu_get_pc(),offset);
498      return 0xff;
499   }
500#endif
501
499502   if(offset < 24)
500503   {
501504//      logerror("CRTC: [%08x] Read %04x from CRTC register %i\n",cpu_get_pc(cputag_get_cpu(space->machine, "maincpu")),x68k_sys.crtc.reg[offset],offset);
src/mess/video/tx0.c
r6507r6508
418418   switch (character)
419419   {
420420   case 020:
421#if 0
421422      /* color shift */
422      /*color = color_typewriter_black;
423        color = color_typewriter_red;*/
423      color = color_typewriter_black;
424      color = color_typewriter_red;
425#endif
424426      break;
425427
426428   case 043:
src/mess/video/intv.c
r6507r6508
1414
1515   VIDEO_START_CALL(generic_bitmapped);
1616
17/*
17#if 0
1818    for (i = 0; i < 8; i++) {
1919        struct intv_sprite_type* s = &intv_sprite[i];
2020        s->visible = 0;
r6507r6508
5757        intv_gram[i] = 0;
5858        intv_gramdirtybytes[i] = 1;
5959    }
60*/
60#endif
6161}
6262
6363
r6507r6508
588588#endif
589589
590590/* TBD: need to handle sprites behind foreground? */
591/*
591#ifdef UNUSED_FUNCTION
592592static void draw_sprites(running_machine *machine, bitmap_t *bitmap, int behind_foreground)
593593{
594594    int i;
r6507r6508
682682        }
683683    }
684684}
685*/
685#endif
686686
687687static void draw_borders(running_machine *machine, bitmap_t *bm)
688688{
src/mess/video/tms3556.c
r6507r6508
538538
539539   double_lines = 0;
540540
541   /*if (vdp.controlRegs[4] & 0x??)
542    {   // interlaced mode
543        ln = BITMAP_ADDR16(bmp, line, vdp.field);
544    }
545    else*/
541#if 0
542   if (vdp.controlRegs[4] & 0x??
543   {   // interlaced mode
544      ln = BITMAP_ADDR16(bmp, line, vdp.field);
545   }
546   else
547#endif
546548   {   /* non-interlaced mode */
547549      ln = BITMAP_ADDR16(bmp, line, 0);
548550      ln2 = BITMAP_ADDR16(bmp, line, 1);
src/mess/video/733_asr.c
r6507r6508
4646
4747static struct
4848{
49   /*UINT8 OutQueue[ASROutQueueSize];
50    int OutQueueHead;
51    int OutQueueLen;*/
49#if 0
50   UINT8 OutQueue[ASROutQueueSize];
51   int OutQueueHead;
52   int OutQueueLen;
53#endif
5254
5355   UINT8 recv_buf;
5456   UINT8 xmit_buf;
src/mess/video/sed1330.c
r6507r6508
194194
195195   switch (sed1330->ir)
196196   {
197/*
198    case SED1330_INSTRUCTION_SLEEP_IN:
199        break;
200*/
197#if 0
198   case SED1330_INSTRUCTION_SLEEP_IN:
199      break;
200#endif
201201   case SED1330_INSTRUCTION_CSRDIR_RIGHT:
202202   case SED1330_INSTRUCTION_CSRDIR_LEFT:
203203   case SED1330_INSTRUCTION_CSRDIR_UP:
r6507r6508
489489         logerror("SED1330 '%s' Invalid parameter byte %02x\n", device->tag, data);
490490      }
491491      break;
492/*
493    case SED1330_INSTRUCTION_CSRR:
494        break;
495*/
492#if 0
493   case SED1330_INSTRUCTION_CSRR:
494      break;
495#endif
496496   case SED1330_INSTRUCTION_MWRITE:
497497      if (LOG) logerror("SED1330 '%s' Memory Write %02x to %04x (row %u col %u line %u)\n", device->tag, data, sed1330->csr, sed1330->csr/80/8, sed1330->csr%80, sed1330->csr/80);
498498
r6507r6508
500500
501501      increment_csr(sed1330);
502502      break;
503/*
504    case SED1330_INSTRUCTION_MREAD:
505        break;
506*/
503#if 0
504   case SED1330_INSTRUCTION_MREAD:
505      break;
506#endif
507507   default:
508508      logerror("SED1330 '%s' Unsupported instruction %02x\n", device->tag, sed1330->ir);
509509   }
src/mess/includes/cybiko.h
r6507r6508
2424DRIVER_INIT( cybikoxt );
2525
2626// non-volatile ram handler
27/*
27#if 0
2828NVRAM_HANDLER( cybikov1 );
2929NVRAM_HANDLER( cybikov2 );
3030NVRAM_HANDLER( cybikoxt );
31*/
31#endif
3232
3333// machine start
3434MACHINE_START( cybikov1 );
src/mess/machine/strata.c
r6507r6508
293293            return READ_BLOCKLOCK(id, offset >> BLOCK_ADDRESS_SHIFT);
294294         }
295295         return 0;   // default case
296      /*case 0x03: // master lock config
297            if (strata[id].flash_master_lock)
298                return 1;
299            else
300                return 0;
301        */
296#if 0
297      case 0x03: // master lock config
298         if (strata[id].flash_master_lock)
299            return 1;
300         else
301            return 0;
302#endif
302303
303304      /* CFI query identification string */
304305      case 0x10:
src/mess/machine/at45dbxx.c
r6507r6508
389389   mame_fwrite( file, flash->data, flash->size);
390390}
391391
392/*
392#ifdef UNUSED_FUNCTION
393393NVRAM_HANDLER( at45dbxx )
394394{
395395    _logerror( 0, ("nvram_handler_at45dbxx (%p/%d)\n", file, read_or_write));
r6507r6508
409409        }
410410    }
411411}
412*/
412#endif
413413
414414
415415/*-------------------------------------------------
src/mess/machine/at45dbxx.h
r6507r6508
5555void at45dbxx_save(const device_config *device, mame_file *file);
5656
5757// non-volatile ram handler
58/*
59NVRAM_HANDLER( at45dbxx );
60*/
58//NVRAM_HANDLER( at45dbxx );
6159
6260#endif
src/mess/machine/gb.c
r6507r6508
942942            {
943943               /* We should test for this case , but the code below won't
944944                       work with the current setup */
945               /* if (sgb_bytecount == 16)
946                    {
947                        logerror("SGB: end of block is not zero!");
948                        sgb_start = 0;
949                    }*/
945#if 0
946               if (sgb_bytecount == 16)
947               {
948                  logerror("SGB: end of block is not zero!");
949                  sgb_start = 0;
950               }
951#endif
950952               sgb_data[sgb_bytecount] >>= 1;
951953               sgb_data[sgb_bytecount] |= 0x80;
952954               sgb_bitcount++;
src/mess/machine/990_hd.c
r6507r6508
5050   return (word.bytes[0] << 24) | (word.bytes[1] << 16) | (word.bytes[2] << 8) | word.bytes[3];
5151}
5252
53/*INLINE void set_UINT32BE(UINT32BE *word, UINT32 data)
53#ifdef UNUSED_FUNCTION
54INLINE void set_UINT32BE(UINT32BE *word, UINT32 data)
5455{
5556    word->bytes[0] = (data >> 24) & 0xff;
5657    word->bytes[1] = (data >> 16) & 0xff;
5758    word->bytes[2] = (data >> 8) & 0xff;
5859    word->bytes[3] = data & 0xff;
59}*/
60}
61#endif
6062
6163/* disk image header */
6264typedef struct disk_image_header
r6507r6508
185187}
186188
187189
188/*DEVICE_STOP( ti990_hd )
190#ifdef UNUSED_FUNCTION
191DEVICE_STOP( ti990_hd )
189192{
190    d->img = NULL;
191}*/
193   d->img = NULL;
194}
195#endif
192196
193197/*
194198    Initialize hard disk unit and open a hard disk image
src/mess/machine/smartmed.c
r6507r6508
3636   return (word.bytes[0] << 24) | (word.bytes[1] << 16) | (word.bytes[2] << 8) | word.bytes[3];
3737}
3838
39/*INLINE void set_UINT32BE(UINT32BE *word, UINT32 data)
39#ifdef UNUSED_FUNCTION
40INLINE void set_UINT32BE(UINT32BE *word, UINT32 data)
4041{
41    word->bytes[0] = (data >> 24) & 0xff;
42    word->bytes[1] = (data >> 16) & 0xff;
43    word->bytes[2] = (data >> 8) & 0xff;
44    word->bytes[3] = data & 0xff;
45}*/
42   word->bytes[0] = (data >> 24) & 0xff;
43   word->bytes[1] = (data >> 16) & 0xff;
44   word->bytes[2] = (data >> 8) & 0xff;
45   word->bytes[3] = data & 0xff;
46}
47#endif
4648
4749/* SmartMedia image header */
4850typedef struct disk_image_header
src/mess/machine/vc1541.c
r6507r6508
423423   return image_offset[track - 1] + sector * 256;
424424}
425425
426/*
426#ifdef UNUSED_FUNCTION
427427// WARNING: this would work with a d64 image... it has to be adapted to work with GCR image we store at loading time
428428static void image_offset2tracksector( int offset )
429429{
r6507r6508
433433
434434    do
435435    {
436    helper -= (d64_sectors_per_track[++i] * 256);
436        helper -= (d64_sectors_per_track[++i] * 256);
437437    } while (helper > 0);
438438
439439    track = i;
r6507r6508
442442
443443    logerror("We are reading at offset %d, which is in track %d and sector %d \n", offset, track, sector);
444444}
445*/
445#endif
446446
447447
448448/* These functions return the Disk ID stored in the disk BAM */
r6507r6508
562562
563563
564564/* This could be of use if we ever implement saving in .d64 format, to convert back GCR -> d64 */
565/*
565#if 0
566566static const int gcr_2_bin[] =
567567{
568568    -1, -1,   -1,   -1,
r6507r6508
574574    -1, 0x09, 0x0a, 0x0b,
575575    -1, 0x0d, 0x0e, -1
576576};
577*/
577#endif
578578
579579
580580/* gcr_double_2_gcr takes 4 bytes (a, b, c, d) and shuffles their nibbles to obtain 5 bytes in dest */
src/mess/machine/sst39vfx.c
r6507r6508
103103#define OFFSET_SWAP(offset,width) (offset & (~(width - 1))) | (width - 1 - (offset & (width - 1)))
104104*/
105105
106/*
106#ifdef UNUSED_FUNCTION
107107READ8_HANDLER( sst39vfx_r )
108108{
109    _logerror( 1, ("sst39vfx_r (%08X)\n", offset));
110    if (flash->swap) offset = OFFSET_SWAP( offset, flash->swap);
111    return flash->data[offset];
109   _logerror( 1, ("sst39vfx_r (%08X)\n", offset));
110   if (flash->swap) offset = OFFSET_SWAP( offset, flash->swap);
111   return flash->data[offset];
112112}
113*/
114113
115/*
116114WRITE8_HANDLER( sst39vfx_w )
117115{
118    _logerror( 1, ("sst39vfx_w (%08X/%02X)\n", offset, data));
119    if (flash->swap) offset = OFFSET_SWAP( offset, flash->swap);
120    flash->data[offset] = data;
116   _logerror( 1, ("sst39vfx_w (%08X/%02X)\n", offset, data));
117   if (flash->swap) offset = OFFSET_SWAP( offset, flash->swap);
118   flash->data[offset] = data;
121119}
122*/
120#endif
123121
124122static void sst39vfx_swap( const device_config *device)
125123{
r6507r6508
154152   if (flash->swap) sst39vfx_swap(device);
155153}
156154
157/*
155#if 0
158156NVRAM_HANDLER( sst39vfx )
159157{
160158    _logerror( 0, ("nvram_handler_sst39vfx (%p/%d)\n", file, read_or_write));
r6507r6508
174172        }
175173    }
176174}
177*/
175#endif
178176
179177
180178/*-------------------------------------------------
src/mess/machine/sst39vfx.h
r6507r6508
6161UINT32 sst39vfx_get_size( const device_config *device );
6262
6363// read/write handler
64/*
64#if 0
6565READ8_HANDLER( sst39vfx_r );
6666WRITE8_HANDLER( sst39vfx_w );
67*/
67#endif
6868
6969// load/save
7070void sst39vfx_load(const device_config *device, mame_file *file);
7171void sst39vfx_save(const device_config *device, mame_file *file);
7272
7373// non-volatile ram handler
74/*
75NVRAM_HANDLER( sst39vfx );
76*/
74//NVRAM_HANDLER( sst39vfx );
7775
7876#endif
src/mess/machine/990_dk.c
r6507r6508
139139   /*UINT8 revolution_count;*/
140140   chrn_id id;
141141
142   /*revolution_count = 0;
142   /*revolution_count = 0;*/
143143
144    while (revolution_count < 2)
145    {*/
144   /*while (revolution_count < 2)*/
145   /*{*/
146146      if (floppy_drive_get_next_id(fd800.drv[unit].img, head, &id))
147147      {
148148         if (cylinder_id)
src/mess/machine/z80sti.c
r6507r6508
509509      LOG(("Z80STI '%s' Timer A Data Register: %x\n", device->tag, data));
510510      z80sti->tdr[TIMER_A] = data;
511511      break;
512/*
512#if 0
513513    case Z80STI_REGISTER_UCR:
514514        z80sti->ucr = data;
515515        break;
r6507r6508
525525    case Z80STI_REGISTER_UDR:
526526        z80sti->udr = data;
527527        break;
528*/
528#endif
529529   default:
530530      LOG(("Z80STI '%s' Unsupported Register %x\n", device->tag, offset & 0x0f));
531531   }
src/mess/machine/at.c
r6507r6508
726726}
727727
728728
729/*
729#ifdef UNUSED_FUNCTION
730730static void at_map_vga_memory(running_machine *machine, offs_t begin, offs_t end, read8_space_func rh, write8_space_func wh)
731731{
732732   int buswidth;
r6507r6508
743743         break;
744744   }
745745}
746#endif
746747
747*/
748748
749749
750750
src/mess/machine/99_usbsm.h
r6507r6508
1/*DEVICE_START( ti99_sm );
1#if 0
2DEVICE_START( ti99_sm );
23DEVICE_IMAGE_LOAD( ti99_sm );
3DEVICE_IMAGE_UNLOAD( ti99_sm );*/
4DEVICE_IMAGE_UNLOAD( ti99_sm );
5#endif
46
57void ti99_usbsm_init(running_machine *machine);
68int ti99_usbsm_reset(running_machine *machine, int in_tms9995_mode);
src/mess/machine/amstrad.c
r6507r6508
19971997   {
19981998      return 0x00;
19991999   }
2000/*      if(offset == 0x0c0f)  // DMA status and control
2000#if 0
2001   if(offset == 0x0c0f)  // DMA status and control
20012002        {
20022003            int result = 0;
20032004            if(amstrad_plus_irq_cause == 0x00)
r6507r6508
20102011                result |= 0x80;
20112012            return result;
20122013        }
2013*/
2014#endif
20142015   return amstrad_plus_asic_ram[offset+0x2000];
20152016}
20162017
r6507r6508
35793580}
35803581
35813582
3582/*static DEVICE_IMAGE_LOAD( aleste )
3583#if 0
3584static DEVICE_IMAGE_LOAD( aleste )
35833585{
35843586    if (device_load_basicdsk_floppy(image)==INIT_PASS)
35853587    {
r6507r6508
35873589        return INIT_PASS;
35883590    }
35893591    return INIT_FAIL;
3590}*/
3592}
3593#endif
src/mess/machine/sms.c
r6507r6508
10451045   {
10461046      if (!strncmp((char*)&magic[0x7ff0], "TMR SEGA", 8))
10471047      {
1048         /* Technically, it should be this, but remove for now until verified:
1049            if (!strcmp(sysname, "gamegear"))
1050            {
1051                if ((unsigned char)magic[0x7ffd] < 0x50)
1052                    retval = IMAGE_VERIFY_PASS;
1053            }
1054            if (!strcmp(sysname, "sms"))
1055            {
1056                if ((unsigned char)magic[0x7ffd] >= 0x50)
1057                    retval = IMAGE_VERIFY_PASS;
1058            }
1059            */
1048#if 0
1049         /* Technically, it should be this, but remove for now until verified: */
1050         if (!strcmp(sysname, "gamegear"))
1051         {
1052            if ((unsigned char)magic[0x7ffd] < 0x50)
1053               retval = IMAGE_VERIFY_PASS;
1054         }
1055         if (!strcmp(sysname, "sms"))
1056         {
1057            if ((unsigned char)magic[0x7ffd] >= 0x50)
1058               retval = IMAGE_VERIFY_PASS;
1059         }
1060#endif
10601061         retval = IMAGE_VERIFY_PASS;
10611062      }
1062   }
10631063
1064#if 0
10641065      /* Check at $81f0 also */
1065      //if (!retval) {
1066    //  if (!strncmp(&magic[0x81f0], "TMR SEGA", 8)) {
1067            /* Technically, it should be this, but remove for now until verified:
1068                if (!strcmp(sysname, "gamegear"))
1066      if (!retval)
1067      {
1068         if (!strncmp(&magic[0x81f0], "TMR SEGA", 8))
10691069         {
1070                    if ((unsigned char)magic[0x81fd] < 0x50)
1071                        retval = IMAGE_VERIFY_PASS;
1072                }
1073                if (!strcmp(sysname, "sms"))
1074         {
1075                    if ((unsigned char)magic[0x81fd] >= 0x50)
1076                        retval = IMAGE_VERIFY_PASS;
1077                }
1078                */
1079       //  retval = IMAGE_VERIFY_PASS;
1080      //  }
1081      //}
1070#if 0
1071            /* Technically, it should be this, but remove for now until verified: */
1072            if (!strcmp(sysname, "gamegear"))
1073            {
1074               if ((unsigned char)magic[0x81fd] < 0x50)
1075                  retval = IMAGE_VERIFY_PASS;
1076            }
1077            if (!strcmp(sysname, "sms"))
1078            {
1079               if ((unsigned char)magic[0x81fd] >= 0x50)
1080                  retval = IMAGE_VERIFY_PASS;
1081            }
1082#endif
1083             retval = IMAGE_VERIFY_PASS;
1084         }
1085      }
1086#endif
10821087
1088   }
1089
10831090   return retval;
10841091}
10851092
src/mess/machine/compis.c
r6507r6508
478478/*-------------------------------------------------------------------------*/
479479static void compis_usart_rxready(const device_config *device, int state)
480480{
481/*
482    if (state)
483        compis_pic_irq(COMPIS_IRQ_8251_RXRDY);
484*/
481#if 0
482   if (state)
483      compis_pic_irq(COMPIS_IRQ_8251_RXRDY);
484#endif
485485}
486486
487487const msm8251_interface compis_usart_interface=
src/mess/machine/pcf8593.c
r6507r6508
420420   mame_fwrite( file, rtc->data, sizeof(rtc->data));
421421}
422422
423/*
423#ifdef UNUSED_FUNCTION
424424NVRAM_HANDLER( pcf8593 )
425425{
426426    _logerror( 0, ("nvram_handler_pcf8593 (%p/%d)\n", file, read_or_write));
r6507r6508
440440        }
441441    }
442442}
443*/
443#endif
444444
445445
446446/*-------------------------------------------------
src/mess/machine/990_tap.c
r6507r6508
122122   t->eot = 0;
123123}
124124
125/*DEVICE_STOP( ti990_tape )
125#ifdef UNUSED_FUNCTION
126DEVICE_STOP( ti990_tape )
126127{
127    d->img = NULL;
128}*/
128   d->img = NULL;
129}
130#endif
129131
130132/*
131133    Open a tape image
src/mess/machine/mz700.c
r6507r6508
526526        Bit 3 outputs a string of pulses to the Clock pin, and therefore cannot be used to control
527527        the motor directly.
528528        For the moment, the user can use the UI to select play, stop, etc.
529        If you load from the command-line or the software-picker, type in L <enter> immediately.
529        If you load from the command-line or the software-picker, type in L <enter> immediately. */
530#if 0
531   cassette_change_state(
532      devtag_get_device(device->machine, "cassette"),
533      ((data & 0x08) && mz700_motor_on) ? CASSETTE_MOTOR_ENABLED : CASSETTE_MOTOR_DISABLED,
534      CASSETTE_MOTOR_DISABLED);
530535
531    cassette_change_state(
532        devtag_get_device(device->machine, "cassette"),
533        ((data & 0x08) && mz700_motor_on) ? CASSETTE_MOTOR_ENABLED : CASSETTE_MOTOR_DISABLED,
534        CASSETTE_MOTOR_DISABLED);
536#endif
535537
536    */
537
538538   LOG(2,"mz700_pio_port_c_w",("%02X\n", data),device->machine);
539539
540540   cassette_output(devtag_get_device(device->machine, "cassette"), (data & 0x02) ? +1.0 : -1.0);
src/mess/machine/lisa.c
r6507r6508
222222   if (parity_error_pending)
223223      return;   /* don't touch anything... */
224224
225   /*if (RSIR)
226        // serial interrupt
227        cputag_set_input_line_and_vector(machine, "maincpu", M68K_IRQ_6, ASSERT_LINE, M68K_INT_ACK_AUTOVECTOR);
228    else if (int0)
229        // external interrupt
230        cputag_set_input_line_and_vector(machine, "maincpu", M68K_IRQ_5, ASSERT_LINE, M68K_INT_ACK_AUTOVECTOR);
231    else if (int1)
232        // external interrupt
233        cputag_set_input_line_and_vector(machine, "maincpu", M68K_IRQ_4, ASSERT_LINE, M68K_INT_ACK_AUTOVECTOR);
234    else if (int2)
235        // external interrupt
236        cputag_set_input_line_and_vector(machine, "maincpu", M68K_IRQ_3, ASSERT_LINE, M68K_INT_ACK_AUTOVECTOR);
237    else*/ if (KBIR)
225#if 0
226   if (RSIR)
227      // serial interrupt
228      cputag_set_input_line_and_vector(machine, "maincpu", M68K_IRQ_6, ASSERT_LINE, M68K_INT_ACK_AUTOVECTOR);
229   else if (int0)
230      // external interrupt
231      cputag_set_input_line_and_vector(machine, "maincpu", M68K_IRQ_5, ASSERT_LINE, M68K_INT_ACK_AUTOVECTOR);
232   else if (int1)
233      // external interrupt
234      cputag_set_input_line_and_vector(machine, "maincpu", M68K_IRQ_4, ASSERT_LINE, M68K_INT_ACK_AUTOVECTOR);
235   else if (int2)
236      // external interrupt
237      cputag_set_input_line_and_vector(machine, "maincpu", M68K_IRQ_3, ASSERT_LINE, M68K_INT_ACK_AUTOVECTOR);
238   else
239#endif
240   if (KBIR)
238241      /* COPS VIA interrupt */
239242      cputag_set_input_line_and_vector(machine, "maincpu", M68K_IRQ_2, ASSERT_LINE, M68K_INT_ACK_AUTOVECTOR);
240243   else if (FDIR || VTIR)
r6507r6508
446449   int diff_x = 0, diff_y = 0;
447450   int new_mx, new_my;
448451
449   /*if (COPS_force_unplug)
450        return;*/   /* ???? */
452#if 0
453   if (COPS_force_unplug)
454      return;   /* ???? */
455#endif
451456
452457   new_mx = input_port_read(machine, "MOUSE_X");
453458   new_my = input_port_read(machine, "MOUSE_Y");
r6507r6508
10821087#endif
10831088}
10841089
1085/*void init_lisa1(void)
1090#ifdef UNUSED_FUNCTION
1091void init_lisa1(void)
10861092{
1087    lisa_model = lisa1;
1088    lisa_features.has_fast_timers = 0;
1089    lisa_features.floppy_hardware = twiggy;
1090    lisa_features.has_double_sided_floppy = 1;
1091    lisa_features.has_mac_xl_video = 0;
1092}*/
1093   lisa_model = lisa1;
1094   lisa_features.has_fast_timers = 0;
1095   lisa_features.floppy_hardware = twiggy;
1096   lisa_features.has_double_sided_floppy = 1;
1097   lisa_features.has_mac_xl_video = 0;
1098}
1099#endif
10931100
10941101DRIVER_INIT( lisa2 )
10951102{
r6507r6508
13241331      break;
13251332   case 5:
13261333      /*HDS = offset & 1;*/      /* head select (-> disk side) on twiggy */
1327      /*if (lisa_features.floppy_hardware == twiggy)
1328            twiggy_set_head_line(offset & 1);
1329        else*/ if (lisa_features.floppy_hardware == sony_lisa210)
1334#if 0
1335      if (lisa_features.floppy_hardware == twiggy)
1336         twiggy_set_head_line(offset & 1);
1337      else
1338#endif
1339      if (lisa_features.floppy_hardware == sony_lisa210)
13301340         sony_set_sel_line(devtag_get_device(machine, "fdc"), offset & 1);
13311341      break;
13321342   case 6:
r6507r6508
13831393
13841394   case 2:   /* writes the PWM register */
13851395      /* the written value is used to generate the motor speed control signal */
1386      /*if (lisa_features.floppy_hardware == twiggy)
1387            twiggy_set_speed((256-data) * ??? + ???);
1388        else*/ if (lisa_features.floppy_hardware == sony_lisa210)
1396#if 0
1397      if (lisa_features.floppy_hardware == twiggy)
1398         twiggy_set_speed((256-data) * 1.3 /* ??? */ + 237 /* ??? */);
1399      else
1400#endif
1401      if (lisa_features.floppy_hardware == sony_lisa210)
13891402         sony_set_speed(((256-data) * 1.3) + 237);
13901403      break;
13911404
src/mess/machine/geneve.c
r6507r6508
325325   {
326326      /* Weirdly enough, we are always seeing some problems even though
327327        everything is working fine. */
328      /*attotime time_to_ready = double_to_attotime(tms5220_time_to_ready());
329        logerror("ti99/4a speech says aaargh!\n");
330        logerror("(time to ready: %f -> %d)\n", time_to_ready, (int) ceil(3000000*time_to_ready));*/
328#if 0
329      attotime time_to_ready = double_to_attotime(tms5220_time_to_ready());
330      logerror("ti99/4a speech says aaargh!\n");
331      logerror("(time to ready: %f -> %d)\n", time_to_ready, (int) ceil(3000000*time_to_ready));
332#endif
331333   }
332334}
333335
r6507r6508
653655            page_lookup[offset-0xf110] = data;
654656            return;
655657
656         /*case 0xf118:  // read-only register???
657                key_buf = data;
658                return*/
658#if 0
659         case 0xf118:  // read-only register???
660            key_buf = data;
661            return;
662#endif
659663
660664         case 0xf120:
661665            sn76496_w(devtag_get_device(space->machine, "sn76496"), 0, data);
r6507r6508
706710            page_lookup[offset-0x8000] = data;
707711            return;
708712
709         /*case 0x8008:  // read-only register???
710                key_buf = data;
711                return*/
713#if 0
714         case 0x8008:  // read-only register???
715            key_buf = data;
716            return
717#endif
712718
713719         case 0x8010:
714720         case 0x8011:
r6507r6508
12741280/*
12751281    set the state of int2 (called by tms9928 core)
12761282*/
1277/*void tms9901_set_int2(int state)
1283#ifdef UNUSED_FUNCTION
1284void tms9901_set_int2(int state)
12781285{
1279    tms9901_set_single_int(devtag_get_device(machine, "tms9901"), 2, state);
1280}*/
1286   tms9901_set_single_int(devtag_get_device(machine, "tms9901"), 2, state);
1287}
1288#endif
12811289
12821290/*
12831291    Called by the 9901 core whenever the state of INTREQ and IC0-3 changes
src/mess/machine/99_ide.c
r6507r6508
314314            rtc65271_w(0, 0, data);
315315         break;
316316      case 2:      /* IDE registers set 1 (CS1Fx) */
317#if 0
317318         /* latch write */
318         /*if (offset & 1)
319                output_latch = (output_latch & 0xff00) | data;
320            else
321                output_latch = (output_latch & 0x00ff) | (data << 8);*/
319         if (offset & 1)
320            output_latch = (output_latch & 0xff00) | data;
321         else
322            output_latch = (output_latch & 0x00ff) | (data << 8);
323#endif
322324         /* latch write - bytes are swapped in 2004 IDE card */
323325         if (offset & 1)
324326            output_latch = (output_latch & 0x00ff) | (data << 8);
r6507r6508
332334         }
333335         break;
334336      case 3:      /* IDE registers set 2 (CS3Fx) */
337#if 0
335338         /* latch write */
336         /*if (offset & 1)
337                output_latch = (output_latch & 0xff00) | data;
338            else
339                output_latch = (output_latch & 0x00ff) | (data << 8);*/
339         if (offset & 1)
340            output_latch = (output_latch & 0xff00) | data;
341         else
342            output_latch = (output_latch & 0x00ff) | (data << 8);
343#endif
340344         /* latch write - bytes are swapped in 2004 IDE card */
341345         if (offset & 1)
342346            output_latch = (output_latch & 0x00ff) | (data << 8);
src/mess/machine/cybiko.c
r6507r6508
108108// NVRAM HANDLERS //
109109////////////////////
110110
111/*
111#ifdef UNUSED_FUNCTION
112112NVRAM_HANDLER( cybikov1 )
113113{
114    _logerror( 0, ("nvram_handler_cybikov1 (%p/%d)\n", file, read_or_write));
115    nvram_handler_at45dbxx( machine, file, read_or_write);
116    nvram_handler_pcf8593( machine, file, read_or_write);
114   _logerror( 0, ("nvram_handler_cybikov1 (%p/%d)\n", file, read_or_write));
115   nvram_handler_at45dbxx( machine, file, read_or_write);
116   nvram_handler_pcf8593( machine, file, read_or_write);
117117}
118*/
119118
120/*
121119NVRAM_HANDLER( cybikov2 )
122120{
123    _logerror( 0, ("nvram_handler_cybikov2 (%p/%d)\n", file, read_or_write));
124    nvram_handler_at45dbxx( machine, file, read_or_write);
125    nvram_handler_sst39vfx( machine, file, read_or_write);
126    nvram_handler_pcf8593( machine, file, read_or_write);
121   _logerror( 0, ("nvram_handler_cybikov2 (%p/%d)\n", file, read_or_write));
122   nvram_handler_at45dbxx( machine, file, read_or_write);
123   nvram_handler_sst39vfx( machine, file, read_or_write);
124   nvram_handler_pcf8593( machine, file, read_or_write);
127125}
128*/
129126
130/*
131127NVRAM_HANDLER( cybikoxt )
132128{
133    _logerror( 0, ("nvram_handler_cybikoxt (%p/%d)\n", file, read_or_write));
134    nvram_handler_sst39vfx( machine, file, read_or_write);
135    nvram_handler_pcf8593( machine, file, read_or_write);
129   _logerror( 0, ("nvram_handler_cybikoxt (%p/%d)\n", file, read_or_write));
130   nvram_handler_sst39vfx( machine, file, read_or_write);
131   nvram_handler_pcf8593( machine, file, read_or_write);
136132}
137*/
133#endif
138134
139135///////////////////
140136// MACHINE START //
src/mess/machine/genesis.c
r6507r6508
9696      lastoffset = offset; lastdata = data;
9797      switch (offset << 1)
9898      {
99         case 0x00: /* write protect register // this is not a write protect, but seems to do nothing useful but reset bank0 after the checksum test (red screen otherwise) */
99         case 0x00: /* write protect register */ // this is not a write protect, but seems to do nothing useful but reset bank0 after the checksum test (red screen otherwise)
100100            if (data == 2)
101101            {
102102               memcpy(ROM + 0x000000, ROM + 0x400000 + (((data & 0xf) - 2) * 0x080000), 0x080000);
r6507r6508
127127   }
128128}
129129
130/*static WRITE16_HANDLER( g_l3alt_pdat_w )
130#ifdef UNUSED_FUNCTION
131static WRITE16_HANDLER( g_l3alt_pdat_w )
131132{
132    g_l3alt_pdat = data;
133   g_l3alt_pdat = data;
133134}
134135
135136static WRITE16_HANDLER( g_l3alt_pcmd_w )
136137{
137    g_l3alt_pcmd = data;
138   g_l3alt_pcmd = data;
138139}
139*/
140#endif
140141
141142static READ16_HANDLER( g_l3alt_prot_r )
142143{
src/mess/machine/99_hsgpl.c
r6507r6508
637637      case 15:
638638         /* feeprom is normally written to using GPL ports, and I don't know
639639            writing through >6000 page is enabled */
640         /*at29c040a_w(feeprom_rom6, 1 + 2*offset + 0x2000*hsgpl.cur_bank + 0x8000*port, data);
641            at29c040a_w(feeprom_rom6, 2*offset + 0x2000*hsgpl.cur_bank + 0x8000*port, data >> 8);*/
640#if 0
641         at29c040a_w(feeprom_rom6, 1 + 2*offset + 0x2000*hsgpl.cur_bank + 0x8000*port, data);
642         at29c040a_w(feeprom_rom6, 2*offset + 0x2000*hsgpl.cur_bank + 0x8000*port, data >> 8);
643#endif
642644         break;
643645
644646      case 32:
src/mess/machine/pc.c
r6507r6508
12951295}
12961296
12971297
1298/*
1298#ifdef UNUSED_FUNCTION
12991299static void pc_map_vga_memory(running_machine *machine, offs_t begin, offs_t end, read8_space_func rh, write8_space_func wh)
13001300{
13011301   const address_space *space = cpu_get_address_space( machine->firstcpu, ADDRESS_SPACE_PROGRAM );
r6507r6508
13161316         break;
13171317   }
13181318}
1319*/
1319#endif
13201320
13211321static READ8_HANDLER( input_port_0_r ) { return input_port_read(space->machine, "IN0"); }
13221322
src/mess/machine/99_hsgpl.h
r6507r6508
1/*DEVICE_IMAGE_LOAD(ti99_hsgpl);
2DEVICE_IMAGE_UNLOAD(ti99_hsgpl);*/
1#if 0
2DEVICE_IMAGE_LOAD(ti99_hsgpl);
3DEVICE_IMAGE_UNLOAD(ti99_hsgpl);
4#endif
35int ti99_hsgpl_load_memcard(running_machine *machine);
46int ti99_hsgpl_save_memcard(running_machine *machine);
57
src/mess/machine/ti99_4x.c
r6507r6508
357357
358358   /* set up memory pointers */
359359   xRAM_ptr = (UINT16 *) (memory_region(machine, "maincpu") + offset_xram_4p);
360   /* console_GROMs.data_ptr = memory_region(machine, region_grom);
361   create_grom_high2k(0x0000, 0x5fff); */
360#if 0
361   console_GROMs.data_ptr = memory_region(machine, region_grom);
362   create_grom_high2k(0x0000, 0x5fff);
363#endif
362364}
363365
364366static const TMS9928a_interface tms9918_interface =
r6507r6508
470472      memory_set_bankptr(machine, 1, memory_region(machine, "maincpu") + offset_sram);
471473   }
472474
473/*  if (ti99_model != model_99_4p)
474    {
475        if (ti99_model == model_99_8)
476            current_page_ptr_8 = cartridge_pages_8[0];
477        else
478            current_page_ptr = cartridge_pages[0];
479    } */
475#if 0
476   if (ti99_model != model_99_4p)
477   {
478      if (ti99_model == model_99_8)
479         current_page_ptr_8 = cartridge_pages_8[0];
480      else
481         current_page_ptr = cartridge_pages[0];
482   }
483#endif
480484
481485   if (!has_evpc) TMS9928A_reset();
482486        else v9938_reset(0);
r6507r6508
12671271   mapper_reg = ti99_8_mapper_regs[page];
12681272   offset = (mapper_reg + (offset & 0x0fff)) & 0x00ffffff;
12691273
1274#if 0
12701275   /* test read protect */
1271   /*if (mapper_reg & 0x20000000)
1272        ;*/
1276   if (mapper_reg & 0x20000000)
1277      ;
12731278
12741279   /* test execute protect */
1275   /*if (mapper_reg & 0x40000000)
1276        ;*/
1280   if (mapper_reg & 0x40000000)
1281      ;
1282#endif
12771283
12781284   if (offset < 0x010000)
12791285      /* Read RAM */
r6507r6508
14461452   /* 4 KiB page size */
14471453   offset = (mapper_reg + (offset & 0x0fff)) & 0x00ffffff;
14481454
1455#if 0
14491456   /* test write protect */
1450   /*if (mapper_reg & 0x80000000)
1451        ;*/
1457   if (mapper_reg & 0x80000000)
1458      ;
1459#endif
14521460
14531461   if (offset < 0x010000)
14541462   {   /* Write RAM */
r6507r6508
20662074   }
20672075
20682076   /* we don't take CS2 into account, as CS2 is a write-only unit */
2069   /*if (cassette_input(devtag_get_device(device->machine, "cassette1")) > 0)
2070        answer |= 8;*/
2077#if 0
2078   if (cassette_input(devtag_get_device(device->machine, "cassette1")) > 0)
2079      answer |= 8;
2080#endif
20712081
20722082   return answer;
20732083}
r6507r6508
22022212   }
22032213
22042214   /* we don't take CS2 into account, as CS2 is a write-only unit */
2205   /*if (cassette_input(devtag_get_device(machine, "cassette")) > 0)
2206        answer |= 8;*/
2215#if 0
2216   if (cassette_input(devtag_get_device(machine, "cassette")) > 0)
2217      answer |= 8;
2218#endif
22072219
22082220   return answer;
22092221}
r6507r6508
26342646   int i;
26352647
26362648   /* Not required at run-time */
2637   /*memory_install_read16_handler(space, 0x2000, 0x2fff, SMH_BANK(3));
2649#if 0
2650   memory_install_read16_handler(space, 0x2000, 0x2fff, SMH_BANK(3));
26382651    memory_install_write16_handler(space, 0x2000, 0x2fff, SMH_BANK(3));
26392652    memory_install_read16_handler(space, 0x3000, 0x3fff, SMH_BANK(4));
26402653    memory_install_write16_handler(space, 0x3000, 0x3fff, SMH_BANK(4));
r6507r6508
26492662    memory_install_read16_handler(space, 0xe000, 0xefff, SMH_BANK(9));
26502663    memory_install_write16_handler(space, 0xe000, 0xefff, SMH_BANK(9));
26512664    memory_install_read16_handler(space, 0xf000, 0xffff, SMH_BANK(10));
2652    memory_install_write16_handler(space, 0xf000, 0xffff, SMH_BANK(10));*/
2665    memory_install_write16_handler(space, 0xf000, 0xffff, SMH_BANK(10));
2666#endif
26532667
26542668   ti99_peb_set_16bit_card_handlers(0x1e00, & ti99_4p_mapper_handlers);
26552669
src/mess/machine/kc.c
r6507r6508
280280   /* enable module */
281281   void (*enable)(int state);
282282};
283/*
283
284#if 0
284285static const struct kc85_module kc85_v24_module=
285286{
286287    0x0ee,
287288    "M003",
288289    "V24"
289290};
290*/
291#endif
292
291293static const struct kc85_module kc85_disk_interface_device=
292294{
293295   0x0a7,
src/mess/drivers/apple3.c
r6507r6508
4141   NULL,               /* port_write_func */
4242};
4343
44/*
44#ifdef UNUSED_FUNCTION
4545static void apple3_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
4646{
4747    switch(state)
r6507r6508
6161        default:                                        apple525_device_getinfo(devclass, state, info); break;
6262    }
6363}
64#endif
6465
65*/
66
6766static const floppy_config apple3_floppy_config =
6867{
6968   DEVCB_NULL,
src/mess/drivers/x1.c
r6507r6508
635635      return bus_res;
636636   }
637637
638   /*if(key_flag == 1)
639    {
640        key_flag = 0;
641        return 0x82; //TODO: this is for shift/ctrl/kana lock etc.
642    }*/
638#if 0
639   if(key_flag == 1)
640   {
641      key_flag = 0;
642      return 0x82; //TODO: this is for shift/ctrl/kana lock etc.
643   }
644#endif
643645
644646   sub_cmd_length--;
645647   sub_obf = (sub_cmd_length) ? 0x00 : 0x20;
r6507r6508
19871989   //...
19881990}
19891991
1990/*static IRQ_CALLBACK(x1_irq_callback)
1992#ifdef UNUSED_FUNCTION
1993static IRQ_CALLBACK(x1_irq_callback)
19911994{
19921995    if(ctc_irq_flag != 0)
19931996    {
r6507r6508
20052008    }
20062009    return x1_irq_vector;
20072010}
2008*/
2011#endif
2012
20092013static TIMER_CALLBACK(keyboard_callback)
20102014{
20112015   const address_space *space = cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM);
src/mess/drivers/glasgow.c
r6507r6508
383383}
384384
385385
386/*
386#ifdef UNUSED_FUNCTION
387387static READ16_HANDLER(read_test)
388388{
389  logerror("read test Offset = %x Data = %x\n  ",offset,data);
390  return 0xffff;    // Mephisto need it for working
389   logerror("read test Offset = %x Data = %x\n  ",offset,data);
390   return 0xffff;    // Mephisto need it for working
391391}
392#endif
392393
393*/
394
395394/*
396395
397396    *****           32 Bit Read and write Handler   ***********
r6507r6508
454453   return 0;
455454}
456455
457/*
456#ifdef UNUSED_FUNCTION
458457static READ16_HANDLER(read_board_amsterd)
459458{
460  logerror("read board amsterdam Offset = %x \n  ", offset);
461  return 0xffff;
459   logerror("read board amsterdam Offset = %x \n  ", offset);
460   return 0xffff;
462461}
463*/
462#endif
464463
465464static WRITE32_HANDLER( write_board32 )
466465{
src/mess/drivers/ip22.c
r6507r6508
10321032static TIMER_CALLBACK(ip22_dma)
10331033{
10341034   timer_set(machine, attotime_never, NULL, 0, ip22_dma);
1035   /*
1035#if 0
10361036   if( nPBUS_DMA_Active )
10371037   {
10381038      UINT16 temp16 = ( ip22_mainram[(nPBUS_DMA_CurPtr - 0x08000000)/4] & 0xffff0000 ) >> 16;
r6507r6508
10601060      }
10611061      timer_set(machine, ATTOTIME_IN_HZ(44100), NULL, 0, ip22_dma);
10621062   }
1063   */
1063#endif
10641064}
10651065
10661066static READ32_HANDLER( hpc3_pbusdma_r )
r6507r6508
13231323
13241324            // clear DMA on the controller too
13251325            wd33c93_clear_dma();
1326            /*
1326#if 0
13271327            UINT32 dptr, tmpword;
13281328            UINT32 bc = memory_read_dword(space, nHPC_SCSI0Descriptor + 4);
13291329            UINT32 rptr = memory_read_dword(space, nHPC_SCSI0Descriptor);
r6507r6508
13721372            {
13731373               logerror("IP22: overly large host to device transfer, can't handle!\n");
13741374            }
1375            */
1375#endif
13761376         }
13771377
13781378         // HPC3 DMA: device to host
src/mess/drivers/ti990_10.c
r6507r6508
9999   ti990_line_interrupt(device->machine);
100100}
101101
102/*static void idle_callback(int state)
102#ifdef UNUSED_FUNCTION
103static void idle_callback(int state)
103104{
104}*/
105}
106#endif
105107
106108static void rset_callback(const device_config *device)
107109{
src/mess/drivers/newbrain.c
r6507r6508
776776
777777         break;
778778
779/*      case NEWBRAIN_COPCMD_TIMCOM:
780            copregint = 0;
781            copbytes = 6;
782            copstate = NEWBRAIN_COP_STATE_DATA;
783            break;
784*/
779#if 0
780      case NEWBRAIN_COPCMD_TIMCOM:
781         copregint = 0;
782         copbytes = 6;
783         copstate = NEWBRAIN_COP_STATE_DATA;
784         break;
785#endif
785786      case NEWBRAIN_COPCMD_PDNCOM:
786787         /* power down */
787788         copregint = 0;
src/mess/drivers/kyocera.c
r6507r6508
237237        7
238238
239239    */
240/*
240#if 0
241241    kc85_state *state = space->machine->driver_data;
242242
243243    im6402_sbs_w(state->im6402, BIT(data, 0));
r6507r6508
245245    im6402_pi_w(state->im6402, BIT(data, 2));
246246    im6402_cls1_w(state->im6402, BIT(data, 3));
247247    im6402_cls2_w(state->im6402, BIT(data, 4));
248*/
248#endif
249249}
250250
251251static READ8_HANDLER( uart_status_r )
r6507r6508
264264        7       _LPS        low power sensor
265265
266266    */
267/*
267#if 0
268268    kc85_state *state = space->machine->driver_data;
269269
270270    UINT8 data = 0;
r6507r6508
278278    data = (tbre << 4) | (pe << 3) | (fe << 2) | (oe << 1) | cd;
279279
280280    return data;
281*/
281#endif
282282
283283   return 0xf0;
284284}
r6507r6508
299299        7       _LPS        low power signal
300300
301301    */
302/*
302#if 0
303303    kc85_state *state = space->machine->driver_data;
304304
305305    UINT8 data = 0;
r6507r6508
313313    data = (tbre << 4) | (pe << 3) | (fe << 2) | (oe << 1) | cd;
314314
315315    return data;
316*/
316#endif
317317
318318   return 0xf0;
319319}
r6507r6508
334334        7
335335
336336    */
337/*
337#if 0
338338    kc85_state *state = space->machine->driver_data;
339339
340340    mc14412_en_w(state->mc14412, BIT(data, 1));
341*/
341#endif
342342}
343343
344344static WRITE8_HANDLER( kc85_ctrl_w )
src/mess/drivers/cdi.c
r6507r6508
31873187                  cputag_set_input_line(machine, "maincpu", M68K_IRQ_1 + (interrupt - 1), ASSERT_LINE);
31883188               }
31893189            }
3190            /*
3190#if 0
31913191            if(mcd212_regs.channel[1].csrr & MCD212_CSR2R_IT2)
31923192            {
31933193               UINT8 interrupt = scc68070_regs.lir & 7;
r6507r6508
31973197                  cputag_set_input_line(machine, "maincpu", M68K_IRQ_1 + (interrupt - 1), ASSERT_LINE);
31983198               }
31993199            }
3200            */
3200#endif
32013201            break;
32023202         case 0x78: case 0x79: case 0x7a: case 0x7b: case 0x7c: case 0x7d: case 0x7e: case 0x7f: // RELOAD DISPLAY PARAMETERS
32033203            verboselog(machine, 6, "%08x: %08x: ICA %d: RELOAD DISPLAY PARAMETERS\n", addr * 2 + channel * 0x200000, cmd, channel );
r6507r6508
32763276                  cputag_set_input_line(machine, "maincpu", M68K_IRQ_1 + (interrupt - 1), ASSERT_LINE);
32773277               }
32783278            }
3279            /*
3279#if 0
32803280            if(mcd212_regs.channel[1].csrr & MCD212_CSR2R_IT2)
32813281            {
32823282               UINT8 interrupt = scc68070_regs.lir & 7;
r6507r6508
32863286                  cputag_set_input_line(machine, "maincpu", M68K_IRQ_1 + (interrupt - 1), ASSERT_LINE);
32873287               }
32883288            }
3289            */
3289#endif
32903290            break;
32913291         case 0x78: case 0x79: case 0x7a: case 0x7b: case 0x7c: case 0x7d: case 0x7e: case 0x7f: // RELOAD DISPLAY PARAMETERS
32923292            verboselog(machine, 6, "%08x: %08x: DCA %d: RELOAD DISPLAY PARAMETERS\n", addr * 2 + channel * 0x200000, cmd, channel );
src/mess/drivers/tutor.c
r6507r6508
479479    @>f000-@>f0fb: tms9995 internal RAM 2
480480*/
481481
482/*static WRITE8_HANDLER(test_w)
482#ifdef UNUSED_FUNCTION
483static WRITE8_HANDLER(test_w)
483484{
484485    switch (offset)
485486    {
r6507r6508
487488        logerror("unmapped write %d %d\n", offset, data);
488489        break;
489490    }
490}*/
491}
492#endif
491493
492494static ADDRESS_MAP_START(tutor_memmap, ADDRESS_SPACE_PROGRAM, 8)
493495
src/mess/drivers/primo.c
r6507r6508
404404ROM_END
405405
406406
407/*static void primo_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
407#ifdef UNUSED_FUNCTION
408static void primo_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
408409{
409410    switch(state)
410411    {
r6507r6508
416417        default:                                        cartslot_device_getinfo(devclass, state, info); break;
417418    }
418419}
420#endif
419421
420*/
421
422422/*     YEAR  NAME      PARENT    COMPAT MACHINE   INPUT  INIT     CONFIG COMPANY  FULLNAME */
423423COMP ( 1984, primoa32, 0,        0,     primoa32, primo, primo32, 0, "Microkey", "Primo A-32" , 0)
424424COMP ( 1984, primoa48, primoa32, 0,     primoa48, primo, primo48, 0, "Microkey", "Primo A-48" , 0)
src/mess/drivers/apple2gs.c
r6507r6508
151151   apple2gs_docram
152152};
153153
154/*
154#ifdef UNUSED_FUNCTION
155155static void apple2gs_floppy35_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
156156{
157157    // 3.5" floppy
r6507r6508
189189
190190        default:                                        apple525_device_getinfo(devclass, state, info); break;
191191    }
192}*/
192}
193#endif
193194
194195static const floppy_config apple2gs_floppy35_floppy_config =
195196{
src/mess/drivers/ti990_4.c
r6507r6508
7171   ti990_line_interrupt(device->machine);
7272}
7373
74/*static void idle_callback(int state)
74#ifdef UNUSED_FUNCTION
75static void idle_callback(int state)
7576{
76}*/
77}
78#endif
7779
7880static WRITE8_HANDLER ( rset_callback )
7981{
r6507r6508
196198   AM_RANGE(0x7000, 0x7fff) AM_WRITE(lrex_callback)
197199ADDRESS_MAP_END
198200
199
200/*static tms9900reset_param reset_params =
201#if 0
202static const tms9900reset_param reset_params =
201203{
202204    idle_callback
203};*/
205};
206#endif
204207
205208static const floppy_config ti990_4_floppy_config =
206209{
src/mess/drivers/lisa.c
r6507r6508
8383   sony_read_status
8484};
8585
86/*
86#ifdef UNUSED_FUNCTION
8787static void lisa_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
8888{
8989    switch(state)
r6507r6508
9393        default:                                        sonydriv_device_getinfo(devclass, state, info); break;
9494    }
9595}
96*/
96#endif
9797
9898static const floppy_config lisa_floppy_config =
9999{
src/mess/drivers/cgenie.c
r6507r6508
492492ROM_END
493493
494494// Code below is previous non-working implementation , just for reference
495/*
495#if 0
496496
497497#define CGENIE_DRIVE_INFO
498498
r6507r6508
628628    }
629629    return INIT_PASS;
630630}
631*/
631#endif
632632
633633/*    YEAR  NAME      PARENT    COMPAT  MACHINE   INPUT     INIT      CONFIG     COMPANY    FULLNAME */
634634COMP( 1982, cgenie,   0,      0,      cgenie,   cgenie,   0,        0,    "EACA Computers Ltd.",  "Colour Genie EG2000" , 0)
src/mess/drivers/x68k.c
r6507r6508
186186   x68k_sys.mfp.irqline = 6;  // MFP is connected to 68000 IRQ line 6
187187   x68k_sys.mfp.current_irq = -1;  // No current interrupt
188188
189/*  mfp_timer[0] = timer_alloc(machine, mfp_timer_a_callback, NULL);
189#if 0
190    mfp_timer[0] = timer_alloc(machine, mfp_timer_a_callback, NULL);
190191    mfp_timer[1] = timer_alloc(machine, mfp_timer_b_callback, NULL);
191192    mfp_timer[2] = timer_alloc(machine, mfp_timer_c_callback, NULL);
192193    mfp_timer[3] = timer_alloc(machine, mfp_timer_d_callback, NULL);
193194    mfp_irq = timer_alloc(machine, mfp_update_irq, NULL);
194195    timer_adjust_periodic(mfp_irq, attotime_zero, 0, ATTOTIME_IN_USEC(32));
195*/
196#endif
196197}
197198
198199#ifdef UNUSED_FUNCTION
r6507r6508
12611262   }
12621263}
12631264
1264/*static READ16_HANDLER( x68k_mfp_r )
1265#ifdef UNUSED_FUNCTION
1266static READ16_HANDLER( x68k_mfp_r )
12651267{
1266    const device_config *x68k_mfp = devtag_get_device(space->machine, MC68901_TAG);
1268   const device_config *x68k_mfp = devtag_get_device(space->machine, MC68901_TAG);
12671269
1268    return mc68901_register_r(x68k_mfp, offset);
1269}*/
1270   return mc68901_register_r(x68k_mfp, offset);
1271}
1272#endif
12701273
12711274static READ16_HANDLER( x68k_mfp_r )
12721275{
r6507r6508
12761279//  logerror("MFP: [%08x] Reading offset %i\n",cpu_get_pc(space->cpu),offset);
12771280    switch(offset)
12781281    {
1279/*    case 0x00:  // GPIP - General purpose I/O register (read-only)
1282#if 0
1283    case 0x00:  // GPIP - General purpose I/O register (read-only)
12801284        ret = 0x23;
12811285        if(video_screen_get_vpos(machine->primary_screen) == x68k_sys.crtc.reg[9])
12821286            ret |= 0x40;
r6507r6508
13171321    case 17:  // TCDR
13181322        return x68k_sys.mfp.timer[2].counter;
13191323    case 18:  // TDDR
1320        return x68k_sys.mfp.timer[3].counter;*/
1324        return x68k_sys.mfp.timer[3].counter;
1325#endif
13211326    case 21:  // RSR
13221327        return x68k_sys.mfp.rsr;
13231328    case 22:  // TSR
r6507r6508
13541359    */
13551360   switch(offset)
13561361   {
1357/*  case 0:  // GPDR
1362#if 0
1363  case 0:  // GPDR
13581364        // All bits are inputs generally, so no action taken.
13591365        break;
13601366    case 1:  // AER
r6507r6508
14311437        break;
14321438    case 20:
14331439        x68k_sys.mfp.ucr = data;
1434        break;*/
1440        break;
1441#endif
14351442    case 21:
14361443        if(data & 0x01)
14371444            x68k_sys.mfp.usart.recv_enable = 1;
r6507r6508
15121519//      return 0x0000;
15131520   if(offset == 0x08/2)
15141521      return messram_get_size(devtag_get_device(space->machine, "messram")) >> 16;  // RAM size
1515   /*if(offset == 0x46/2)
1522#if 0
1523   if(offset == 0x46/2)
15161524        return 0x0024;
15171525    if(offset == 0x6e/2)
15181526        return 0xff00;
15191527    if(offset == 0x70/2)
1520        return 0x0700;*/
1528        return 0x0700;
1529#endif
15211530   return space->machine->generic.nvram.u16[offset];
15221531}
15231532
r6507r6508
15251534{
15261535   if(offset == 0x08/4)
15271536      return (messram_get_size(devtag_get_device(space->machine, "messram")) & 0xffff0000);  // RAM size
1528   /*if(offset == 0x46/2)
1537#if 0
1538   if(offset == 0x46/2)
15291539        return 0x0024;
15301540    if(offset == 0x6e/2)
15311541        return 0xff00;
15321542    if(offset == 0x70/2)
1533        return 0x0700;*/
1543        return 0x0700;
1544#endif
15341545   return space->machine->generic.nvram.u32[offset];
15351546}
15361547
src/mess/drivers/apexc.c
r6507r6508
232232*/
233233
234234
235#if 0
235236/* defines for input port numbers */
236/* enum
237enum
237238{
238    panel_control = 0,
239    panel_edit1,
240    panel_edit2
239   panel_control = 0,
240   panel_edit1,
241   panel_edit2
241242};
242*/
243#endif
243244
245
244246/* defines for each bit and mask in input port panel_control */
245247enum
246248{
src/mess/drivers/jr200.c
r6507r6508
7979   }
8080};
8181
82/*
82#if 0
8383static READ8_HANDLER( test_r )
8484{
85    return 0x00;
85   return 0x00;
8686}
87*/
87#endif
8888
8989static WRITE8_HANDLER( io_reg_w )
9090{
src/mess/drivers/craft.c
r6507r6508
309309        case 0x84:
310310        {
311311            //INT64 divisor = 1;
312            /*INT64 update = (INT64)(cpu_get_total_cycles(space->cpu)) - last_tcnt1_cycle;
312#if 0
313            INT64 update = (INT64)(cpu_get_total_cycles(space->cpu)) - last_tcnt1_cycle;
313314            switch(device->tccr1b & 0x07)
314315            {
315316                case 0: // No clock source (Timer/Counter stopped).
r6507r6508
345346            diff /= divisor;
346347            diff %= regs.ocr1a;
347348            printf( "AVR8: R: regs.tcnt1l read: %04x\n",  );
348            */break;
349#endif
350            break;
349351        }
350352
351353        case 0x85:
src/mess/drivers/exelv.c
r6507r6508
104104   tms3556_interrupt(device->machine);
105105}
106106
107/*static DEVICE_IMAGE_LOAD(exelv_cart)
107#ifdef UNUSED_FUNCTION
108static DEVICE_IMAGE_LOAD(exelv_cart)
108109{
109    return INIT_PASS;
110   return INIT_PASS;
110111}
111112
112113static DEVICE_IMAGE_UNLOAD( exelv_cart )
113114{
114}*/
115}
116#endif
115117
116118/*
117119    I/O CPU protocol (WIP):
src/mess/drivers/apple2.c
r6507r6508
556556   AY8910_DEFAULT_LOADS,
557557   DEVCB_NULL
558558};
559/*
559
560#ifdef UNUSED_FUNCTION
560561static void apple2_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
561562{
562563    switch(state)
r6507r6508
574575        default:                                        apple525_device_getinfo(devclass, state, info); break;
575576    }
576577}
577*/
578#endif
579
578580static const floppy_config apple2_floppy_config =
579581{
580582   DEVCB_NULL,
src/mess/drivers/busicom.c
r6507r6508
8787}
8888static WRITE8_HANDLER(status_w)
8989{
90/*  UINT8 mem_lamp = BIT(data,0);
91    UINT8 over_lamp = BIT(data,1);
92    UINT8 minus_lamp = BIT(data,2);
93*/
90#if 0
91   UINT8 mem_lamp = BIT(data,0);
92   UINT8 over_lamp = BIT(data,1);
93   UINT8 minus_lamp = BIT(data,2);
94#endif
9495   //logerror("status %c %c %c\n",mem_lamp ? 'M':'x',over_lamp ? 'O':'x',minus_lamp ? '-':'x');
9596}
9697
src/mess/drivers/gba.c
r6507r6508
17651765         {
17661766//              printf("IE (%08x) = %04x raw %x (%08x) (scan %d PC %x)\n", 0x04000000 + ( offset << 2 ), data & mem_mask, data, ~mem_mask, video_screen_get_vpos(machine->primary_screen), cpu_get_pc(space->cpu));
17671767            gba_state->IE = ( gba_state->IE & ~mem_mask ) | ( data & mem_mask );
1768             /*
1769                if (gba_state->IE & gba_state->IF)
1770                {
1771                    gba_request_irq(machine, gba_state->IF);
1772                }
1773                */
1768#if 0
1769            if (gba_state->IE & gba_state->IF)
1770            {
1771               gba_request_irq(machine, gba_state->IF);
1772            }
1773#endif
17741774         }
17751775         if( (mem_mask) & 0xffff0000 )
17761776         {
docs/messnew.txt
r6507r6508
7878- The core is based on MAME 0.135u2.  This incorporates all features of the
7979  update to this core.  [MAME team]
8080
81- Cleanups (static qualifiers, headers, renames, reduced global symbols, and
82  more multisession friendly init code).  [Atari Ace]
81- Cleanups (static qualifiers, headers, renames, reduced global symbols, dead
82  code cleanups and more multisession friendly init code).  [Atari Ace]
8383
8484- WD17xx write track supported in proper way instead of using more
8585  sector writes [Michael Zapf]
8686
87
88
87890.135
8890
8991New System Drivers Supported (in no particular order):

Previous 15994 Revisions Next


© 1998-2018 The MESS Team