Previous 15994 Revisions Next

r14748 Sunday 11th March, 2012 at 18:08:49 UTC by Miodrag Milanović
Cleanup (nw)
[hash]c64_cart.xml trs80m2.xml
[src/mess/devices]appldriv.h
[src/mess/drivers]apexc.c atarist.c avigo.c cp1.c pdp1.c tm990189.c trs80m2.c tx0.c
[src/mess/includes]apollo.h hp48.h ti85.h trs80m2.h z88.h
[src/mess/machine]990_tap.c hp48.c i82371sb.c isa_ide_cd.c isa_ide_cd.h omti8621.c sc499.c smartmed.c smartmed.h trs80m2kb.c trs80m2kb.h x68k_hdc.c x68k_hdc.h
[src/mess/video]odyssey2.c

hash/trs80m2.xml
r14747r14748
2323         </dataarea>
2424      </part>
2525   </software>
26   
26
2727   <software name="tdos12">
2828      <description>TRSDOS v1.2</description>
2929      <year>1979</year>
hash/c64_cart.xml
r14747r14748
13631363      <publisher></publisher>
13641364      <info name="serial" value="RGCD #10" />
13651365      <sharedfeat name="compatibility" value="PAL"/>
1366     
1366
13671367      <part name="cart" interface="c64_cart">
13681368         <feature name="game" value="0" />
13691369         <feature name="exrom" value="0" />
1370   
1370
13711371         <dataarea name="roml" size="0x4000">
13721372            <rom name="fortress of narzod.bin" size="0x4000" crc="3c00d620" sha1="7c859627ad4156da5eff4f5da0ec844655ba5747" offset="0" />
13731373         </dataarea>
r14747r14748
14141414      <publisher>RGCD</publisher>
14151415      <info name="serial" value="RGCD #13" />
14161416      <sharedfeat name="compatibility" value="NTSC,PAL"/>
1417     
1417
14181418      <part name="cart" interface="c64_cart">
14191419         <feature name="game" value="0" />
14201420         <feature name="exrom" value="0" />
1421   
1421
14221422         <dataarea name="roml" size="0x4000">
14231423            <rom name="jars' revenge.bin" size="0x4000" crc="9f94df24" sha1="11455419d5bf18d0c2416a041cc7d1734424e0cf" offset="0" />
14241424         </dataarea>
r14747r14748
14301430      <year>2012</year>
14311431      <publisher>RGCD</publisher>
14321432      <sharedfeat name="compatibility" value="NTSC,PAL"/>
1433     
1433
14341434      <part name="cart" interface="c64_cart">
14351435         <feature name="game" value="0" />
14361436         <feature name="exrom" value="0" />
1437   
1437
14381438         <dataarea name="roml" size="0x4000">
14391439            <rom name="panic analogue.bin" size="0x4000" crc="e0a96952" sha1="b611bf196e799d918c1879e02a5b4c1e293bfdb0" offset="0" />
14401440         </dataarea>
src/mess/devices/appldriv.h
r14747r14748
2828
2929   virtual bool call_load();
3030   virtual void call_unload();
31   void set_params(int dividend, int divisor) { m_dividend = dividend; m_divisor = divisor;}
32   
31   void set_params(int dividend, int divisor) { m_dividend = dividend; m_divisor = divisor;}
32
3333   int get_dividend() { return m_dividend; }
3434   int get_divisor() { return m_divisor; }
3535protected:
36   virtual void device_start();   
36   virtual void device_start();
3737private:
3838   int   m_dividend;
3939   int   m_divisor;
src/mess/machine/smartmed.c
r14747r14748
542542         else
543543         {
544544            if (!m_devcb_write_line_rnb.isnull())
545            {           
545            {
546546               m_devcb_write_line_rnb( 0);
547547               m_devcb_write_line_rnb( 1);
548548            }
r14747r14748
800800}
801801
802802void smartmedia_image_device::device_config_complete()
803{   
803{
804804   nand_device::device_config_complete();
805805   update_names();
806806}
src/mess/machine/smartmed.h
r14747r14748
1717   const char *               interface;
1818};
1919
20   
20
2121enum sm_mode_t
2222{
2323   SM_M_INIT,      // initial state
r14747r14748
8989
9090   void read(int offset, void *data, int size);
9191
92   void set_data_ptr(void *ptr);   
92   void set_data_ptr(void *ptr);
9393protected:
9494   // device-level overrides
9595   virtual void device_start();
r14747r14748
136136
137137   #ifdef SMARTMEDIA_IMAGE_SAVE
138138   int m_image_format;
139   #endif   
139   #endif
140140};
141141
142142// device type definition
r14747r14748
160160   virtual const char *image_interface() const { return m_image_interface; }
161161   virtual const char *file_extensions() const { return "smc"; }
162162   virtual const option_guide *create_option_guide() const { return NULL; }
163   
163
164164   virtual bool call_load();
165165   virtual void call_unload();
166166   virtual bool call_softlist_load(char *swlist, char *swname, rom_entry *start_entry) { return load_software(swlist, swname, start_entry); }
167   
167
168168   void set_image_interface(const char *image_interface) { m_image_interface = image_interface; }
169169protected:
170170   // device-level overrides
r14747r14748
172172
173173   bool smartmedia_format_1();
174174   bool smartmedia_format_2();
175   int detect_geometry( UINT8 id1, UINT8 id2);   
176   
175   int detect_geometry( UINT8 id1, UINT8 id2);
176
177177   const char *m_image_interface;
178178};
179179
src/mess/machine/trs80m2kb.c
r14747r14748
9494 
9595INPUT_PORTS_START( trs80m2_keyboard )
9696/*
97   PORT_START("X0")
97    PORT_START("X0")
9898    PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED )
9999    PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_SLASH) PORT_CHAR('/') PORT_CHAR('?')
100100    PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("SPACE") PORT_CODE(KEYCODE_SPACE) PORT_CHAR(' ')
r14747r14748
352352 
353353   m_data = BIT(data, 0);
354354   int clk = BIT(data, 1);
355   
355
356356   if (m_clk != clk)
357357   {
358358      m_out_clock_func(clk);
359359      m_clk = clk;
360360   }
361   
361
362362   output_set_led_value(LED_0, BIT(data, 2));
363363   output_set_led_value(LED_1, BIT(data, 4));
364364}
src/mess/machine/trs80m2kb.h
r14747r14748
7070 
7171   DECLARE_WRITE_LINE_MEMBER( busy_w );
7272   DECLARE_READ_LINE_MEMBER( data_r );
73   
73
7474   // not really public
7575   DECLARE_READ8_MEMBER( kb_t1_r );
7676   DECLARE_READ8_MEMBER( kb_p0_r );
r14747r14748
9191   int m_busy;
9292   int m_data;
9393   int m_clk;
94   
94
9595   UINT8 m_y;
9696};
9797 
src/mess/machine/x68k_hdc.c
r14747r14748
2828}
2929
3030void x68k_hdc_image_device::device_config_complete()
31{   
31{
3232   update_names(X68KHDC, "sasihd", "sasi");
3333}
3434
3535void x68k_hdc_image_device::device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr)
36{   
36{
3737   m_req = 1;
3838   m_status_port |= 0x01;
3939}
r14747r14748
317317}
318318
319319READ16_MEMBER( x68k_hdc_image_device::hdc_r )
320{   
320{
321321   int retval = 0xff;
322322
323323   switch(offset)
src/mess/machine/x68k_hdc.h
r14747r14748
9393   virtual const char *image_interface() const { return NULL; }
9494   virtual const char *file_extensions() const { return "hdf"; }
9595   virtual const option_guide *create_option_guide() const { return NULL; }
96   virtual bool call_create(int format_type, option_resolution *format_options);   
96   virtual bool call_create(int format_type, option_resolution *format_options);
9797
9898   DECLARE_WRITE16_MEMBER( hdc_w );
9999   DECLARE_READ16_MEMBER( hdc_r );
r14747r14748
102102    virtual void device_config_complete();
103103   virtual void device_start();
104104   virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
105private:   
105private:
106106   int m_phase;
107107   unsigned char m_status_port;  // read at 0xe96003
108108   unsigned char m_status;       // status phase output
src/mess/machine/990_tap.c
r14747r14748
962962   virtual const char *image_interface() const { return NULL; }
963963   virtual const char *file_extensions() const { return "tap"; }
964964   virtual const option_guide *create_option_guide() const { return NULL; }
965   
965
966966   virtual bool call_load();
967967   virtual void call_unload();
968968protected:
r14747r14748
980980}
981981
982982void ti990_tape_image_device::device_config_complete()
983{   
983{
984984   update_names();
985985}
986986
src/mess/machine/sc499.c
r14747r14748
911911            m_status |= SC499_STAT_IRQ;
912912         }
913913         break;
914      }                                                   
914      }
915915   }
916916}
917917
r14747r14748
11741174}
11751175
11761176void sc499_ctape_image_device::device_config_complete()
1177{   
1177{
11781178   update_names(SC499_CTAPE, "ctape", "ct");
11791179};
11801180
src/mess/machine/hp48.c
r14747r14748
155155   //if ( xmodem && xmodem->exists() ) xmodem_receive_byte( &xmodem->device(), param );
156156   //else if ( kermit && kermit->exists() ) kermit_receive_byte( &kermit->device(), param );
157157//#ifdef CHARDEV
158//   else chardev_out( state->m_chardev, param );
158//  else chardev_out( state->m_chardev, param );
159159//#endif
160160}
161161
r14747r14748
10821082}
10831083
10841084void hp48_port_image_device::device_config_complete()
1085{   
1085{
10861086   update_names(HP48_PORT, "port", "p");
10871087}
10881088
src/mess/machine/isa_ide_cd.c
r14747r14748
2929   switch(mem_mask)
3030   {
3131   case 0x000000ff:
32      break;   
32      break;
3333   case 0x0000ff00:
3434      reg+=1;
3535      shift=8;
3636      break;
37   }         
37   }
3838   UINT32 data = atapi_regs[ATAPI_REG_CMDSTATUS];
3939   data <<= shift;
4040   return  data;
r14747r14748
9595         data |= ( m_atapi_data[m_atapi_data_ptr++] << 8 );
9696         if( m_atapi_data_ptr >= m_atapi_data_len )
9797         {
98             
98
9999            m_atapi_data_ptr = 0;
100100            m_atapi_data_len = 0;
101101 
r14747r14748
121121      switch(mem_mask)
122122      {
123123      case 0x000000ff:
124         break;   
124         break;
125125      case 0x0000ff00:
126126         reg+=1;
127127         shift=8;
128128         break;
129      }         
129      }
130130      if (m_cur_drive==1) return 0x00;
131131      data = atapi_regs[reg];
132      //logerror("ATAPI: reg %d = %x (offset %x mask %x) [%08x][read]\n", reg, data, offset, mem_mask,cpu_get_pc(machine().device("maincpu")));       
133         data <<= shift;
132      //logerror("ATAPI: reg %d = %x (offset %x mask %x) [%08x][read]\n", reg, data, offset, mem_mask,cpu_get_pc(machine().device("maincpu")));
133       data <<= shift;
134134   }
135135   return data;
136136}
r14747r14748
147147 
148148      if (m_atapi_cdata_wait)
149149      {
150             //logerror("ATAPI: waiting, ptr %d wait %d\n", m_atapi_data_ptr, m_atapi_cdata_wait);
150           //logerror("ATAPI: waiting, ptr %d wait %d\n", m_atapi_data_ptr, m_atapi_cdata_wait);
151151         if (m_atapi_data_ptr == m_atapi_cdata_wait)
152152         {
153153            // send it to the device
r14747r14748
177177            case 0x43 :
178178            case 0xa8 :
179179            case 0xad :
180            case 0xbe :   
180            case 0xbe :
181181                     checkready = true;
182182                     break;
183183         }
184   
185         if (checkready && cdrom_get_toc(cdrom->get_cdrom_file())==NULL) 
184 
185         if (checkready && cdrom_get_toc(cdrom->get_cdrom_file())==NULL)
186186         {
187187            logerror("ATAPI: SCSI command %02x returned not ready\n", atapi_data[0]&0xff);
188188            atapi_regs[ATAPI_REG_CMDSTATUS] = ATAPI_STAT_DRDY | ATAPI_STAT_CHECK;
189189            atapi_regs[ATAPI_REG_ERRFEAT] = (2 << 4) | ATAPI_ERRFEAT_ABRT;
190190            // assert IRQ
191            atapi_irq(this, ASSERT_LINE);           
191            atapi_irq(this, ASSERT_LINE);
192192         } else {
193193            // send it to the SCSI device
194194            SCSISetCommand( m_inserted_cdrom, m_atapi_data, 12 );
r14747r14748
206206                  m_atapi_xfermod = m_atapi_xferlen - MAX_TRANSFER_SIZE;
207207                  m_atapi_xferlen = MAX_TRANSFER_SIZE;
208208               }
209   
209
210210               atapi_regs[ATAPI_REG_COUNTLOW] = m_atapi_xferlen & 0xff;
211211               atapi_regs[ATAPI_REG_COUNTHIGH] = (m_atapi_xferlen>>8)&0xff;
212212 
r14747r14748
265265      switch(mem_mask)
266266      {
267267      case 0x000000ff:
268         break;   
268         break;
269269      case 0x0000ff00:
270270         reg+=1;
271271         data >>= 8;
272272         break;
273      }         
273      }
274274      if (reg==6) m_cur_drive = (data & 0x10) >> 4;
275275      if (m_cur_drive==1) return;
276276      atapi_regs[reg] = data;
277         //logerror("ATAPI: reg %d = %x (offset %x mask %x)\n", reg, data, offset, mem_mask);
277       //logerror("ATAPI: reg %d = %x (offset %x mask %x)\n", reg, data, offset, mem_mask);
278278 
279279      if (reg == ATAPI_REG_CMDSTATUS)
280280      {
281             logerror("ATAPI command %x issued!\n", data);
281           logerror("ATAPI command %x issued!\n", data);
282282         switch (data)
283283         {
284284            case 0xa0:   // PACKET
r14747r14748
314314               atapi_data[ 46 ^ 1 ] = '1';
315315               atapi_data[ 47 ^ 1 ] = '.';
316316               atapi_data[ 48 ^ 1 ] = '0';
317               
317
318318               memset( &atapi_data[ 54 ], ' ', 40 );
319319               atapi_data[ 54 ^ 1 ] = 'M';
320320               atapi_data[ 55 ^ 1 ] = 'A';
r14747r14748
331331               atapi_data[ 66 ^ 1 ] = 's';
332332               atapi_data[ 67 ^ 1 ] = 'e';
333333               atapi_data[ 68 ^ 1 ] = 'd';
334               atapi_data[ 69 ^ 1 ] = ' ';               
334               atapi_data[ 69 ^ 1 ] = ' ';
335335               atapi_data[ 70 ^ 1 ] = 'C';
336336               atapi_data[ 71 ^ 1 ] = 'D';
337337               atapi_data[ 72 ^ 1 ] = '-';
r14747r14748
350350            case 0xec:   //IDENTIFY DEVICE - Must abort here and set for packet data
351351               atapi_regs[ATAPI_REG_ERRFEAT] = ATAPI_ERRFEAT_ABRT;
352352               atapi_regs[ATAPI_REG_CMDSTATUS] = ATAPI_STAT_CHECK;
353               
353
354354               atapi_irq(this, ASSERT_LINE);
355355               break;
356356            case 0xef:   // SET FEATURES
r14747r14748
370370               atapi_regs[ATAPI_REG_COUNTLOW]  = 0x14; // CYLINDER_LSB
371371               atapi_regs[ATAPI_REG_COUNTHIGH] = 0xeb; // CYLINDER_MSB
372372               atapi_regs[ATAPI_REG_DRIVESEL]  &= 0xf0; // HEAD_NUMBER
373               
373
374374               atapi_irq(this, ASSERT_LINE);
375375               break;
376376            default:
377377               logerror("ATAPI: Unknown IDE command %x\n", data);
378378               atapi_regs[ATAPI_REG_ERRFEAT] = ATAPI_ERRFEAT_ABRT;
379379               atapi_regs[ATAPI_REG_CMDSTATUS] = ATAPI_STAT_CHECK;
380           
380
381381               atapi_irq(this, ASSERT_LINE);
382382               break;
383383         }
r14747r14748
391391   NULL
392392};
393393 
394static MACHINE_CONFIG_FRAGMENT( ide )   
394static MACHINE_CONFIG_FRAGMENT( ide )
395395   MCFG_CDROM_ADD( "cdrom", ide_cdrom )
396396MACHINE_CONFIG_END
397397 
r14747r14748
471471   if (m_inserted_cdrom) SCSIDeleteInstance(m_inserted_cdrom);
472472   SCSIAllocInstance( machine(), &SCSIClassCr589, &m_inserted_cdrom, subtag(tempstring, "cdrom"));
473473   m_is_primary = (input_port_read(*this, "DSW") & 1) ? false : true;
474   if (m_is_primary) {   
475      m_isa->install16_device(0x01f0, 0x01f7, 0, 0, read16_delegate(FUNC(isa16_ide_cd_device::atapi_r), this), write16_delegate(FUNC(isa16_ide_cd_device::atapi_w), this));       
476      //m_isa->install16_device(0x03f0, 0x03f7, 0, 0, read16_delegate(FUNC(isa16_ide_cd_device::atapi_status_r), this), write16_delegate(FUNC(isa16_ide_cd_device::atapi_cmd_w), this));       
474   if (m_is_primary) {
475      m_isa->install16_device(0x01f0, 0x01f7, 0, 0, read16_delegate(FUNC(isa16_ide_cd_device::atapi_r), this), write16_delegate(FUNC(isa16_ide_cd_device::atapi_w), this));
476      //m_isa->install16_device(0x03f0, 0x03f7, 0, 0, read16_delegate(FUNC(isa16_ide_cd_device::atapi_status_r), this), write16_delegate(FUNC(isa16_ide_cd_device::atapi_cmd_w), this));
477477   } else {
478      m_isa->install16_device(0x0170, 0x0177, 0, 0, read16_delegate(FUNC(isa16_ide_cd_device::atapi_r), this), write16_delegate(FUNC(isa16_ide_cd_device::atapi_w), this));       
479      m_isa->install16_device(0x0370, 0x0377, 0, 0, read16_delegate(FUNC(isa16_ide_cd_device::atapi_status_r), this), write16_delegate(FUNC(isa16_ide_cd_device::atapi_cmd_w), this));       
478      m_isa->install16_device(0x0170, 0x0177, 0, 0, read16_delegate(FUNC(isa16_ide_cd_device::atapi_r), this), write16_delegate(FUNC(isa16_ide_cd_device::atapi_w), this));
479      m_isa->install16_device(0x0370, 0x0377, 0, 0, read16_delegate(FUNC(isa16_ide_cd_device::atapi_status_r), this), write16_delegate(FUNC(isa16_ide_cd_device::atapi_cmd_w), this));
480480   }
481481   m_cur_drive = 0;
482482}
src/mess/machine/isa_ide_cd.h
r14747r14748
5656      virtual ioport_constructor device_input_ports() const;
5757 
5858      bool is_primary() { return m_is_primary; }
59       
60       
59 
60 
6161        DECLARE_READ16_MEMBER(atapi_r);
6262        DECLARE_WRITE16_MEMBER(atapi_w);
6363      DECLARE_READ16_MEMBER(atapi_status_r);
r14747r14748
7171private:
7272        // internal state
7373      bool m_is_primary;
74         
74
7575      // CDROM
7676      SCSIInstance *m_inserted_cdrom;
7777 
r14747r14748
8282      int m_atapi_xfermod;
8383      /* memory */
8484      UINT8 m_atapi_regs[ATAPI_REG_MAX];
85      UINT8 m_atapi_data[ATAPI_DATA_SIZE];       
86       
85      UINT8 m_atapi_data[ATAPI_DATA_SIZE];
86 
8787      int m_cur_drive;
8888};
8989 
src/mess/machine/i82371sb.c
r14747r14748
8888   i82371sb_state *i82371sb = get_safe_token(device);
8989   UINT32 result = i82371sb->regs[1][offset];
9090 
91   
9291 
92 
9393   return result;
9494}
9595 
src/mess/machine/omti8621.c
r14747r14748
12161216   virtual const char *image_interface() const { return NULL; }
12171217   virtual const char *file_extensions() const { return "awd"; }
12181218   virtual const option_guide *create_option_guide() const { return NULL; }
1219   
1219
12201220   virtual bool call_create(int format_type, option_resolution *format_options);
1221   
1222   disk_data *token() { return &m_token; }   
1221
1222   disk_data *token() { return &m_token; }
12231223protected:
12241224   // device-level overrides
12251225    virtual void device_config_complete();
12261226   virtual void device_start();
12271227   virtual void device_reset();
1228   
1228
12291229   disk_data m_token;
12301230};
12311231
r14747r14748
12411241}
12421242
12431243void omti_disk_image_device::device_config_complete()
1244{   
1244{
12451245   update_names(OMTI_DISK, "disk", "disk");
12461246};
12471247
src/mess/includes/trs80m2.h
r14747r14748
8787   DECLARE_WRITE_LINE_MEMBER( strobe_w );
8888   DECLARE_WRITE_LINE_MEMBER( fdc_intrq_w );
8989   DECLARE_WRITE_LINE_MEMBER( kb_clock_w );
90   
90
9191   void scan_keyboard();
92   
92
9393   // memory state
9494   int m_boot_rom;
9595   int m_bank;
r14747r14748
129129
130130   DECLARE_WRITE8_MEMBER( ual_w );
131131   DECLARE_WRITE8_MEMBER( tcl_w );
132   
132
133133   UINT16 m_ual;
134134   UINT8 m_limit[2];
135135   UINT8 m_offset[2];
src/mess/includes/hp48.h
r14747r14748
150150   virtual const char *image_interface() const { return NULL; }
151151   virtual const char *file_extensions() const { return "crd"; }
152152   virtual const option_guide *create_option_guide() const { return NULL; }
153   
153
154154   virtual bool call_load();
155155   virtual void call_unload();
156   virtual bool call_create(int format_type, option_resolution *format_options);   
156   virtual bool call_create(int format_type, option_resolution *format_options);
157157protected:
158158   // device-level overrides
159159    virtual void device_config_complete();
src/mess/includes/z88.h
r14747r14748
4646   virtual void machine_start();
4747   void bankswitch_update(int bank, UINT16 page, int rams);
4848   DECLARE_READ8_MEMBER(kb_r);
49   
49
5050   // cartridges read/write
5151   DECLARE_READ8_MEMBER(bank0_cart_r);
5252   DECLARE_READ8_MEMBER(bank1_cart_r);
src/mess/includes/apollo.h
r14747r14748
111111   device_t *dma8237_2;
112112   device_t *pic8259_master;
113113   device_t *pic8259_slave;
114   
114
115115};
116116
117117MACHINE_CONFIG_EXTERN( apollo );
src/mess/includes/ti85.h
r14747r14748
1919      : driver_device(mconfig, type, tag),
2020        m_maincpu(*this, "maincpu"),
2121        m_speaker(*this, SPEAKER_TAG),
22//        m_serial(*this, "tiserial"),
22//        m_serial(*this, "tiserial"),
2323        m_nvram(*this, "nvram")
2424      { }
2525
src/mess/video/odyssey2.c
r14747r14748
33  video/odyssey2.c
44
55  2012-02-04 DanBoris
6     - Changed color of background grid color 0 to match sprite color 0 (Fixes KTAA title screen)
7     - Fixed Odyssey2_video_w so that m_o2_vdc.reg[] is always updated (Fixes Blockout)
8     - Changed quad character generation so character height is always taken from 4th character (KTAA level 2)
6    - Changed color of background grid color 0 to match sprite color 0 (Fixes KTAA title screen)
7    - Fixed Odyssey2_video_w so that m_o2_vdc.reg[] is always updated (Fixes Blockout)
8    - Changed quad character generation so character height is always taken from 4th character (KTAA level 2)
99
1010
1111***************************************************************************/
src/mess/drivers/pdp1.c
r14747r14748
691691   virtual const char *image_interface() const { return NULL; }
692692   virtual const char *file_extensions() const { return "tap,rim"; }
693693   virtual const option_guide *create_option_guide() const { return NULL; }
694   
694
695695   virtual bool call_load();
696696   virtual void call_unload();
697697protected:
r14747r14748
726726   virtual const char *image_interface() const { return NULL; }
727727   virtual const char *file_extensions() const { return "tap,rim"; }
728728   virtual const option_guide *create_option_guide() const { return NULL; }
729   
729
730730   virtual bool call_load();
731731   virtual void call_unload();
732732protected:
r14747r14748
762762   virtual const char *image_interface() const { return NULL; }
763763   virtual const char *file_extensions() const { return "typ"; }
764764   virtual const option_guide *create_option_guide() const { return NULL; }
765   
765
766766   virtual bool call_load();
767767   virtual void call_unload();
768768protected:
r14747r14748
797797   virtual const char *image_interface() const { return NULL; }
798798   virtual const char *file_extensions() const { return "drm"; }
799799   virtual const option_guide *create_option_guide() const { return NULL; }
800     
800
801801   virtual bool call_load();
802802   virtual void call_unload();
803803protected:
src/mess/drivers/tm990189.c
r14747r14748
438438   virtual const char *image_interface() const { return NULL; }
439439   virtual const char *file_extensions() const { return ""; }
440440   virtual const option_guide *create_option_guide() const { return NULL; }
441   
441
442442   virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
443   
443
444444   virtual bool call_load();
445445   virtual void call_unload();
446446protected:
r14747r14748
458458}
459459
460460void tm990_189_rs232_image_device::device_config_complete()
461{   
461{
462462   update_names();
463463}
464464
r14747r14748
468468}
469469
470470void tm990_189_rs232_image_device::device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr)
471{   
471{
472472   //tm990189_state *state = machine.driver_data<tm990189_state>();
473473   UINT8 buf;
474474   if (/*state->m_rs232_rts &&*/ /*(mame_ftell(state->m_rs232_fp) < mame_fsize(state->m_rs232_fp))*/1)
src/mess/drivers/atarist.c
r14747r14748
34143414COMP( 1989, ste_it,      ste,      0,      ste,      ste,      0,      "Atari",   "STE (Italy)",         GAME_NOT_WORKING | GAME_SUPPORTS_SAVE )
34153415COMP( 1989, ste_se,      ste,      0,      ste,      ste,      0,      "Atari",   "STE (Sweden)",         GAME_NOT_WORKING | GAME_SUPPORTS_SAVE )
34163416COMP( 1989, ste_sg,      ste,      0,      ste,      ste,      0,      "Atari",   "STE (Switzerland)",   GAME_NOT_WORKING | GAME_SUPPORTS_SAVE )
3417//COMP( 1990, stbook,      ste,      0,      stbook,      stbook,      0,      "Atari",   "STBook",            GAME_NOT_WORKING )
3417//COMP( 1990, stbook,       ste,        0,      stbook,     stbook,     0,      "Atari",    "STBook",               GAME_NOT_WORKING )
34183418COMP( 1990,   tt030,      0,         0,      tt030,      tt030,      0,      "Atari",   "TT030 (USA)",         GAME_NOT_WORKING )
34193419COMP( 1990,   tt030_uk,   tt030,      0,      tt030,      tt030,      0,      "Atari",   "TT030 (UK)",         GAME_NOT_WORKING )
34203420COMP( 1990,   tt030_de,   tt030,      0,      tt030,      tt030,      0,      "Atari",   "TT030 (Germany)",      GAME_NOT_WORKING )
src/mess/drivers/tx0.c
r14747r14748
416416   virtual const char *image_interface() const { return NULL; }
417417   virtual const char *file_extensions() const { return "tap,rim"; }
418418   virtual const option_guide *create_option_guide() const { return NULL; }
419   
419
420420   virtual bool call_load();
421421   virtual void call_unload();
422422protected:
r14747r14748
451451   virtual const char *image_interface() const { return NULL; }
452452   virtual const char *file_extensions() const { return "tap,rim"; }
453453   virtual const option_guide *create_option_guide() const { return NULL; }
454   
454
455455   virtual bool call_load();
456456   virtual void call_unload();
457457protected:
r14747r14748
487487   virtual const char *image_interface() const { return NULL; }
488488   virtual const char *file_extensions() const { return "typ"; }
489489   virtual const option_guide *create_option_guide() const { return NULL; }
490   
490
491491   virtual bool call_load();
492492   virtual void call_unload();
493493protected:
r14747r14748
522522   virtual const char *image_interface() const { return NULL; }
523523   virtual const char *file_extensions() const { return "tap"; }
524524   virtual const option_guide *create_option_guide() const { return NULL; }
525     
525
526526   virtual bool call_load();
527527   virtual void call_unload();
528528protected:
529529   // device-level overrides
530530    virtual void device_config_complete() { update_names(); }
531   virtual void device_start();   
531   virtual void device_start();
532532};
533533
534534const device_type TX0_MAGTAPE = &device_creator<tx0_magtape_image_device>;
src/mess/drivers/trs80m2.c
r14747r14748
125125READ8_MEMBER( trs80m2_state::read )
126126{
127127   UINT8 data = 0;
128   
128
129129   if (offset < 0x800)
130130   {
131131      if (m_boot_rom)
r14747r14748
150150      else if (m_bank)
151151      {
152152         offs_t addr = (m_bank << 15) | (offset & 0x7fff);
153         
153
154154         if (addr < m_ram->size())
155155         {
156156            data = m_ram->pointer()[addr];
157157         }
158158      }
159159   }
160   
160
161161   return data;
162162}
163163
r14747r14748
176176      else if (m_bank)
177177      {
178178         offs_t addr = (m_bank << 15) | (offset & 0x7fff);
179         
179
180180         if (addr < m_ram->size())
181181         {
182182            m_ram->pointer()[addr] = data;
r14747r14748
200200        6
201201        7
202202
203   */
203    */
204204
205205   m_boot_rom = BIT(data, 0);
206206}
r14747r14748
220220        6       SDSEL
221221        7       FM/MFM
222222
223   */
223    */
224224
225225   // drive select
226226   if (!BIT(data, 0)) wd17xx_set_drive(m_fdc, 0);
r14747r14748
273273        6       DE                  display enabled
274274        7       KBIRQ               keyboard interrupt
275275
276   */
276    */
277277
278278   UINT8 data = 0;
279279
r14747r14748
307307        6       BLNKVID             video display enable
308308        7                           video RAM enable
309309
310   */
310    */
311311
312312   // memory bank select
313313   m_bank = data & 0x0f;
r14747r14748
352352        1       CONT1
353353        2       HALT
354354        3       RESET
355        4      CONT4
356        5      CONT5
357        6      CONT6
358        7      A14
355        4       CONT4
356        5       CONT5
357        6       CONT6
358        7       A14
359359
360   */
361   
360    */
361
362362   m_subcpu->set_input_line(INPUT_LINE_HALT, BIT(data, 2) ? ASSERT_LINE : CLEAR_LINE);
363363   m_subcpu->set_input_line(INPUT_LINE_RESET, BIT(data, 3) ? ASSERT_LINE : CLEAR_LINE);
364   
364
365365   pic8259_ir0_w(m_pic, BIT(data, 4));
366366   pic8259_ir1_w(m_pic, BIT(data, 5));
367367   pic8259_ir2_w(m_pic, BIT(data, 6));
368   
368
369369   m_ual = (m_ual & 0x1fe) | BIT(data, 7);
370370}
371371
r14747r14748
379379        1       A16
380380        2       A17
381381        3       A18
382        4      A19
383        5      A20
384        6      A21
385        7      A22
382        4       A19
383        5       A20
384        6       A21
385        7       A22
386386
387   */
388   
387    */
388
389389   m_ual = (data << 1) | BIT(m_ual, 0);
390390}
391391
r14747r14748
440440//-------------------------------------------------
441441
442442static ADDRESS_MAP_START( m68000_mem, AS_PROGRAM, 16, trs80m2_state )
443//   AM_RANGE(0x7800d0, 0x7800d1) PIC
444//   AM_RANGE(0x7800d2, 0x7800d3) limit/offset 2
445//   AM_RANGE(0x7800d4, 0x7800d5) limit/offset 1
446//   AM_RANGE(0x7800d6, 0x7800d7) Z80 IRQ
443//  AM_RANGE(0x7800d0, 0x7800d1) PIC
444//  AM_RANGE(0x7800d2, 0x7800d3) limit/offset 2
445//  AM_RANGE(0x7800d4, 0x7800d5) limit/offset 1
446//  AM_RANGE(0x7800d6, 0x7800d7) Z80 IRQ
447447ADDRESS_MAP_END
448448
449449
r14747r14748
626626{
627627   // find memory regions
628628   m_char_rom = machine().region(MC6845_TAG)->base();
629   
629
630630   // allocate memory
631631   m_video_ram = auto_alloc_array(machine(), UINT8, 0x800);
632632}
r14747r14748
658658WRITE_LINE_MEMBER( trs80m2_state::kb_clock_w )
659659{
660660   int kbdata = m_kb->data_r();
661   
661
662662   if (m_key_bit == 8)
663663   {
664664      if (!m_kbdata && kbdata)
r14747r14748
679679         m_key_bit++;
680680      }
681681   }
682   
682
683683   m_kbdata = kbdata;
684684   m_kbclk = state;
685685}
r14747r14748
728728        6       PE          paper empty
729729        7       BUSY        printer busy
730730
731   */
731    */
732732
733733   UINT8 data = 0;
734734
r14747r14748
768768        6       PE          paper empty
769769        7       BUSY        printer busy
770770
771   */
771    */
772772
773773   // prime
774774   m_centronics->init_prime_w(BIT(data, 3));
r14747r14748
955955void trs80m16_state::machine_start()
956956{
957957   trs80m2_state::machine_start();
958   
958
959959   // register CPU IRQ callback
960960   device_set_irq_callback(m_maincpu, trs80m16_irq_callback);
961961
r14747r14748
10511051   MCFG_CPU_ADD(M68000_TAG, M68000, XTAL_24MHz/4)
10521052   MCFG_CPU_PROGRAM_MAP(m68000_mem)
10531053   MCFG_DEVICE_DISABLE()
1054   
1054
10551055   // video hardware
10561056   MCFG_SCREEN_ADD(SCREEN_TAG, RASTER)
10571057   MCFG_SCREEN_REFRESH_RATE(60)
src/mess/drivers/cp1.c
r14747r14748
11/***************************************************************************
2   
2
33        Kosmos CP-1
44 
55        06/03/2012 Skeleton driver.
66 
7      on board there is also 8155 
8      KEYBOARD Membrane keyboard, 57 keys
9      6 * 7 seg led display
10       
7        on board there is also 8155
8        KEYBOARD Membrane keyboard, 57 keys
9        6 * 7 seg led display
10 
1111****************************************************************************/
1212#define ADDRESS_MAP_MODERN
1313#include "emu.h"
r14747r14748
1818public:
1919   cp1_state(const machine_config &mconfig, device_type type, const char *tag)
2020      : driver_device(mconfig, type, tag) { }
21   
21
2222   DECLARE_READ8_MEMBER(getp1);
2323   DECLARE_READ8_MEMBER(getp2);
2424   DECLARE_READ8_MEMBER(getbus);
r14747r14748
2626   DECLARE_READ8_MEMBER(t1_r);
2727   DECLARE_WRITE8_MEMBER(putp1);
2828   DECLARE_WRITE8_MEMBER(putp2);
29   DECLARE_WRITE8_MEMBER(putbus);   
29   DECLARE_WRITE8_MEMBER(putbus);
3030};
3131 
3232READ8_MEMBER(cp1_state::getp1)
r14747r14748
6969 
7070static ADDRESS_MAP_START(cp1_mem, AS_PROGRAM, 8, cp1_state)
7171   ADDRESS_MAP_UNMAP_HIGH
72   AM_RANGE( 0x0000, 0x07ff) AM_ROM   
72   AM_RANGE( 0x0000, 0x07ff) AM_ROM
7373ADDRESS_MAP_END
7474 
7575static ADDRESS_MAP_START( cp1_io , AS_IO, 8, cp1_state)
r14747r14748
8989    /* basic machine hardware */
9090    MCFG_CPU_ADD("maincpu",I8048, XTAL_6MHz)
9191    MCFG_CPU_PROGRAM_MAP(cp1_mem)
92    MCFG_CPU_IO_MAP(cp1_io)   
92    MCFG_CPU_IO_MAP(cp1_io)
9393MACHINE_CONFIG_END
9494 
9595/* ROM definition */
r14747r14748
111111/* Driver */
112112 
113113/*    YEAR  NAME    PARENT  COMPAT   MACHINE    INPUT    INIT     COMPANY   FULLNAME       FLAGS */
114COMP( 1980, cp1,  0,       0,    cp1,    cp1,     0,   "Kosmos",   "CP1 / Computer Praxis",      GAME_NOT_WORKING | GAME_NO_SOUND)
114COMP( 1980, cp1,  0,       0,   cp1,   cp1,    0,   "Kosmos",   "CP1 / Computer Praxis",      GAME_NOT_WORKING | GAME_NO_SOUND)
115115 
src/mess/drivers/apexc.c
r14747r14748
6969   virtual const char *image_interface() const { return NULL; }
7070   virtual const char *file_extensions() const { return "apc"; }
7171   virtual const option_guide *create_option_guide() const { return NULL; }
72     
72
7373   virtual bool call_load();
7474   virtual void call_unload();
7575protected:
7676   // device-level overrides
7777    virtual void device_config_complete() { update_names(); }
7878   virtual void device_start() { }
79private:   
79private:
8080   int m_writable;
8181};
8282
src/mess/drivers/avigo.c
r14747r14748
233233   DEVCB_NULL
234234};
235235
236static const rs232_port_interface avigo_serport_config =
236static const rs232_port_interface avigo_serport_config =
237237{
238238   DEVCB_DEVICE_LINE_MEMBER("ns16550", ins8250_uart_device, rx_w),
239239   DEVCB_DEVICE_LINE_MEMBER("ns16550", ins8250_uart_device, dcd_w),

Previous 15994 Revisions Next


© 1998-2018 The MESS Team