Previous 15994 Revisions Next

r9639 Monday 22nd November, 2010 at 22:59:17 UTC by Nathan Woods
More Atari Ace changes
[src/mess]messdriv.c uimess.c
[src/mess/devices]bitbngr.c cococart.c
[src/mess/drivers]cbmb.c fm7.c kaypro.c nc.c newbrain.c pcw.c pockstat.c supracan.c svi318.c x68k.c
[src/mess/includes]a7800.h advision.h cbmb.h cgenie.h fm7.h fmtowns.h hec2hrp.h nascom1.h orion.h pce.h rmnimbus.h ssystem3.h ti85.h wswan.h x68k.h
[src/mess/machine]adam.c apple2gs.c atarifdc.c cbmb.c cdic.c coco.c cybiko.c hec2hrp.c hecdisk2.c jupiter.c nascom1.c nc.c odyssey2.c oric.c pc_fdc.c pce.c rmnimbus.c scsibus.c super80.c ti85.c vtech2.c wswan.c
[src/mess/machine/ti99]handset.c mecmouse.c peribox.c
[src/mess/video]733_asr.h apple1.c avigo.c cgenie.c dgn_beta.c fm7.c fmtowns.c hd44780.c hd66421.c hd66421.h hec2video.c kaypro.c pc_vga_mess.c rmnimbus.c

src/mess/devices/bitbngr.c
r9638r9639
454454
455455      one_point_five_baud = attotime_add(bi->current_baud, attotime_div(bi->current_baud,2));
456456      timer_adjust_periodic(bi->bitbanger_output_timer, one_point_five_baud, 0, bi->current_baud);
457    }
457   }
458458
459459   //fprintf(stderr,"%s, %d\n", attotime_string(timer_get_time(device->machine),9), value);
460460   bi->output_value = value;
src/mess/devices/cococart.c
r9638r9639
113113      cococart->cart_line.timer[i]      = timer_alloc(device->machine, cart_timer_callback, (void *) device);
114114      cococart->nmi_line.timer[i]       = timer_alloc(device->machine, nmi_timer_callback, (void *) device);
115115      cococart->halt_line.timer[i]      = timer_alloc(device->machine, halt_timer_callback, (void *) device);
116   }
116   }
117117   
118118   cococart->cart_line.timer_index     = 0;
119119   cococart->cart_line.delay            = 0;
src/mess/uimess.c
r9638r9639
390390      }
391391      menustate->device = device;
392392      ui_menu_reset(menu, (ui_menu_reset_options)0);
393   }
393   }
394394
395395   /* rebuild the menu */
396396   ui_menu_reset(menu, UI_MENU_RESET_REMEMBER_POSITION);
src/mess/machine/adam.c
r9638r9639
2222
2323/* TODO: Are these digits correct? */
2424static int KeyboardBuffer[20]; /* Buffer to store keys pressed */
25static int KbBufferCapacity = 15; /* Capacity of the Keyboard Buffer */
26static int KbRepeatDelay = 20;
25static const int KbBufferCapacity = 15; /* Capacity of the Keyboard Buffer */
26static const int KbRepeatDelay = 20;
2727
2828static UINT8 KbRepeatTable[256];
2929
src/mess/machine/cbmb.c
r9638r9639
3939UINT8 *cbmb_basic;
4040UINT8 *cbmb_kernal;
4141static UINT8 *cbmb_chargen;
42UINT8 *cbmb_videoram;
4342UINT8 *cbmb_colorram;
4443
4544/* tpi at 0xfde00
r9638r9639
290289
291290int cbmb_dma_read( running_machine *machine, int offset )
292291{
292   cbmb_state *state = machine->driver_data<cbmb_state>();
293293   if (offset >= 0x1000)
294      return cbmb_videoram[offset & 0x3ff];
294      return state->videoram[offset & 0x3ff];
295295   else
296296      return cbmb_chargen[offset & 0xfff];
297297}
src/mess/machine/ti99/peribox.c
r9638r9639
367367   }
368368}
369369
370WRITE_LINE_DEVICE_HANDLER( ti99_peb_senilb)
370WRITE_LINE_DEVICE_HANDLER( ti99_peb_senilb )
371371{
372372   ti99_peb_state *peb = get_safe_token(device);
373373   int i;
src/mess/machine/ti99/mecmouse.c
r9638r9639
201201
202202/**************************************************************************/
203203
204static DEVICE_START( ti99_mecmouse)
204static DEVICE_START( ti99_mecmouse )
205205{
206206}
207207
src/mess/machine/ti99/handset.c
r9638r9639
335335
336336/**************************************************************************/
337337
338static DEVICE_START( ti99_handset)
338static DEVICE_START( ti99_handset )
339339{
340340   ti99_handset_state *handset = get_safe_token(device);
341341   handset->timer = timer_alloc(device->machine, ti99_handset_ack_callback, (void *)device);
src/mess/machine/coco.c
r9638r9639
133133static UINT8 bitbanger_input_value;
134134static UINT8 dac_value;
135135
136static WRITE8_DEVICE_HANDLER ( d_pia1_pb_w );
137static WRITE8_DEVICE_HANDLER ( d_pia1_pa_w );
138static READ8_DEVICE_HANDLER ( d_pia1_pa_r );
139static WRITE8_DEVICE_HANDLER ( d_pia0_pa_w );
140static WRITE8_DEVICE_HANDLER ( d_pia0_pb_w );
141static WRITE8_DEVICE_HANDLER ( d_pia1_cb2_w);
142static WRITE8_DEVICE_HANDLER ( d_pia0_cb2_w);
143static WRITE8_DEVICE_HANDLER ( d_pia1_ca2_w);
144static WRITE8_DEVICE_HANDLER ( d_pia0_ca2_w);
136static WRITE8_DEVICE_HANDLER( d_pia1_pb_w );
137static WRITE8_DEVICE_HANDLER( d_pia1_pa_w );
138static READ8_DEVICE_HANDLER( d_pia1_pa_r );
139static WRITE8_DEVICE_HANDLER( d_pia0_pa_w );
140static WRITE8_DEVICE_HANDLER( d_pia0_pb_w );
141static WRITE8_DEVICE_HANDLER( d_pia1_cb2_w );
142static WRITE8_DEVICE_HANDLER( d_pia0_cb2_w );
143static WRITE8_DEVICE_HANDLER( d_pia1_ca2_w );
144static WRITE8_DEVICE_HANDLER( d_pia0_ca2_w );
145145static WRITE_LINE_DEVICE_HANDLER( d_pia0_irq_a );
146146static WRITE_LINE_DEVICE_HANDLER( d_pia0_irq_b );
147147static WRITE_LINE_DEVICE_HANDLER( d_pia1_firq_a );
148148static WRITE_LINE_DEVICE_HANDLER( d_pia1_firq_b );
149149static SAM6883_SET_PAGE_ONE_MODE( d_sam_set_pageonemode );
150150static SAM6883_SET_MPU_RATE( d_sam_set_mpurate );
151static SAM6883_SET_MEMORY_SIZE( d_sam_set_memorysize);
151static SAM6883_SET_MEMORY_SIZE( d_sam_set_memorysize );
152152static SAM6883_SET_MAP_TYPE( d_sam_set_maptype );
153153
154154/* CoCo 1 specific */
r9638r9639
842842      romsize = destlength;
843843   }
844844
845   image.fread( dest, romsize);
845   image.fread( dest, romsize );
846846
847847   /* Now we need to repeat the mirror the ROM throughout the ROM memory */
848848   rombase = dest;
r9638r9639
14951495
14961496
14971497/* three functions that update the keyboard in varying ways */
1498static WRITE8_DEVICE_HANDLER( d_pia0_pb_w )            { (*update_keyboard)(device->machine); }
1499INPUT_CHANGED( coco_keyboard_changed )                 { (*update_keyboard)(field->port->machine); }
1500static TIMER_CALLBACK( coco_update_keyboard_timerproc) { (*update_keyboard)(machine); }
1498static WRITE8_DEVICE_HANDLER( d_pia0_pb_w )             { (*update_keyboard)(device->machine); }
1499INPUT_CHANGED( coco_keyboard_changed )                  { (*update_keyboard)(field->port->machine); }
1500static TIMER_CALLBACK( coco_update_keyboard_timerproc ) { (*update_keyboard)(machine); }
15011501
15021502static WRITE8_DEVICE_HANDLER( d_pia0_pa_w )
15031503{
r9638r9639
15431543/* Printer output for the CoCo, output to bitbanger port */
15441544static void printer_out_coco(running_machine *machine, int data)
15451545{
1546   bitbanger_output_value = (data & 2) >> 1;
1546   bitbanger_output_value = (data & 2) >> 1;
15471547   bitbanger_output(bitbanger_image(machine), bitbanger_output_value);
15481548}
15491549
r9638r9639
15721572   static int dclg_previous_bit;
15731573   UINT8 ctrl = input_port_read_safe(device->machine, "ctrl_sel", 0x00);
15741574   UINT8 hires = input_port_read_safe(device->machine, "hires_intf", 0x00);
1575   dac_value = dac >> 2;
1575   dac_value = dac >> 2;
15761576
15771577   coco_sound_update(device->machine);
15781578
src/mess/machine/scsibus.c
r9638r9639
648648
649649        bus->initialised=1;
650650    }
651 }
651}
652652
653653static DEVICE_START( scsibus )
654654{
src/mess/machine/oric.c
r9638r9639
8989   }
9090}
9191
92static   char *oric_ram_0x0c000 = NULL;
92static char *oric_ram_0x0c000 = NULL;
9393
9494
9595/* index of keyboard line to scan */
src/mess/machine/nascom1.c
r9638r9639
3535static UINT8 *nascom1_tape_image = NULL;
3636static int nascom1_tape_index = 0;
3737
38static   struct
38static struct
3939{
4040   UINT8   stat_flags;
4141   UINT8   stat_count;
src/mess/machine/hecdisk2.c
r9638r9639
139139   return data;
140140}
141141
142static void valid_interrupt( running_machine *machine)
142static void valid_interrupt(running_machine *machine)
143143{
144144   /* Called at each rising state of INT / NMI and RNMI ! */
145145
r9638r9639
164164   }
165165}
166166
167void hector_disk2_init( running_machine *machine)
167void hector_disk2_init(running_machine *machine)
168168{
169169       DMA_timer = timer_alloc(machine, Callback_DMA_irq, 0);
170170       INT_timer = timer_alloc(machine, Callback_INT_irq, 0);
src/mess/machine/odyssey2.c
r9638r9639
207207
208208///////////////////////////////////
209209
210#ifdef UNUSED_FUNCTION
210211int odyssey2_cart_verify(const UINT8 *cartdata, size_t size)
211212{
212213   cart_size = size;
r9638r9639
221222
222223    return IMAGE_VERIFY_FAIL;
223224}
225#endif
src/mess/machine/ti85.c
r9638r9639
625625   running_device *speaker = space->machine->device("speaker");
626626   running_device *ti85serial = space->machine->device("ti85serial");
627627
628   speaker_level_w(speaker,( (data>>2)|(data>>3) )&0x01 );
628   speaker_level_w(speaker, ( (data>>2)|(data>>3) ) & 0x01);
629629   ti85_red_out=(data>>2)&0x01;
630630   ti85_white_out=(data>>3)&0x01;
631631   ti85serial_red_out( ti85serial, 0, ti85_red_out );
r9638r9639
658658   ti8x_port2 = data;
659659}
660660
661WRITE8_HANDLER ( ti82_port_0010_w)
661WRITE8_HANDLER ( ti82_port_0010_w )
662662{
663663   if (data == 0x00 || data == 0x01)
664664      ti82_video_mode = data;
r9638r9639
765765   update_ti83p_memory(space->machine);
766766}
767767
768WRITE8_HANDLER ( ti83p_port_0010_w)
768WRITE8_HANDLER ( ti83p_port_0010_w )
769769{
770770   if (data == 0x00 || data == 0x01)
771771      ti82_video_mode = data;
src/mess/machine/vtech2.c
r9638r9639
5757static int mra_bank(running_machine *machine, int bank, int offs);
5858
5959/* wrappers for bank #1 to #4 */
60static READ8_HANDLER ( mra_bank1) { return mra_bank(space->machine,0,offset); }
61static READ8_HANDLER ( mra_bank2) { return mra_bank(space->machine,1,offset); }
62static READ8_HANDLER ( mra_bank3) { return mra_bank(space->machine,2,offset); }
63static READ8_HANDLER ( mra_bank4) { return mra_bank(space->machine,3,offset); }
60static READ8_HANDLER ( mra_bank1 ) { return mra_bank(space->machine,0,offset); }
61static READ8_HANDLER ( mra_bank2 ) { return mra_bank(space->machine,1,offset); }
62static READ8_HANDLER ( mra_bank3 ) { return mra_bank(space->machine,2,offset); }
63static READ8_HANDLER ( mra_bank4 ) { return mra_bank(space->machine,3,offset); }
6464
6565/* read banked memory (handle memory mapped i/o) */
6666static const read8_space_func mra_bank_soft[4] =
src/mess/machine/wswan.c
r9638r9639
2727static const char *const wswan_sram_str[] = { "none", "64Kbit SRAM", "256Kbit SRAM", "512Kbit SRAM", "1Mbit SRAM", "2Mbit SRAM", "1Kbit EEPROM", "16Kbit EEPROM", "8Kbit EEPROM", "Unknown" };
2828static const int wswan_sram_size[] = { 0, 64*1024/8, 256*1024/8, 512*1024/8, 1024*1024/8, 2*1024*1024/8,  1024/8, 16*1024/8, 8*1024/8, 0 };
2929
30struct EEPROM {
30typedef struct {
3131   UINT8   mode;      /* eeprom mode */
3232   UINT16   address;   /* Read/write address */
3333   UINT8   command;   /* Commands: 00, 01, 02, 03, 04, 08, 0C */
r9638r9639
3636   int   size;      /* size of eeprom/sram area */
3737   UINT8   *data;      /* pointer to start of sram/eeprom data */
3838   UINT8   *page;      /* pointer to current sram/eeprom page */
39};
39} EEPROM;
4040
41struct RTC {
41typedef struct {
4242   UINT8   present;   /* Is an RTC present */
4343   UINT8   setting;   /* Timer setting byte */
4444   UINT8   year;      /* Year */
r9638r9639
4949   UINT8   minute;      /* Minute */
5050   UINT8   second;      /* Second */
5151   UINT8   index;      /* index for reading/writing of current of alarm time */
52};
52} RTC;
5353
54struct SoundDMA {
54typedef struct {
5555   UINT32   source;      /* Source address */
5656   UINT16   size;      /* Size */
5757   UINT8   enable;      /* Enabled */
58};
58} SoundDMA;
5959
6060static TIMER_CALLBACK(wswan_scanline_interrupt);
6161
r9638r9639
6464static UINT32 ROMBanks;
6565static UINT8 internal_eeprom[INTERNAL_EEPROM_SIZE];
6666static UINT8 system_type;
67struct VDP wswan_vdp;
68static struct EEPROM eeprom;
69static struct RTC rtc;
70static struct SoundDMA sound_dma;
67VDP wswan_vdp;
68static EEPROM eeprom;
69static RTC rtc;
70static SoundDMA sound_dma;
7171static UINT8 *ws_ram;
7272static UINT8 *ws_bios_bank;
7373static UINT8 wswan_bios_disabled;
src/mess/machine/apple2gs.c
r9638r9639
16191619static READ8_HANDLER( apple2gs_E0Cxxx_r ) { return apple2gs_xxCxxx_r(space->machine, offset | 0xE0C000); }
16201620static READ8_HANDLER( apple2gs_E1Cxxx_r ) { return apple2gs_xxCxxx_r(space->machine, offset | 0xE1C000); }
16211621
1622static WRITE8_HANDLER( apple2gs_00Cxxx_w) { apple2gs_xxCxxx_w(space->machine, offset | 0x00C000, data); }
1623static WRITE8_HANDLER( apple2gs_01Cxxx_w) { apple2gs_xxCxxx_w(space->machine, offset | 0x01C000, data); }
1624static WRITE8_HANDLER( apple2gs_E0Cxxx_w) { apple2gs_xxCxxx_w(space->machine, offset | 0xE0C000, data); }
1625static WRITE8_HANDLER( apple2gs_E1Cxxx_w) { apple2gs_xxCxxx_w(space->machine, offset | 0xE1C000, data); }
1622static WRITE8_HANDLER( apple2gs_00Cxxx_w ) { apple2gs_xxCxxx_w(space->machine, offset | 0x00C000, data); }
1623static WRITE8_HANDLER( apple2gs_01Cxxx_w ) { apple2gs_xxCxxx_w(space->machine, offset | 0x01C000, data); }
1624static WRITE8_HANDLER( apple2gs_E0Cxxx_w ) { apple2gs_xxCxxx_w(space->machine, offset | 0xE0C000, data); }
1625static WRITE8_HANDLER( apple2gs_E1Cxxx_w ) { apple2gs_xxCxxx_w(space->machine, offset | 0xE1C000, data); }
16261626
16271627static WRITE8_HANDLER( apple2gs_Exxxxx_w )
16281628{
src/mess/machine/nc.c
r9638r9639
1919static int nc_card_size;
2020
2121/* save card data back */
22static void   nc_card_save(device_image_interface &image)
22static void nc_card_save(device_image_interface &image)
2323{
2424   /* if there is no data to write, quit */
2525   if (!nc_card_ram || !nc_card_size)
r9638r9639
5454
5555
5656/* load card image */
57static int nc_card_load(device_image_interface *image, unsigned char **ptr)
57static int nc_card_load(device_image_interface &image, unsigned char **ptr)
5858{
5959   int datasize;
6060   unsigned char *data;
6161
6262   /* get file size */
63   datasize = image->length();
63   datasize = image.length();
6464
6565   if (datasize!=0)
6666   {
r9638r9639
7272         nc_card_size = datasize;
7373
7474         /* read whole file */
75         image->fread(data, datasize);
75         image.fread(data, datasize);
7676
7777         *ptr = data;
7878
r9638r9639
105105   /* filename specified */
106106
107107   /* attempt to load file */
108   if (nc_card_load(&image, &nc_card_ram))
108   if (nc_card_load(image, &nc_card_ram))
109109   {
110110      if (nc_card_ram!=NULL)
111111      {
src/mess/machine/super80.c
r9638r9639
6767
6868/********************************************* TIMER ************************************************/
6969
70static UINT8 cass_data[]={ 0, 0, 0, 0 };
70static UINT8 cass_data[4]={ 0, 0, 0, 0 };
7171
7272   /* this timer runs at 200khz and does 2 jobs:
7373    1. Scan the keyboard and present the results to the pio
src/mess/machine/pc_fdc.c
r9638r9639
5757
5858static WRITE_LINE_DEVICE_HANDLER(  pc_fdc_hw_interrupt );
5959static WRITE_LINE_DEVICE_HANDLER( pc_fdc_hw_dma_drq );
60static UPD765_GET_IMAGE ( pc_fdc_get_image);
60static UPD765_GET_IMAGE ( pc_fdc_get_image );
6161
6262const upd765_interface pc_fdc_upd765_connected_interface =
6363{
src/mess/machine/hec2hrp.c
r9638r9639
336336********************************************************************************/
337337
338338/*******************  Lecture PIO 8255 *******************/
339READ8_HANDLER( hector_io_8255_r)
339READ8_HANDLER( hector_io_8255_r )
340340{
341341
342342/* 8255 in mode 0 */
r9638r9639
373373return data;  // Retour de la valeur !
374374}
375375/*******************  Ecriture PIO 8255 *******************/
376WRITE8_HANDLER( hector_io_8255_w)
376WRITE8_HANDLER( hector_io_8255_w )
377377{
378378/* 8255 in mode 0 */
379379if ((offset & 0x3) == 0x0) /* Port A => to printer or Disk II*/
r9638r9639
417417
418418
419419/*******************  Ecriture PIO specifique machine MX40 *******************/
420WRITE8_HANDLER( hector_mx40_io_port_w)
420WRITE8_HANDLER( hector_mx40_io_port_w )
421421{
422422/* Bank switching on several address */
423423   if ((offset &0x0ff) == 0xf0) /* Port A => to printer*/
r9638r9639
436436}
437437
438438/*******************  Ecriture PIO specifique machine MX80 *******************/
439WRITE8_HANDLER( hector_mx80_io_port_w)
439WRITE8_HANDLER( hector_mx80_io_port_w )
440440{
441441   if ((offset &0x0ff) == 0xf0) /* Port A => to printer*/
442442      printer_output(space->machine->device("printer"), data);
src/mess/machine/jupiter.c
r9638r9639
3030jupiter_tape;
3131
3232static UINT8 *jupiter_data = NULL;
33static int jupiter_data_type = JUPITER_NONE;
33static int jupiter_data_type;
3434
3535static void jupiter_machine_stop(running_machine &machine);
3636
r9638r9639
8686{
8787   address_space *space = cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM);
8888
89   jupiter_data_type = JUPITER_NONE;
8990   logerror("jupiter_init\r\n");
9091   logerror("data: %p\n", jupiter_data);
9192
src/mess/machine/rmnimbus.c
r9638r9639
6262
6363/* Debugging */
6464
65static UINT32  debug_flags;
65#define DEBUG_SET(flags)    ((debug_machine & (flags))==(flags))
66static UINT32 debug_machine;
6667
6768#define DMA_BREAK           0x0000001
6869#define DECODE_BIOS         0x0000002
r9638r9639
13491350      machine->device(MAINCPU_TAG)->debug()->set_instruction_hook(instruction_hook);
13501351    }
13511352
1352    debug_flags=DECODE_BIOS;
1353    debug_machine=DECODE_BIOS;
13531354}
13541355
13551356static void execute_debug_irq(running_machine *machine, int ref, int params, const char *param[])
r9638r9639
13691370    {
13701371        debug_console_printf(machine,"Error, you must supply an intno and vector to trigger\n");
13711372    }
1372
1373
13741373}
13751374
13761375
r9638r9639
13931392{
13941393    if(params>0)
13951394    {
1396        sscanf(param[0],"%d",&debug_flags);
1395        sscanf(param[0],"%d",&debug_machine);
13971396    }
13981397    else
13991398    {
14001399        debug_console_printf(machine,"Error usage : nimbus_debug <debuglevel>\n");
1401        debug_console_printf(machine,"Current debuglevel=%02X\n",debug_flags);
1400        debug_console_printf(machine,"Current debuglevel=%02X\n",debug_machine);
14021401    }
14031402}
14041403
r9638r9639
19281927{
19291928    int     blockbase;
19301929    int     blocksize;
1931} nimbus_block ;
1930} nimbus_block;
19321931
19331932typedef nimbus_block nimbus_blocks[3];
19341933
src/mess/machine/cybiko.c
r9638r9639
7272MACHINE_STOP( cybikoxt );
7373
7474// rs232
75static void cybiko_rs232_init( void);
76static void cybiko_rs232_exit( void);
77static void cybiko_rs232_reset( void);
75static void cybiko_rs232_init(void);
76static void cybiko_rs232_exit(void);
77static void cybiko_rs232_reset(void);
7878
7979////////////////////////
8080// DRIVER INIT & EXIT //
r9638r9639
148148   return (filerr == FILERR_NONE) ? file : NULL;
149149}
150150
151typedef void (nvram_load_func)(running_machine *machine, mame_file *file);
151typedef void (nvram_load_func)(running_machine *machine, mame_file *file);
152152
153153static int nvram_system_load( running_machine *machine, const char *name, nvram_load_func _nvram_load, int required)
154154{
r9638r9639
164164   return TRUE;
165165}
166166
167typedef void (nvram_save_func)(running_machine *machine, mame_file *file);
167typedef void (nvram_save_func)(running_machine *machine, mame_file *file);
168168
169169static int nvram_system_save( running_machine *machine, const char *name, nvram_save_func _nvram_save)
170170{
r9638r9639
342342
343343static CYBIKO_RS232 rs232;
344344
345static void cybiko_rs232_init( void)
345static void cybiko_rs232_init(void)
346346{
347347   _logerror( 0, ("cybiko_rs232_init\n"));
348348   memset( &rs232, 0, sizeof( rs232));
349//  timer_pulse(machine, TIME_IN_HZ( 10), NULL, 0, rs232_timer_callback);
349//  timer_pulse(machine, TIME_IN_HZ( 10), NULL, 0, rs232_timer_callback);
350350}
351351
352static void cybiko_rs232_exit( void)
352static void cybiko_rs232_exit(void)
353353{
354354   _logerror( 0, ("cybiko_rs232_exit\n"));
355355}
356356
357static void cybiko_rs232_reset( void)
357static void cybiko_rs232_reset(void)
358358{
359359   _logerror( 0, ("cybiko_rs232_reset\n"));
360360}
361361
362static void cybiko_rs232_write_byte( UINT8 data)
362static void cybiko_rs232_write_byte(UINT8 data)
363363{
364364   #if 0
365365   printf( "%c", data);
366366   #endif
367367}
368368
369static void cybiko_rs232_pin_sck( int data)
369static void cybiko_rs232_pin_sck(int data)
370370{
371371   _logerror( 3, ("cybiko_rs232_pin_sck (%d)\n", data));
372372   // clock high-to-low
r9638r9639
394394   rs232.pin.sck = data;
395395}
396396
397static void cybiko_rs232_pin_txd( int data)
397static void cybiko_rs232_pin_txd(int data)
398398{
399399   _logerror( 3, ("cybiko_rs232_pin_txd (%d)\n", data));
400400   rs232.pin.txd = data;
401401}
402402
403static int cybiko_rs232_pin_rxd( void)
403static int cybiko_rs232_pin_rxd(void)
404404{
405405   _logerror( 3, ("cybiko_rs232_pin_rxd\n"));
406406   return rs232.pin.rxd;
407407}
408408
409static int cybiko_rs232_rx_queue( void)
409static int cybiko_rs232_rx_queue(void)
410410{
411411   return 0;
412412}
src/mess/machine/cdic.c
r9638r9639
12171217    verboselog(space->machine, 0, "cdic_ram_w: %08x = %04x & %04x\n", 0x00300000 + offset*2, data, mem_mask);
12181218    COMBINE_DATA(&m_ram[offset]);
12191219}
1220
1221}
1222}
src/mess/machine/pce.c
r9638r9639
8383   PCE_CD_CDDA_PAUSED
8484};
8585
86static UINT8 pce_io_port_options;
87
8688/* system RAM */
8789unsigned char *pce_user_ram;    /* scratch RAM at F8 */
8890
8991/* CD Unit RAM */
90UINT8   *pce_cd_ram;         /* 64KB RAM from a CD unit */
92UINT8 *pce_cd_ram;         /* 64KB RAM from a CD unit */
9193static UINT8   pce_sys3_card;   /* Is a Super CD System 3 card present */
9294static UINT8   pce_acard;      /* Is this an Arcade Card? */
93static struct {
95
96typedef struct {
9497   UINT8   regs[16];
9598   UINT8   *bram;
9699   UINT8   *adpcm_ram;
r9638r9639
158161   emu_timer   *adpcm_fadeout_timer;
159162   emu_timer   *adpcm_fadein_timer;
160163   double   adpcm_volume;
161} pce_cd;
164} pce_cd_t;
165static pce_cd_t pce_cd;
162166
163167/* MSM5205 ADPCM decoder definition */
164168static void pce_cd_msm5205_int(running_device *device);
r9638r9639
167171   MSM5205_S48_4B      /* 1/48 prescaler, 4bit data */
168172};
169173
170struct pce_struct pce;
171
172174static UINT8 *cartridge_ram;
173175
174176/* joystick related data*/
r9638r9639
332334
333335DRIVER_INIT( pce )
334336{
335   pce.io_port_options = PCE_JOY_SIG | CONST_SIG;
337   pce_io_port_options = PCE_JOY_SIG | CONST_SIG;
336338}
337339
338340DRIVER_INIT( tg16 )
339341{
340   pce.io_port_options = TG_16_JOY_SIG | CONST_SIG;
342   pce_io_port_options = TG_16_JOY_SIG | CONST_SIG;
341343}
342344
343345DRIVER_INIT( sgx )
344346{
345   pce.io_port_options = PCE_JOY_SIG | CONST_SIG;
347   pce_io_port_options = PCE_JOY_SIG | CONST_SIG;
346348}
347349
348350MACHINE_START( pce )
r9638r9639
443445   if (joystick_data_select)
444446      data >>= 4;
445447
446   ret = (data & 0x0f) | pce.io_port_options;
448   ret = (data & 0x0f) | pce_io_port_options;
447449#ifdef UNIFIED_PCE
448450   ret &= ~0x40;
449451#endif
src/mess/machine/atarifdc.c
r9638r9639
387387 * F->A                    128/256 byte CKS   bad sector table
388388 *
389389 *****************************************************************************/
390static   void make_chksum(UINT8 * chksum, UINT8 data)
390static void make_chksum(UINT8 * chksum, UINT8 data)
391391{
392392   UINT8 newone;
393393   newone= *chksum + data;
r9638r9639
400400   *chksum = newone;
401401}
402402
403static   void clr_serout(running_device *device,int expect_data)
403static void clr_serout(running_device *device,int expect_data)
404404{
405405   atari_fdc_t *fdc = get_safe_token(device);
406406
src/mess/video/dgn_beta.c
r9638r9639
168168static int   ClkMax;      /* max crtc clock, used to timeout screen refresh */
169169static int   GCtrl;      /* Graphics control reg, from I28 PB0..5, PB6-7, top address lines for text mode */
170170
171static   int   FlashCount;   /* Flash counter, IC2, LS393 decade counter */
171static int   FlashCount;   /* Flash counter, IC2, LS393 decade counter */
172172static int   FlashBit;   /* Flash bit, FL input to I38 */
173173static int   s_DoubleY;   /* Double height latch, 'Y' in I38 */
174174static int   DoubleHL;   /* Double height second row 'HL' in I38 */
src/mess/video/pc_vga_mess.c
r9638r9639
264264// to use the mscrtc6845 macros
265265#define REG(x) vga.crtc.data[x]
266266
267#define DOUBLESCAN ((vga.crtc.data[9]&0x80)||((vga.crtc.data[9]&0x1f)!=0) )
267#define DOUBLESCAN ((vga.crtc.data[9]&0x80)||((vga.crtc.data[9]&0x1f)!=0))
268268#define CRTC_PORT_ADDR ((vga.miscellaneous_output&1)?0x3d0:0x3b0)
269269
270270#define CRTC_ON (vga.crtc.data[0x17]&0x80)
r9638r9639
293293#define TEXT_START_ADDRESS (EGA_START_ADDRESS)
294294#define TEXT_LINE_LENGTH (EGA_LINE_LENGTH>>2)
295295
296#define TEXT_COPY_9COLUMN(ch) ( (ch>=192)&&(ch<=223)&&(vga.attribute.data[0x10]&4))
296#define TEXT_COPY_9COLUMN(ch) ((ch>=192)&&(ch<=223)&&(vga.attribute.data[0x10]&4))
297297
298298//#define CURSOR_ON (!(vga.crtc.data[0xa]&0x20))
299299//#define CURSOR_STARTLINE (vga.crtc.data[0xa]&0x1f)
300300//#define CURSOR_ENDLINE (vga.crtc.data[0xb]&0x1f)
301301//#define CURSOR_POS (vga.crtc.data[0xf]|(vga.crtc.data[0xe]<<8))
302302
303#define FONT1 ( ((vga.sequencer.data[3]&3)|((vga.sequencer.data[3]&0x10)<<2))*0x2000)
304#define FONT2 ((((vga.sequencer.data[3]&c)>>2)|((vga.sequencer.data[3]&0x20)<<3))*0x2000)
303#define FONT1 (  ((vga.sequencer.data[3]&0x3)    |((vga.sequencer.data[3]&0x10)<<2))*0x2000 )
304#define FONT2 ( (((vga.sequencer.data[3]&0xc)>>2)|((vga.sequencer.data[3]&0x20)<<3))*0x2000 )
305305
306306
307307INLINE UINT8 rotate_right(UINT8 val, UINT8 rot)
r9638r9639
830830
831831
832832
833READ8_HANDLER( ega_port_03c0_r)
833READ8_HANDLER( ega_port_03c0_r )
834834{
835835   UINT8 data = 0xff;
836836   switch (offset) {
src/mess/video/cgenie.c
r9638r9639
1010#include "includes/cgenie.h"
1111
1212
13int cgenie_font_offset[4] = {0, 0, 0, 0};
13int cgenie_font_offset[4];
1414
1515static CRTC6845 crt;
1616static int graphics = 0;
src/mess/video/kaypro.c
r9638r9639
99
1010static running_device *mc6845;
1111static const UINT8 *FNT;
12static UINT8 chr,gfx,fg,bg,attr,speed,flash,framecnt=0;
13static UINT16 mem,x,cursor,mc6845_video_address;
12static UINT8 speed,flash,framecnt=0;
13static UINT16 cursor,mc6845_video_address;
1414
1515/***********************************************************
1616
r9638r9639
3737    connected from the rom to the shift register, the remaining pixels are held high.
3838    A high pixel is black and a low pixel is green. */
3939
40   static UINT8 framecnt=0;
4140   UINT8 y,ra,chr,gfx;
4241   UINT16 sy=0,ma=0,x;
4342
r9638r9639
8483{
8584   kaypro_state *state = screen->machine->driver_data<kaypro_state>();
8685   UINT8 *videoram = state->videoram;
87   static UINT8 framecnt=0;
8886   UINT8 y,ra,chr,gfx;
8987   UINT16 sy=0,ma=0,x;
9088
r9638r9639
130128VIDEO_UPDATE( kaypro2x )
131129{
132130   framecnt++;
133   speed = mc6845_reg[10]&0x20, flash = mc6845_reg[10]&0x40;            // cursor modes
131   speed = mc6845_reg[10]&0x20;
132   flash = mc6845_reg[10]&0x40;            // cursor modes
134133   cursor = (mc6845_reg[14]<<8) | mc6845_reg[15];               // get cursor position
135134   mc6845_update(mc6845, bitmap, cliprect);
136135   return 0;
r9638r9639
154153   kaypro_state *state = device->machine->driver_data<kaypro_state>();
155154   UINT8 *videoram = state->videoram;
156155   UINT16  *p = BITMAP_ADDR16(bitmap, y, 0);
156   UINT16 x;
157   UINT8 gfx,fg,bg;
157158
158159   for (x = 0; x < x_count; x++)            // for each character
159160   {
160161      UINT8 inv=0;
161162      //      if (x == cursor_x) inv=0xff;    /* uncomment when mame fixed */
162      mem = (ma + x) & 0x7ff;
163      chr = videoram[mem];
164      attr = videoram[mem | 0x800];
163      UINT16 mem = (ma + x) & 0x7ff;
164      UINT8 chr = videoram[mem];
165      UINT8 attr = videoram[mem | 0x800];
165166
166167      if ((attr & 3) == 3)
167168      {
src/mess/video/apple1.c
r9638r9639
7272
7373typedef short termchar_t;
7474
75struct terminal
75typedef struct
7676{
7777   tilemap_t *tm;
7878   int gfx;
r9638r9639
8484   int cur_offset;
8585   int cur_hidden;
8686   termchar_t mem[1];
87};
87} terminal_t;
8888
89static struct terminal *current_terminal;
89static terminal_t *current_terminal;
9090
9191static TILE_GET_INFO(terminal_gettileinfo)
9292{
r9638r9639
107107      0);         /* flags */
108108}
109109
110static void terminal_draw(bitmap_t *dest, const rectangle *cliprect, struct terminal *terminal)
110static void terminal_draw(bitmap_t *dest, const rectangle *cliprect, terminal_t *terminal)
111111{
112112   current_terminal = terminal;
113113   tilemap_draw(dest, cliprect, terminal->tm, 0, 0);
114114   current_terminal = NULL;
115115}
116116
117static void verify_coords(struct terminal *terminal, int x, int y)
117static void verify_coords(terminal_t *terminal, int x, int y)
118118{
119119   assert(x >= 0);
120120   assert(y >= 0);
r9638r9639
122122   assert(y < terminal->num_rows);
123123}
124124
125static void terminal_putchar(struct terminal *terminal, int x, int y, int ch)
125static void terminal_putchar(terminal_t *terminal, int x, int y, int ch)
126126{
127127   int offs;
128128
r9638r9639
136136   }
137137}
138138
139static int terminal_getchar(struct terminal *terminal, int x, int y)
139static int terminal_getchar(terminal_t *terminal, int x, int y)
140140{
141141   int offs;
142142
r9638r9639
145145   return terminal->mem[offs];
146146}
147147
148static void terminal_putblank(struct terminal *terminal, int x, int y)
148static void terminal_putblank(terminal_t *terminal, int x, int y)
149149{
150150   terminal_putchar(terminal, x, y, terminal->blank_char);
151151}
152152
153static void terminal_dirtycursor(struct terminal *terminal)
153static void terminal_dirtycursor(terminal_t *terminal)
154154{
155155   if (terminal->cur_offset >= 0)
156156      tilemap_mark_tile_dirty(terminal->tm, terminal->cur_offset);
157157}
158158
159static void terminal_setcursor(struct terminal *terminal, int x, int y)
159static void terminal_setcursor(terminal_t *terminal, int x, int y)
160160{
161161   terminal_dirtycursor(terminal);
162162   terminal->cur_offset = y * terminal->num_cols + x;
163163   terminal_dirtycursor(terminal);
164164}
165165
166static void terminal_hidecursor(struct terminal *terminal)
166static void terminal_hidecursor(terminal_t *terminal)
167167{
168168   terminal->cur_hidden = 1;
169169   terminal_dirtycursor(terminal);
170170}
171171
172static void terminal_showcursor(struct terminal *terminal)
172static void terminal_showcursor(terminal_t *terminal)
173173{
174174   terminal->cur_hidden = 0;
175175   terminal_dirtycursor(terminal);
176176}
177177
178static void terminal_getcursor(struct terminal *terminal, int *x, int *y)
178static void terminal_getcursor(terminal_t *terminal, int *x, int *y)
179179{
180180   *x = terminal->cur_offset % terminal->num_cols;
181181   *y = terminal->cur_offset / terminal->num_cols;
182182}
183183
184static void terminal_fill(struct terminal *terminal, int val)
184static void terminal_fill(terminal_t *terminal, int val)
185185{
186186   int i;
187187   for (i = 0; i < terminal->num_cols * terminal->num_rows; i++)
r9638r9639
189189   tilemap_mark_all_tiles_dirty(terminal->tm);
190190}
191191
192static void terminal_clear(struct terminal *terminal)
192static void terminal_clear(terminal_t *terminal)
193193{
194194   terminal_fill(terminal, terminal->blank_char);
195195}
196196
197static struct terminal *terminal_create(
197static terminal_t *terminal_create(
198198   running_machine *machine,
199199   int gfx, int blank_char, int char_bits,
200200   int (*getcursorcode)(int original_code),
201201   int num_cols, int num_rows)
202202{
203   struct terminal *term;
203   terminal_t *term;
204204   int char_width, char_height;
205205
206206   char_width = machine->gfx[gfx]->width;
207207   char_height = machine->gfx[gfx]->height;
208208
209   term = (struct terminal *) auto_alloc_array(machine, char, sizeof(struct terminal) - sizeof(term->mem)
209   term = (terminal_t *) auto_alloc_array(machine, char, sizeof(terminal_t) - sizeof(term->mem)
210210      + (num_cols * num_rows * sizeof(termchar_t)));
211211
212212   term->tm = tilemap_create(machine, terminal_gettileinfo, tilemap_scan_rows,
r9638r9639
228228/**************************************************************************/
229229
230230
231static struct terminal *apple1_terminal;
231static terminal_t *apple1_terminal;
232232
233233int apple1_vh_clrscrn_pressed = 0;      /* flag for CLEAR SCREEN switch */
234234
src/mess/video/fmtowns.c
r9638r9639
9292//#define CRTC_REG_DISP 1
9393//#define SPR_DEBUG 1
9494
95//extern UINT32* towns_vram;
96//extern UINT8* towns_gfxvram;
97//extern UINT8* towns_txtvram;
98//extern UINT8* towns_sprram;
99
100//extern UINT32 towns_mainmem_enable;
101//extern UINT32 towns_ankcg_enable;
102
10395//static UINT32 pshift;  // for debugging
10496
10597static void draw_sprites(running_machine* machine, const rectangle* rect);
r9638r9639
680672   }
681673}
682674
683READ8_HANDLER( towns_spriteram_r)
675READ8_HANDLER( towns_spriteram_r )
684676{
685677   towns_state* state = space->machine->driver_data<towns_state>();
686678
687679   return state->towns_txtvram[offset];
688680}
689681
690WRITE8_HANDLER( towns_spriteram_w)
682WRITE8_HANDLER( towns_spriteram_w )
691683{
692684   towns_state* state = space->machine->driver_data<towns_state>();
693685
r9638r9639
18631855      }
18641856   }
18651857
1866/*#ifdef SPR_DEBUG
1867    if(input_code_pressed(screen->machine,KEYCODE_O))
1868        pshift+=0x80;
1869    if(input_code_pressed(screen->machine,KEYCODE_I))
1870        pshift-=0x80;
1871    popmessage("Pixel shift = %08x",pshift);
1872#endif*/
1858#if 0
1859#ifdef SPR_DEBUG
1860   if(input_code_pressed(screen->machine,KEYCODE_O))
1861      pshift+=0x80;
1862   if(input_code_pressed(screen->machine,KEYCODE_I))
1863      pshift-=0x80;
1864   popmessage("Pixel shift = %08x",pshift);
1865#endif
1866#endif
18731867
18741868#ifdef CRTC_REG_DISP
18751869   popmessage("CRTC: %i %i %i %i %i %i %i %i %i\n%i %i %i %i | %i %i %i %i\n%04x %i %i %i | %04x %i %i %i\nZOOM: %04x\nVideo: %02x %02x\nText=%i Spr=%02x\nReg28=%04x",
r9638r9639
18841878      state->video.towns_crtc_reg[28]);
18851879#endif
18861880
1887    return 0;
1881   return 0;
18881882}
18891883
src/mess/video/hd44780.c
r9638r9639
375375      ddram[ac] = data;
376376   else {
377377      cgram[ac] = data;
378      }
378   }
379379   data_bus_flag = 1;
380380
381381   set_busy_flag(41);
src/mess/video/rmnimbus.c
r9638r9639
7878static UINT16  pixel_mask;
7979static UINT8   hs_count;
8080
81static UINT32 debug_flags;
81#define DEBUG_TEXT  0x01
82#define DEBUG_DB    0x02
83#define DEBUG_PIXEL 0x04
8284
85#define DEBUG_SET(flags)    ((debug_video & (flags))==(flags))
86static UINT32 debug_video;
87
8388static UINT8 get_pixel(UINT16 x, UINT16 y);
8489static UINT16 read_pixel_line(UINT16 x, UINT16 y, UINT8 width);
8590static UINT16 read_pixel_data(UINT16 x, UINT16 y);
r9638r9639
586591{
587592    if(params>0)
588593    {
589        sscanf(param[0],"%d",&debug_flags);
594        sscanf(param[0],"%d",&debug_video);
590595    }
591596    else
592597    {
593598        debug_console_printf(machine,"Error usage : nimbus_vid_debug <debuglevel>\n");
594        debug_console_printf(machine,"Current debuglevel=%02X\n",debug_flags);
599        debug_console_printf(machine,"Current debuglevel=%02X\n",debug_video);
595600    }
596601}
597602
r9638r9639
615620
616621VIDEO_START( nimbus )
617622{
618    debug_flags=0;
623    debug_video=0;
619624
620625    logerror("VIDEO_START\n");
621626
src/mess/video/avigo.c
r9638r9639
4545
4646static gfx_element *stylus_pointer;
4747
48void   avigo_vh_set_stylus_marker_position(int x,int y)
48void avigo_vh_set_stylus_marker_position(int x,int y)
4949{
5050   stylus_x = x;
5151   stylus_y = y;
src/mess/video/hd66421.c
r9638r9639
6565
6666static HD66421 lcd;
6767
68UINT8 hd66421_reg_idx_r( void)
68UINT8 hd66421_reg_idx_r(void)
6969{
7070   _logerror( 2, ("hd66421_reg_idx_r\n"));
7171   return lcd.idx;
7272}
7373
74void hd66421_reg_idx_w( UINT8 data)
74void hd66421_reg_idx_w(UINT8 data)
7575{
7676   _logerror( 2, ("hd66421_reg_idx_w (%02X)\n", data));
7777   lcd.idx = data;
7878}
7979
80UINT8 hd66421_reg_dat_r( void)
80UINT8 hd66421_reg_dat_r(void)
8181{
8282   _logerror( 2, ("hd66421_reg_dat_r\n"));
8383   return lcd.dat[lcd.idx];
8484}
8585
86void hd66421_reg_dat_w( UINT8 data)
86void hd66421_reg_dat_w(UINT8 data)
8787{
8888   _logerror( 2, ("hd66421_reg_dat_w (%02X)\n", data));
8989   lcd.dat[lcd.idx] = data;
r9638r9639
9494   }
9595}
9696
97INLINE void hd66421_plot_pixel( bitmap_t *bitmap, int x, int y, UINT32 color)
97INLINE void hd66421_plot_pixel(bitmap_t *bitmap, int x, int y, UINT32 color)
9898{
9999   *BITMAP_ADDR16( bitmap, y, x) = (UINT16)color;
100100}
src/mess/video/hd66421.h
r9638r9639
1616
1717/*----------- defined in video/hd66421.c -----------*/
1818
19UINT8 hd66421_reg_idx_r( void);
20void hd66421_reg_idx_w( UINT8 data);
19UINT8 hd66421_reg_idx_r(void);
20void hd66421_reg_idx_w(UINT8 data);
2121
22UINT8 hd66421_reg_dat_r( void);
23void hd66421_reg_dat_w( UINT8 data);
22UINT8 hd66421_reg_dat_r(void);
23void hd66421_reg_dat_w(UINT8 data);
2424
2525PALETTE_INIT( hd66421 );
2626
src/mess/video/hec2video.c
r9638r9639
4646
4747
4848
49static void Init_Hector_Palette( running_machine *machine)
49static void Init_Hector_Palette(running_machine *machine)
5050{
5151   // basic colors !
5252   hector_color[0] = 0;  // fond (noir)
r9638r9639
5555   hector_color[3] = 3; // Ecriture de choix (jaune)
5656
5757   // Color initialisation : full luminosit??
58   palette_set_color( machine, 0,MAKE_RGB(000,000,000));//Noir
59   palette_set_color( machine, 1,MAKE_RGB(255,000,000));//Rouge
60   palette_set_color( machine, 2,MAKE_RGB(000,255,000));//Vert
61   palette_set_color( machine, 3,MAKE_RGB(255,255,000));//Jaune
62   palette_set_color( machine, 4,MAKE_RGB(000,000,255));//Bleu
63   palette_set_color( machine, 5,MAKE_RGB(255,000,255));//Magneta
64   palette_set_color( machine, 6,MAKE_RGB(000,255,255));//Cyan
65   palette_set_color( machine, 7,MAKE_RGB(255,255,255));//Blanc
58   palette_set_color( machine, 0, MAKE_RGB(000,000,000) );//Noir
59   palette_set_color( machine, 1, MAKE_RGB(255,000,000) );//Rouge
60   palette_set_color( machine, 2, MAKE_RGB(000,255,000) );//Vert
61   palette_set_color( machine, 3, MAKE_RGB(255,255,000) );//Jaune
62   palette_set_color( machine, 4, MAKE_RGB(000,000,255) );//Bleu
63   palette_set_color( machine, 5, MAKE_RGB(255,000,255) );//Magneta
64   palette_set_color( machine, 6, MAKE_RGB(000,255,255) );//Cyan
65   palette_set_color( machine, 7, MAKE_RGB(255,255,255) );//Blanc
6666   // 1/2 luminosit??
67   palette_set_color( machine, 8,MAKE_RGB(000,000,000));//Noir
68   palette_set_color( machine, 9,MAKE_RGB(128,000,000));//Rouge
69   palette_set_color( machine,10,MAKE_RGB(000,128,000));//Vert
70   palette_set_color( machine,11,MAKE_RGB(128,128,000));//Jaune
71   palette_set_color( machine,12,MAKE_RGB(000,000,128));//Bleu
72   palette_set_color( machine,13,MAKE_RGB(128,000,128));//Magneta
73   palette_set_color( machine,14,MAKE_RGB(000,128,128));//Cyan
74   palette_set_color( machine,15,MAKE_RGB(128,128,128));//Blanc
67   palette_set_color( machine, 8, MAKE_RGB(000,000,000) );//Noir
68   palette_set_color( machine, 9, MAKE_RGB(128,000,000) );//Rouge
69   palette_set_color( machine,10, MAKE_RGB(000,128,000) );//Vert
70   palette_set_color( machine,11, MAKE_RGB(128,128,000) );//Jaune
71   palette_set_color( machine,12, MAKE_RGB(000,000,128) );//Bleu
72   palette_set_color( machine,13, MAKE_RGB(128,000,128) );//Magneta
73   palette_set_color( machine,14, MAKE_RGB(000,128,128) );//Cyan
74   palette_set_color( machine,15, MAKE_RGB(128,128,128) );//Blanc
7575}
7676
7777void hector_hr(bitmap_t *bitmap, UINT8 *page, int ymax, int yram)
r9638r9639
8383      for (x = ma; x < ma + yram; x++) {  // 64
8484         gfx = *(page+x);
8585         /* Display a scanline of a character (4 pixels !) */
86         switch (gfx & 0x03) {
87              case 0x00 : *p=hector_color[0]; break;
88              case 0x01 : *p=hector_color[1]; break;
89              case 0x02 : *p=hector_color[2]; break;
90              default   : *p=hector_color[3]; break;}
91         p++;
92
93         switch (gfx & 0x0c)   {
94              case 0x00 : *p=hector_color[0]; break;
95              case 0x04 : *p=hector_color[1]; break;
96              case 0x08 : *p=hector_color[2]; break;
97              default   : *p=hector_color[3]; break;}
98         p++;
99
100         switch (gfx & 0x30)   {
101              case 0x00 : *p=hector_color[0]; break;
102              case 0x10 : *p=hector_color[1]; break;
103              case 0x20 : *p=hector_color[2]; break;
104              default   : *p=hector_color[3]; break;}
105         p++;
106
107         switch (gfx & 0xc0) {
108              case 0x00 : *p=hector_color[0]; break;
109              case 0x40 : *p=hector_color[1]; break;
110              case 0x80 : *p=hector_color[2]; break;
111              default   : *p=hector_color[3]; break;}
112         p++;
86         *p++ = hector_color[(gfx >> 0) & 0x03];
87         *p++ = hector_color[(gfx >> 2) & 0x03];
88         *p++ = hector_color[(gfx >> 4) & 0x03];
89         *p++ = hector_color[(gfx >> 6) & 0x03];
11390      }
11491      ma+=yram;
11592   }
r9638r9639
124101      for (x = ma; x < ma + yram; x++) {  // 64
125102         gfx = *(page+x);
126103         /* Display a scanline of a character (8 pixels !) */
127         *p= (gfx &0x01 ) ? 7 : 0 ;
128         p++;
129         *p= (gfx &0x02 ) ? 7 : 0 ;
130         p++;
131         *p= (gfx &0x04 ) ? 7 : 0 ;
132         p++;
133         *p= (gfx &0x08 ) ? 7 : 0 ;
134         p++;
135         *p= (gfx &0x10 ) ? 7 : 0 ;
136         p++;
137         *p= (gfx &0x20 ) ? 7 : 0 ;
138         p++;
139         *p= (gfx &0x40 ) ? 7 : 0 ;
140         p++;
141         *p= (gfx &0x80 ) ? 7 : 0 ;
142         p++;
104         *p++ = (gfx & 0x01) ? 7 : 0;
105         *p++ = (gfx & 0x02) ? 7 : 0;
106         *p++ = (gfx & 0x04) ? 7 : 0;
107         *p++ = (gfx & 0x08) ? 7 : 0;
108         *p++ = (gfx & 0x10) ? 7 : 0;
109         *p++ = (gfx & 0x20) ? 7 : 0;
110         *p++ = (gfx & 0x40) ? 7 : 0;
111         *p++ = (gfx & 0x80) ? 7 : 0;
143112      }
144113      ma+=yram;
145114   }
src/mess/video/733_asr.h
r9638r9639
1111
1212GFXDECODE_EXTERN( asr733 );
1313
14extern PALETTE_INIT ( asr733 ) ;
14PALETTE_INIT( asr733 );
1515
1616void asr733_init(running_machine *machine);
1717int asr733_init_term(running_machine *machine, int unit, void (*int_callback)(running_machine *machine, int state));
src/mess/video/fm7.c
r9638r9639
88#include "cpu/m6809/m6809.h"
99#include "includes/fm7.h"
1010
11struct fm7_video_flags fm7_video;
11fm7_video_t fm7_video;
1212
13static struct fm7_alu_flags
13typedef struct
1414{
1515   UINT8 command;
1616   UINT8 lcolour;
r9638r9639
2828   UINT16 y0;
2929   UINT16 y1;
3030   UINT8 busy;
31} fm7_alu;
31} fm7_alu_t;
32static fm7_alu_t fm7_alu;
3233
3334/*
3435 * Main CPU: Sub-CPU interface (port 0xfd05)
src/mess/includes/fm7.h
r9638r9639
2828#define KEY_MODE_FM16B 1 // FM-16B (FM-77AV and later only)
2929#define KEY_MODE_SCAN  2 // Scancode Make/Break (PC-like)
3030
31struct fm7_video_flags
31typedef struct
3232{
3333   UINT8 sub_busy;
3434   UINT8 sub_halt;
r9638r9639
5252   UINT8 active_video_page;
5353   UINT8 display_video_page;
5454   UINT8 vsync_flag;
55};
55} fm7_video_t;
5656
5757/*----------- defined in drivers/fm7.c -----------*/
5858
r9638r9639
7070
7171/*----------- defined in video/fm7.c -----------*/
7272
73extern struct fm7_video_flags fm7_video;
73extern fm7_video_t fm7_video;
7474
7575TIMER_CALLBACK( fm77av_vsync );
7676
src/mess/includes/wswan.h
r9638r9639
3535#define WSWAN_INT_HBLTMR 7
3636
3737
38struct VDP
38typedef struct
3939{
4040   UINT8 layer_bg_enable;         /* Background layer on/off */
4141   UINT8 layer_fg_enable;         /* Foreground layer on/off */
r9638r9639
8080   UINT8 display_vertical;         /* Should the wonderswan be held vertically? */
8181   UINT8 new_display_vertical;      /* New value for the display_vertical bit (to prevent mid frame changes) */
8282   emu_timer *timer;
83};
83} VDP;
8484
8585
8686/*----------- defined in machine/wswan.c -----------*/
8787
88extern struct VDP wswan_vdp;
88extern VDP wswan_vdp;
8989extern UINT8 ws_portram[256];
9090
9191NVRAM_HANDLER( wswan );
src/mess/includes/cbmb.h
r9638r9639
3636
3737extern UINT8 *cbmb_basic;
3838extern UINT8 *cbmb_kernal;
39//extern UINT8 *cbmb_chargen;
40//extern UINT8 *cbmb_memory;
41extern UINT8 *cbmb_videoram;
4239extern UINT8 *cbmb_colorram;
4340
4441extern const mos6526_interface cbmb_cia;
src/mess/includes/advision.h
r9638r9639
3939
4040MACHINE_START( advision );
4141MACHINE_RESET( advision );
42READ8_HANDLER ( advision_extram_r);
42READ8_HANDLER( advision_extram_r );
4343WRITE8_HANDLER( advision_extram_w );
4444
4545/* Port P1 */
r9638r9639
4949/* Port P2 */
5050WRITE8_HANDLER( advision_av_control_w );
5151
52READ8_HANDLER ( advision_vsync_r );
53READ8_HANDLER ( advision_sound_cmd_r );
54WRITE8_HANDLER ( advision_sound_g_w );
55WRITE8_HANDLER ( advision_sound_d_w );
52READ8_HANDLER( advision_vsync_r );
53READ8_HANDLER( advision_sound_cmd_r );
54WRITE8_HANDLER( advision_sound_g_w );
55WRITE8_HANDLER( advision_sound_d_w );
5656
5757/*----------- defined in video/advision.c -----------*/
5858
src/mess/includes/cgenie.h
r9638r9639
3030
3131extern int cgenie_tv_mode;
3232
33READ8_HANDLER ( cgenie_psg_port_a_r);
33READ8_HANDLER ( cgenie_psg_port_a_r );
3434READ8_HANDLER ( cgenie_psg_port_b_r );
3535WRITE8_HANDLER ( cgenie_psg_port_a_w );
3636WRITE8_HANDLER ( cgenie_psg_port_b_w );
r9638r9639
9696
9797/*----------- defined in video/cgenie.c -----------*/
9898
99extern   int    cgenie_font_offset[4];
99extern int cgenie_font_offset[4];
100100
101101VIDEO_START( cgenie );
102102VIDEO_UPDATE( cgenie );
103103
104extern    READ8_HANDLER ( cgenie_index_r );
105extern    READ8_HANDLER ( cgenie_register_r );
104READ8_HANDLER( cgenie_index_r );
105READ8_HANDLER( cgenie_register_r );
106106
107extern   WRITE8_HANDLER ( cgenie_index_w );
108extern   WRITE8_HANDLER (   cgenie_register_w );
107WRITE8_HANDLER( cgenie_index_w );
108WRITE8_HANDLER( cgenie_register_w );
109109
110extern   int    cgenie_get_register(int indx);
110int cgenie_get_register(int indx);
111111
112extern   void   cgenie_mode_select(int graphics);
112void cgenie_mode_select(int graphics);
113113
114114
115115#endif /* CGENIE_H_ */
src/mess/includes/x68k.h
r9638r9639
199199   } mdctrl;
200200};
201201
202
203class x68k_state : public driver_device
204{
205public:
206   x68k_state(running_machine &machine, const driver_device_config_base &config)
207      : driver_device(machine, config),
208        m_nvram(*this, "nvram") { }
209
210   required_shared_ptr<UINT16>   m_nvram;
211};
212
213
202214/*----------- defined in drivers/x68k.c -----------*/
203215
204216extern struct x68k_system x68k_sys;
src/mess/includes/orion.h
r9638r9639
1414extern UINT8 orion128_video_mode;
1515extern UINT8 orion128_video_page;
1616extern UINT8 orion128_video_width;
17extern UINT8 orion_video_mode_mask ;
17extern UINT8 orion_video_mode_mask;
1818extern UINT8 orionpro_pseudo_color;
1919
2020extern const i8255a_interface orion128_ppi8255_interface_1;
src/mess/includes/hec2hrp.h
r9638r9639
8383
8484extern WRITE8_HANDLER( hector_mx80_io_port_w );
8585extern WRITE8_HANDLER( hector_mx40_io_port_w );
86extern  READ8_HANDLER( hector_io_8255_r);
87extern WRITE8_HANDLER( hector_io_8255_w);
86extern  READ8_HANDLER( hector_io_8255_r );
87extern WRITE8_HANDLER( hector_io_8255_w );
8888
8989/*----------- defined in video/hec2video.c -----------*/
9090
91extern void hector_80c(bitmap_t *bitmap, UINT8 *page, int ymax, int yram) ;
92extern void hector_hr(bitmap_t *bitmap, UINT8 *page, int ymax, int yram) ;
91extern void hector_80c(bitmap_t *bitmap, UINT8 *page, int ymax, int yram);
92extern void hector_hr(bitmap_t *bitmap, UINT8 *page, int ymax, int yram);
9393VIDEO_START( hec2hrp );
9494VIDEO_UPDATE( hec2hrp );
9595
src/mess/includes/fmtowns.h
r9638r9639
2323WRITE8_HANDLER(towns_video_ff81_w);
2424READ8_HANDLER(towns_spriteram_low_r);
2525WRITE8_HANDLER(towns_spriteram_low_w);
26READ8_HANDLER( towns_spriteram_r);
27WRITE8_HANDLER( towns_spriteram_w);
26READ8_HANDLER(towns_spriteram_r);
27WRITE8_HANDLER(towns_spriteram_w);
2828
2929struct towns_cdrom_controller
3030{
src/mess/includes/a7800.h
r9638r9639
1414VIDEO_START( a7800 );
1515VIDEO_UPDATE( a7800 );
1616INTERRUPT_GEN( a7800_interrupt );
17 READ8_HANDLER  ( a7800_MARIA_r);
18WRITE8_HANDLER ( a7800_MARIA_w );
17 READ8_HANDLER( a7800_MARIA_r );
18WRITE8_HANDLER( a7800_MARIA_w );
1919
2020
2121/*----------- defined in machine/a7800.c -----------*/
r9638r9639
3333DEVICE_START( a7800_cart );
3434DEVICE_IMAGE_LOAD( a7800_cart );
3535
36 READ8_HANDLER  ( a7800_TIA_r );
37WRITE8_HANDLER ( a7800_TIA_w );
38WRITE8_HANDLER ( a7800_RAM0_w );
39WRITE8_HANDLER ( a7800_cart_w );
36 READ8_HANDLER( a7800_TIA_r );
37WRITE8_HANDLER( a7800_TIA_w );
38WRITE8_HANDLER( a7800_RAM0_w );
39WRITE8_HANDLER( a7800_cart_w );
4040
4141DRIVER_INIT( a7800_ntsc );
4242DRIVER_INIT( a7800_pal );
src/mess/includes/nascom1.h
r9638r9639
3434WRITE8_HANDLER( nascom2_fdc_select_w );
3535READ8_HANDLER( nascom2_fdc_status_r );
3636
37READ8_HANDLER( nascom1_port_00_r);
38READ8_HANDLER( nascom1_port_01_r);
39READ8_HANDLER( nascom1_port_02_r);
40WRITE8_HANDLER( nascom1_port_00_w);
41WRITE8_HANDLER( nascom1_port_01_w);
37READ8_HANDLER( nascom1_port_00_r );
38READ8_HANDLER( nascom1_port_01_r );
39READ8_HANDLER( nascom1_port_02_r );
40WRITE8_HANDLER( nascom1_port_00_w );
41WRITE8_HANDLER( nascom1_port_01_w );
4242
4343READ8_DEVICE_HANDLER( nascom1_hd6402_si );
4444WRITE8_DEVICE_HANDLER( nascom1_hd6402_so );
src/mess/includes/ssystem3.h
r9638r9639
2828extern VIDEO_START( ssystem3 );
2929extern VIDEO_UPDATE( ssystem3 );
3030
31void ssystem3_lcd_reset(void) ;
31void ssystem3_lcd_reset(void);
3232void ssystem3_lcd_write(running_machine *machine, int clock, int data);
3333
3434#endif /* SSYSTEM3_H_ */
src/mess/includes/rmnimbus.h
r9638r9639
1010#include "machine/wd17xx.h"
1111#include "machine/scsibus.h"
1212
13#define DEBUG_TEXT  0x01
14#define DEBUG_DB    0x02
15#define DEBUG_PIXEL 0x04
16
17#define DEBUG_SET(flags)    ((debug_flags & (flags))==(flags))
18
1913#define MAINCPU_TAG "maincpu"
2014#define IOCPU_TAG   "iocpu"
2115
src/mess/includes/ti85.h
r9638r9639
3030
3131SNAPSHOT_LOAD( ti8x );
3232
33WRITE8_HANDLER( ti81_port_0007_w);
34 READ8_HANDLER( ti85_port_0000_r);
35 READ8_HANDLER( ti8x_keypad_r);
36 READ8_HANDLER( ti85_port_0002_r);
37 READ8_HANDLER( ti85_port_0003_r);
38 READ8_HANDLER( ti85_port_0004_r);
39 READ8_HANDLER( ti85_port_0005_r);
40 READ8_HANDLER( ti85_port_0006_r);
41 READ8_HANDLER( ti85_port_0007_r);
42 READ8_HANDLER( ti86_port_0005_r);
43 READ8_HANDLER( ti86_port_0006_r);
44 READ8_HANDLER( ti82_port_0000_r);
45 READ8_HANDLER( ti82_port_0002_r);
46 READ8_HANDLER( ti82_port_0010_r);
47 READ8_HANDLER( ti82_port_0011_r);
48 READ8_HANDLER( ti83_port_0000_r);
49 READ8_HANDLER( ti83_port_0002_r);
50 READ8_HANDLER( ti83_port_0003_r);
51 READ8_HANDLER( ti83p_port_0002_r);
52WRITE8_HANDLER( ti85_port_0000_w);
53WRITE8_HANDLER( ti8x_keypad_w);
54WRITE8_HANDLER( ti85_port_0002_w);
55WRITE8_HANDLER( ti85_port_0003_w);
56WRITE8_HANDLER( ti85_port_0004_w);
57WRITE8_HANDLER( ti85_port_0005_w);
58WRITE8_HANDLER( ti85_port_0006_w);
59WRITE8_HANDLER( ti85_port_0007_w);
60WRITE8_HANDLER( ti86_port_0005_w);
61WRITE8_HANDLER( ti86_port_0006_w);
62WRITE8_HANDLER( ti82_port_0000_w);
63WRITE8_HANDLER( ti82_port_0002_w);
64WRITE8_HANDLER( ti82_port_0010_w);
65WRITE8_HANDLER( ti82_port_0011_w);
66WRITE8_HANDLER( ti83_port_0000_w);
67WRITE8_HANDLER( ti83_port_0002_w);
68WRITE8_HANDLER( ti83_port_0003_w);
69WRITE8_HANDLER( ti83p_port_0002_w);
70WRITE8_HANDLER( ti83p_port_0003_w);
71WRITE8_HANDLER( ti83p_port_0004_w);
72WRITE8_HANDLER( ti83p_port_0006_w);
73WRITE8_HANDLER( ti83p_port_0007_w);
74WRITE8_HANDLER( ti83p_port_0010_w);
33WRITE8_HANDLER( ti81_port_0007_w );
34 READ8_HANDLER( ti85_port_0000_r );
35 READ8_HANDLER( ti8x_keypad_r );
36 READ8_HANDLER( ti85_port_0002_r );
37 READ8_HANDLER( ti85_port_0003_r );
38 READ8_HANDLER( ti85_port_0004_r );
39 READ8_HANDLER( ti85_port_0005_r );
40 READ8_HANDLER( ti85_port_0006_r );
41 READ8_HANDLER( ti85_port_0007_r );
42 READ8_HANDLER( ti86_port_0005_r );
43 READ8_HANDLER( ti86_port_0006_r );
44 READ8_HANDLER( ti82_port_0000_r );
45 READ8_HANDLER( ti82_port_0002_r );
46 READ8_HANDLER( ti82_port_0010_r );
47 READ8_HANDLER( ti82_port_0011_r );
48 READ8_HANDLER( ti83_port_0000_r );
49 READ8_HANDLER( ti83_port_0002_r );
50 READ8_HANDLER( ti83_port_0003_r );
51 READ8_HANDLER( ti83p_port_0002_r );
52WRITE8_HANDLER( ti85_port_0000_w );
53WRITE8_HANDLER( ti8x_keypad_w );
54WRITE8_HANDLER( ti85_port_0002_w );
55WRITE8_HANDLER( ti85_port_0003_w );
56WRITE8_HANDLER( ti85_port_0004_w );
57WRITE8_HANDLER( ti85_port_0005_w );
58WRITE8_HANDLER( ti85_port_0006_w );
59WRITE8_HANDLER( ti85_port_0007_w );
60WRITE8_HANDLER( ti86_port_0005_w );
61WRITE8_HANDLER( ti86_port_0006_w );
62WRITE8_HANDLER( ti82_port_0000_w );
63WRITE8_HANDLER( ti82_port_0002_w );
64WRITE8_HANDLER( ti82_port_0010_w );
65WRITE8_HANDLER( ti82_port_0011_w );
66WRITE8_HANDLER( ti83_port_0000_w );
67WRITE8_HANDLER( ti83_port_0002_w );
68WRITE8_HANDLER( ti83_port_0003_w );
69WRITE8_HANDLER( ti83p_port_0002_w );
70WRITE8_HANDLER( ti83p_port_0003_w );
71WRITE8_HANDLER( ti83p_port_0004_w );
72WRITE8_HANDLER( ti83p_port_0006_w );
73WRITE8_HANDLER( ti83p_port_0007_w );
74WRITE8_HANDLER( ti83p_port_0010_w );
7575
7676/*----------- defined in video/ti85.c -----------*/
7777
src/mess/includes/pce.h
r9638r9639
2828/* the largest possible cartridge image (street fighter 2 - 2.5MB) */
2929#define PCE_ROM_MAXSIZE      0x280000
3030
31struct pce_struct
32{
33   UINT8 io_port_options; /*driver-specific options for the PCE*/
34};
3531
36
3732/*----------- defined in machine/pce.c -----------*/
3833
3934extern unsigned char *pce_user_ram; /* scratch RAM at F8 */
r9638r9639
5247WRITE8_HANDLER( pce_cd_acard_wram_w );
5348READ8_HANDLER( pce_cd_acard_wram_r );
5449
55extern struct pce_struct pce;
5650DRIVER_INIT( pce );
5751DRIVER_INIT( tg16 );
5852DRIVER_INIT( sgx );
src/mess/messdriv.c
r9638r9639
313313   DRIVER( bbcb )     /* 1981 BBC Micro Model B    */
314314   DRIVER( bbcbp )    /* 198? BBC Micro Model B+ 64K   */
315315   DRIVER( bbcbp128 )  /* 198? BBC Micro Model B+ 128K  */
316   DRIVER( bbcm)      /* 198? BBC Master     */
316   DRIVER( bbcm )      /* 198? BBC Master     */
317317   DRIVER( bbcbc )    /* 1985 BBC Bridge Companion   */
318318   DRIVER( electron )  /* 1983 Acorn Electron    */
319319   DRIVER( a310 )     /* 1988 Acorn Archimedes 310  */
r9638r9639
628628
629629   DRIVER( xtvga )    /* 198? PC-XT (VGA, MF2 Keyboard)     */
630630   DRIVER( iskr1031 )
631   DRIVER( iskr1030m)
631   DRIVER( iskr1030m )
632632   DRIVER( ec1840 )
633633   DRIVER( ec1841 )
634634   DRIVER( ec1845 )
r9638r9639
660660   DRIVER( palmpers )  /* Palm Pilot Personal */
661661   DRIVER( palmpro )   /* Palm Pilot Professional */
662662   DRIVER( palmiii )   /* Palm III */
663   DRIVER( palmiiic)   /* Palm IIIc */
663   DRIVER( palmiiic )   /* Palm IIIc */
664664   DRIVER( palmv )    /* Palm V */
665665   DRIVER( palmvx )   /* Palm Vx */
666666   DRIVER( palmm100 )  /* Palm m100 */
r9638r9639
789789   DRIVER( ti99_4e )   /* 1980 TI-99/4 with 50Hz video  */
790790   DRIVER( ti99_4a )   /* 1981 TI-99/4A    */
791791   DRIVER( ti99_4ae )  /* 1981 TI-99/4A with 50Hz video    */
792   DRIVER( ti99_4ev)   /* 1994 TI-99/4A with EVPC video card      */
792   DRIVER( ti99_4ev )   /* 1994 TI-99/4A with EVPC video card      */
793793   DRIVER( ti99_8 )   /* 1983 TI-99/8  */
794794   DRIVER( ti99_8e )   /* 1983 TI-99/8 with 50Hz video  */
795795
796796   /* TI 99 clones */
797   DRIVER( tutor)     /* 1983? Tomy Tutor    */
797   DRIVER( tutor )     /* 1983? Tomy Tutor    */
798798   DRIVER( pyuuta )   /* 1982 Tomy Pyuuta     */
799799   DRIVER( geneve )   /* 1987? Myarc Geneve 9640    */
800800   DRIVER( genmod )   /* 199?? Myarc Geneve 9640    */
r9638r9639
10811081   DRIVER( nms8220a )  /* 1986 MSX2    */
10821082   DRIVER( vg8230 )   /* 1986 MSX2    */
10831083   DRIVER( vg8235 )   /* 1986 MSX2    */
1084   DRIVER( vg8235f)   /* 1986 MSX2    */
1085   DRIVER( vg8240) /* 1986 MSX2    */
1084   DRIVER( vg8235f )   /* 1986 MSX2    */
1085   DRIVER( vg8240 ) /* 1986 MSX2    */
10861086   DRIVER( nms8245 )   /* 1986 MSX2    */
1087   DRIVER( nms8245f)   /* 1986 MSX2    */
1087   DRIVER( nms8245f )   /* 1986 MSX2    */
10881088   DRIVER( nms8250 )   /* 1986 MSX2    */
10891089   DRIVER( nms8255 )   /* 1986 MSX2    */
10901090   DRIVER( nms8280 )   /* 1986 MSX2    */
1091   DRIVER( nms8280g)   /* 1986 MSX2    */
1092   DRIVER( tpc310)   /* 1986 MSX2    */
1093   DRIVER( hx23)      /* 1986 MSX2 */
1094   DRIVER( hx23f)   /* 1986 MSX2      */
1095   DRIVER( cx7m)      /* 1986 MSX2 */
1096   DRIVER( cx7m128)   /* 1986 MSX2    */
1091   DRIVER( nms8280g )   /* 1986 MSX2    */
1092   DRIVER( tpc310 )   /* 1986 MSX2    */
1093   DRIVER( hx23 )      /* 1986 MSX2 */
1094   DRIVER( hx23f )   /* 1986 MSX2      */
1095   DRIVER( cx7m )      /* 1986 MSX2 */
1096   DRIVER( cx7m128 )   /* 1986 MSX2    */
10971097   DRIVER( fs5500 )   /* 1985 MSX2 Japan    */
10981098   DRIVER( fs4500 )   /* 1986 MSX2 Japan    */
10991099   DRIVER( fs4700 )   /* 1986 MSX2 Japan    */
r9638r9639
11421142
11431143   /* DEC */
11441144   DRIVER( pdp1 )     /* 1961 DEC PDP1  */
1145   DRIVER(vt100) /* 1978 Digital Equipment Corporation */
1146   //DRIVER(vt100wp) /* 1978 Digital Equipment Corporation */
1147   //DRIVER(vt100stp) /* 1978 Digital Equipment Corporation */
1148   //DRIVER(vt101) /* 1981 Digital Equipment Corporation */
1149   //DRIVER(vt102) /* 1981 Digital Equipment Corporation */
1150   //DRIVER(vt103) /* 1979 Digital Equipment Corporation */
1151   DRIVER(vt105) /* 1978 Digital Equipment Corporation */
1152   //DRIVER(vt110) /* 1978 Digital Equipment Corporation */
1153   //DRIVER(vt125) /* 1981 Digital Equipment Corporation */
1154   DRIVER(vt131) /* 1981 Digital Equipment Corporation */
1155   //DRIVER(vt132) /* 1978 Digital Equipment Corporation */
1156   //DRIVER(vt180) /* 1981 Digital Equipment Corporation */
1157   DRIVER(vt220) /* 1983 Digital Equipment Corporation */
1158   DRIVER(vt320) /* 1987 Digital Equipment Corporation */
1159   DRIVER(vt520) /* 1994 Digital Equipment Corporation */
1160   DRIVER(vk100) /* 1980 Digital Equipment Corporation */
1161   DRIVER(dectalk) /* 1982 Digital Equipment Corporation */
1162   DRIVER(mc7105) /* Elektronika MC7105 */
1145   DRIVER( vt100 ) /* 1978 Digital Equipment Corporation */
1146   //DRIVER( vt100wp ) /* 1978 Digital Equipment Corporation */
1147   //DRIVER( vt100stp ) /* 1978 Digital Equipment Corporation */
1148   //DRIVER( vt101 ) /* 1981 Digital Equipment Corporation */
1149   //DRIVER( vt102 ) /* 1981 Digital Equipment Corporation */
1150   //DRIVER( vt103 ) /* 1979 Digital Equipment Corporation */
1151   DRIVER( vt105 ) /* 1978 Digital Equipment Corporation */
1152   //DRIVER( vt110 ) /* 1978 Digital Equipment Corporation */
1153   //DRIVER( vt125 ) /* 1981 Digital Equipment Corporation */
1154   DRIVER( vt131 ) /* 1981 Digital Equipment Corporation */
1155   //DRIVER( vt132 ) /* 1978 Digital Equipment Corporation */
1156   //DRIVER( vt180 ) /* 1981 Digital Equipment Corporation */
1157   DRIVER( vt220 ) /* 1983 Digital Equipment Corporation */
1158   DRIVER( vt320 ) /* 1987 Digital Equipment Corporation */
1159   DRIVER( vt520 ) /* 1994 Digital Equipment Corporation */
1160   DRIVER( vk100 ) /* 1980 Digital Equipment Corporation */
1161   DRIVER( dectalk ) /* 1982 Digital Equipment Corporation */
1162   DRIVER( mc7105 ) /* Elektronika MC7105 */
11631163
11641164   /* Memotech */
11651165   DRIVER( mtx512 )   /* 1983 Memotech MTX 512    */
r9638r9639
12381238   DRIVER( apexc )    /* 1955(?) APEXC: All-Purpose Electronic X-ray Computer */
12391239
12401240   /* Corvus */
1241   DRIVER(concept)    /* 1982 Corvus Concept   */
1241   DRIVER( concept )    /* 1982 Corvus Concept   */
12421242
12431243   /* DAI */
1244   DRIVER(dai)    /* DAI   */
1244   DRIVER( dai )    /* DAI   */
12451245
12461246   /* Telenova */
1247   DRIVER(compis)     /* 1985 Telenova Compis    */
1248   DRIVER(compis2)    /* 1985 Telenova Compis     */
1247   DRIVER( compis )     /* 1985 Telenova Compis    */
1248   DRIVER( compis2 )    /* 1985 Telenova Compis     */
12491249
12501250   /* Multitech */
1251   DRIVER(mpf1)   /* 1979 Multitech Micro Professor 1  */
1252   DRIVER(mpf1b)      /* 1979 Multitech Micro Professor 1B */
1251   DRIVER( mpf1 )   /* 1979 Multitech Micro Professor 1  */
1252   DRIVER( mpf1b )      /* 1979 Multitech Micro Professor 1B */
12531253
12541254   /* Telercas Oy */
1255//  DRIVER(tmc1800)
1256   DRIVER(tmc2000)
1257   DRIVER(tmc2000e)
1258//  DRIVER(tmc600s1)
1259   DRIVER(tmc600s2)
1255//  DRIVER( tmc1800 )
1256   DRIVER( tmc2000 )
1257   DRIVER( tmc2000e )
1258//  DRIVER( tmc600s1 )
1259   DRIVER( tmc600s2 )
12601260
12611261   /* OSCOM Oy */
1262//  DRIVER(osc1000b)
1263   DRIVER(nano)
1262//  DRIVER( osc1000b )
1263   DRIVER( nano )
12641264
12651265   /* MIT */
12661266   DRIVER( tx0_64kw )  /* April 1956 MIT TX-0 (64kw RAM)      */
r9638r9639
14301430   DRIVER( jet )    /* 1990 JET     */
14311431
14321432  /* Didaktik Skalica */
1433   DRIVER( dgama87)  /* 1987 Didaktik Gama 87    */
1434   DRIVER( dgama88)  /* 1988 Didaktik Gama 88    */
1435   DRIVER( dgama89)  /* 1989 Didaktik Gama 89    */
1436   DRIVER( didakt90) /* 1990 Didaktik Skalica 90      */
1437   DRIVER( didakm91) /* 1991 Didaktik M 91  */
1438   DRIVER( didaktk)  /* 1992 Didaktik Kompakt    */
1439   DRIVER( didakm93) /* 1993 Didaktik M 93  */
1433   DRIVER( dgama87 )  /* 1987 Didaktik Gama 87    */
1434   DRIVER( dgama88 )  /* 1988 Didaktik Gama 88    */
1435   DRIVER( dgama89 )  /* 1989 Didaktik Gama 89    */
1436   DRIVER( didakt90 ) /* 1990 Didaktik Skalica 90      */
1437   DRIVER( didakm91 ) /* 1991 Didaktik M 91  */
1438   DRIVER( didaktk )  /* 1992 Didaktik Kompakt    */
1439   DRIVER( didakm93 ) /* 1993 Didaktik M 93  */
14401440
14411441   DRIVER( mistrum ) /* 1988 Mistrum      */
14421442
r9638r9639
14511451   DRIVER( zvezda )  /* 1990 Zvezda */
14521452
14531453   /* Kramer */
1454   DRIVER(kramermc)   /* 1987 Kramer MC   */
1454   DRIVER( kramermc )   /* 1987 Kramer MC   */
14551455
14561456   /* AC1 */
1457   DRIVER(ac1)    /* 1984 Amateurcomputer AC1     */
1458   DRIVER(ac1_32)  /* 1984 Amateurcomputer AC1 (32 lines)  */
1459   DRIVER(ac1scch) /* 1984 Amateurcomputer AC1 SCCH    */
1457   DRIVER( ac1 )    /* 1984 Amateurcomputer AC1     */
1458   DRIVER( ac1_32 )  /* 1984 Amateurcomputer AC1 (32 lines)  */
1459   DRIVER( ac1scch ) /* 1984 Amateurcomputer AC1 SCCH    */
14601460
14611461   DRIVER( pcm )   /* PC/M Mugler    */
14621462
14631463   /* Ei Nis */
1464   DRIVER(pecom64)
1464   DRIVER( pecom64 )
14651465
14661466   /* Samsung SPC-1000 */
1467   DRIVER(spc1000)
1467   DRIVER( spc1000 )
14681468
14691469   /* PolyMorphic Systems */
14701470   DRIVER( poly88 )
r9638r9639
16431643   DRIVER( beehive )
16441644   DRIVER( uts20 )
16451645   DRIVER( uknc )
1646   DRIVER( zx97)
1647   DRIVER( x07)
1648   DRIVER( vesta)
1649   DRIVER( hobby)
1650   DRIVER( pk8002)
1651   DRIVER( unior)
1652   DRIVER( vec1200)
1653   DRIVER( pk6128c)
1646   DRIVER( zx97 )
1647   DRIVER( x07 )
1648   DRIVER( vesta )
1649   DRIVER( hobby )
1650   DRIVER( pk8002 )
1651   DRIVER( unior )
1652   DRIVER( vec1200 )
1653   DRIVER( pk6128c )
16541654   DRIVER( tvc64 )
16551655   DRIVER( tvc64p )
16561656   DRIVER( tvc64pru )
src/mess/drivers/cbmb.c
r9638r9639
161161   AM_RANGE(0xf4000, 0xf5fff) AM_ROM
162162   AM_RANGE(0xf6000, 0xf7fff) AM_ROM
163163   AM_RANGE(0xf8000, 0xfbfff) AM_ROM AM_BASE(&cbmb_basic)
164   AM_RANGE(0xfd000, 0xfd3ff) AM_RAM AM_BASE(&cbmb_videoram)      /* videoram */
164   AM_RANGE(0xfd000, 0xfd3ff) AM_RAM AM_BASE_MEMBER(cbmb_state, videoram)      /* videoram */
165165   AM_RANGE(0xfd400, 0xfd7ff) AM_RAM_WRITE(cbmb_colorram_w) AM_BASE(&cbmb_colorram)      /* colorram */
166166   AM_RANGE(0xfd800, 0xfd8ff) AM_DEVREADWRITE("vic6567", vic2_port_r, vic2_port_w)
167167   /* disk units */
src/mess/drivers/pcw.c
r9638r9639
700700   return pcw_printer_status;
701701}
702702
703#ifdef UNUSED_FUNCTION
703704/* MCU handlers */
704/*static READ8_HANDLER(mcu_printer_data_r)
705static READ8_HANDLER(mcu_printer_data_r)
705706{
706    return pcw_printer_data;
707   return pcw_printer_data;
707708}
708709
709710static WRITE8_HANDLER(mcu_printer_data_w)
710711{
711    pcw_printer_data = data;
712}*/
712   pcw_printer_data = data;
713}
714#endif
713715
714716static READ8_HANDLER(mcu_printer_command_r)
715717{
src/mess/drivers/newbrain.c
r9638r9639
744744};
745745
746746static UINT8 copdata;
747static int copstate, copbytes, copregint = 1;
747static int copstate, copbytes, copregint;
748748
749749static READ8_HANDLER( cop_r )
750750{
r9638r9639
13831383{
13841384   newbrain_state *state = machine->driver_data<newbrain_state>();
13851385
1386   copregint = 1;
1387
13861388   /* find devices */
13871389   state->cassette1 = machine->device(CASSETTE1_TAG);
13881390   state->cassette2 = machine->device(CASSETTE2_TAG);
src/mess/drivers/pockstat.c
r9638r9639
919919   return 0;
920920}
921921
922static DEVICE_IMAGE_LOAD( pockstat_flash)
922static DEVICE_IMAGE_LOAD( pockstat_flash )
923923{
924924   int i, length;
925925   UINT8 *cart = memory_region(image.device().machine, "flash");
src/mess/drivers/svi318.c
r9638r9639
471471
472472static MACHINE_CONFIG_DERIVED( svi328n_806, svi328_806 )
473473
474   MDRV_MACHINE_START( svi318_ntsc)
474   MDRV_MACHINE_START( svi318_ntsc )
475475
476476   MDRV_SCREEN_MODIFY("screen")
477477   MDRV_SCREEN_REFRESH_RATE(60)
src/mess/drivers/fm7.c
r9638r9639
540540 *  CPU clock speed in bit 0 (0 = 1.2MHz, 1 = 2MHz)
541541 *  Clears keyboard IRQ flag
542542 */
543static READ8_HANDLER( fm7_keyboard_r)
543static READ8_HANDLER( fm7_keyboard_r )
544544{
545545   UINT8 ret;
546546   switch(offset)
r9638r9639
557557   }
558558}
559559
560READ8_HANDLER( fm7_sub_keyboard_r)
560READ8_HANDLER( fm7_sub_keyboard_r )
561561{
562562   UINT8 ret;
563563   switch(offset)
src/mess/drivers/nc.c
r9638r9639
496496}
497497
498498
499static void   nc_common_close_stream(void)
499static void nc_common_close_stream(void)
500500{
501501   if (file)
502502      mame_fclose(file);
r9638r9639
504504
505505
506506
507static int   previous_inputport_10_state;
507static int previous_inputport_10_state;
508508
509509static TIMER_CALLBACK(dummy_timer_callback)
510510{
r9638r9639
811811
812812
813813/* same for nc100 and nc200 */
814static void   nc_printer_update(running_machine *machine, UINT8 data)
814static void nc_printer_update(running_machine *machine, UINT8 data)
815815{
816816   running_device *printer = machine->device("centronics");
817817   centronics_strobe_w(printer, BIT(data, 6));
r9638r9639
850850}
851851
852852
853static void   nc100_tc8521_alarm_callback(running_device *device, int state)
853static void nc100_tc8521_alarm_callback(running_device *device, int state)
854854{
855855   /* I'm assuming that the nmi is edge triggered */
856856   /* a interrupt from the fdc will cause a change in line state, and
src/mess/drivers/x68k.c
r9638r9639
139139#include "x68000.lh"
140140
141141
142class x68000_state : public driver_device
143{
144public:
145   x68000_state(running_machine &machine, const driver_device_config_base &config)
146      : driver_device(machine, config),
147        m_nvram(*this, "nvram") { }
148
149   required_shared_ptr<UINT16>   m_nvram;
150};
151
152
153142struct x68k_system x68k_sys;
154143
155144static UINT16* sram;   // SRAM
r9638r9639
15191508
15201509static WRITE16_HANDLER( x68k_sram_w )
15211510{
1522   x68000_state *state = space->machine->driver_data<x68000_state>();
1511   x68k_state *state = space->machine->driver_data<x68k_state>();
15231512
15241513   if(x68k_sys.sysport.sram_writeprotect == 0x31)
15251514   {
r9638r9639
15291518
15301519static READ16_HANDLER( x68k_sram_r )
15311520{
1532   x68000_state *state = space->machine->driver_data<x68000_state>();
1521   x68k_state *state = space->machine->driver_data<x68k_state>();
15331522   // HACKS!
15341523//  if(offset == 0x5a/2)  // 0x5a should be 0 if no SASI HDs are present.
15351524//      return 0x0000;
r9638r9639
15481537
15491538static READ32_HANDLER( x68k_sram32_r )
15501539{
1551   x68000_state *state = space->machine->driver_data<x68000_state>();
1540   x68k_state *state = space->machine->driver_data<x68k_state>();
15521541   if(offset == 0x08/4)
15531542      return (messram_get_size(space->machine->device("messram")) & 0xffff0000);  // RAM size
15541543#if 0
r9638r9639
15641553
15651554static WRITE32_HANDLER( x68k_sram32_w )
15661555{
1567   x68000_state *state = space->machine->driver_data<x68000_state>();
1556   x68k_state *state = space->machine->driver_data<x68k_state>();
15681557   if(x68k_sys.sysport.sram_writeprotect == 0x31)
15691558   {
15701559      COMBINE_DATA(state->m_nvram + offset);
r9638r9639
25002489static MACHINE_START( x68000 )
25012490{
25022491   address_space *space = cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM);
2503   x68000_state *state = machine->driver_data<x68000_state>();
2492   x68k_state *state = machine->driver_data<x68k_state>();
25042493   /*  Install RAM handlers  */
25052494   x68k_spriteram = (UINT16*)memory_region(machine, "user1");
25062495   memory_install_read16_handler(space,0x000000,0xbffffb,0xffffffff,0,(read16_space_func)x68k_emptyram_r);
r9638r9639
25312520static MACHINE_START( x68030 )
25322521{
25332522   address_space *space = cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM);
2534   x68000_state *state = machine->driver_data<x68000_state>();
2523   x68k_state *state = machine->driver_data<x68k_state>();
25352524   /*  Install RAM handlers  */
25362525   x68k_spriteram = (UINT16*)memory_region(machine, "user1");
25372526   memory_install_read32_handler(space,0x000000,0xbffffb,0xffffffff,0,(read32_space_func)x68k_rom0_r);
r9638r9639
26162605   x68k_sys.sysport.cputype = 0xdc; // 68030, 25MHz
26172606}
26182607
2619static MACHINE_CONFIG_START( x68000, x68000_state )
2608static MACHINE_CONFIG_START( x68000, x68k_state )
26202609   /* basic machine hardware */
26212610   MDRV_CPU_ADD("maincpu", M68000, 10000000)  /* 10 MHz */
26222611   MDRV_CPU_PROGRAM_MAP(x68k_map)
src/mess/drivers/kaypro.c
r9638r9639
4444#include "includes/kaypro.h"
4545
4646
47static READ8_HANDLER( kaypro2x_87) { return 0x7f; }   /* to bypass unemulated HD controller */
47static READ8_HANDLER( kaypro2x_87 ) { return 0x7f; }   /* to bypass unemulated HD controller */
4848
4949/***********************************************************
5050
src/mess/drivers/supracan.c
r9638r9639
326326        case 0:
327327         // hack: case for startup logo
328328         // this isn't understood properly, it's rendering a single 64x64 tile, which for convenience we've rearranged and decoded as 8x8 for the tilemaps
329           {
329         {
330330            int tile = 0x880 + ((count & 7)*2);
331331         //   tile += (count & 0x070) >> 2;
332332

Previous 15994 Revisions Next


© 1998-2018 The MESS Team