Previous 15994 Revisions Next

r14898 Wednesday 11th April, 2012 at 18:05:25 UTC by Curt Coder
[C64] Fixed clock speeds, and cartridge WIP. (nw)
[ABC80] Separated keyboard to its own device. (nw)
[hash]c64_cart.xml
[src/emu/drivers]xtal.h
[src/emu/sound]sp0256.c sp0256.h
[src/mess]mess.mak
[src/mess/drivers]abc80.c c64.c
[src/mess/includes]abc80.h
[src/mess/machine]abc80kb.c* abc80kb.h* c1571.c c64_currah_speech.c* c64_currah_speech.h* c64_ieee488.c c64_sfx_sound_expander.c c64exp.c c64exp.h cbmipt.c cbmipt.h
[src/mess/video]vic6567.h

hash/c64_cart.xml
r14897r14898
166166      <description>Currah Speech 64</description>
167167      <year>1984</year>
168168      <publisher>Currah</publisher>
169      <!--
170      |===========================|
171      |=|                         |
172      |=|         VLSI            |
173      |=|                         |
174      |=|                         |
175      |=|         ROM             |
176      |=|                         |
177      |=|                         |
178      |=|         SP0256          |
179      |===========================|
180169
181      VLSI   - General Instruments LA05-164
182      ROM    - General Instruments R09864CS-2030 8Kx8 ROM "778R01"
183      SP0256 - General Instruments SP0256A-AL2 Speech Synthesizer
184      -->
185170      <part name="cart" interface="c64_cart">
186         <feature name="slot" value="currah_speech_64" />
171         <feature name="slot" value="cs64" />
187172         <feature name="game" value="1" />
188173         <feature name="exrom" value="0" />
189         <feature name="vlsi" value="LA05-164" />
190         <feature name="speech" value="SP0256" />
191174
192175         <dataarea name="roml" size="0x2000">
193176            <rom name="778r01" size="0x2000" crc="e3f8abd0" sha1="dc9fc1ffb033531abec03b1a06a8d5064dd0ce61" offset="0x0000" />
194177         </dataarea>
195
196         <dataarea name="sp0256" size="0x800">
197            <rom name="sp0256al2" size="0x800" crc="df8de0b0" sha1="86fb6d9fef955ac0bc76e0c45c66585946d278a1" offset="0x0000" />
198         </dataarea>
199178      </part>
200179   </software>
201180
src/emu/sound/sp0256.c
r14897r14898
12721272   return;
12731273}
12741274
1275READ_LINE_DEVICE_HANDLER( sp0256_lrq_r )
1276{
1277    sp0256_state *sp = get_safe_token(device);
1278
1279    return sp->lrq == 0x8000;
1280}
1281
12751282READ_LINE_DEVICE_HANDLER( sp0256_sby_r )
12761283{
12771284   sp0256_state *sp = get_safe_token(device);
src/emu/sound/sp0256.h
r14897r14898
6262void sp0256_bitrevbuff(UINT8 *buffer, unsigned int start, unsigned int length);
6363
6464WRITE8_DEVICE_HANDLER( sp0256_ALD_w );
65
66READ_LINE_DEVICE_HANDLER( sp0256_lrq_r );
6567READ_LINE_DEVICE_HANDLER( sp0256_sby_r );
6668
6769READ16_DEVICE_HANDLER( spb640_r );
src/emu/drivers/xtal.h
r14897r14898
130130   XTAL_16_9344MHz    = 16934400,      /* Usually used to drive 90's Yamaha OPL/FM chips */
131131   XTAL_17_36MHz      = 17360000,      /* OMTI Series 10 SCSI controller */
132132   XTAL_17_73447MHz   = 17734470,      /* 4 times the PAL subcarrier */
133   XTAL_17_734472MHz   = 17734472,      /* actually 4 times the PAL subcarrier */
133134   XTAL_18MHz        = 18000000,      /* S.A.R, Ikari Warriors 3 */
134135   XTAL_18_432MHz     = 18432000,      /* Extremely common, used on 100's of PCBs */
135136   XTAL_18_720MHz     = 18720000,      /* Nokia MikroMikko 1 */
src/mess/machine/c64_sfx_sound_expander.c
r14897r14898
8383   MCFG_SOUND_CONFIG(ym3526_config)
8484   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.70)
8585 
86   MCFG_C64_EXPANSION_SLOT_ADD(C64_EXPANSION_SLOT_TAG, expansion_intf, c64_expansion_cards, NULL, NULL)
86   MCFG_C64_EXPANSION_SLOT_ADD(C64_EXPANSION_SLOT_TAG, 0, expansion_intf, c64_expansion_cards, NULL, NULL)
8787MACHINE_CONFIG_END
8888 
8989 
src/mess/machine/cbmipt.c
r14897r14898
11581158   SLOT_INTERFACE("ieee488", C64_IEEE488)
11591159   SLOT_INTERFACE("standard", C64_STD)
11601160   SLOT_INTERFACE("comal80", C64_COMAL80)
1161   SLOT_INTERFACE("cs64", C64_CURRAH_SPEECH)
11611162   SLOT_INTERFACE("dela_ep256", C64_DELA_EP256)
11621163   SLOT_INTERFACE("ep64", C64_DELA_EP64)
11631164   SLOT_INTERFACE("ep7x8", C64_DELA_EP7X8)
src/mess/machine/cbmipt.h
r14897r14898
1010#include "machine/c64_bn1541.h"
1111#include "machine/c64_comal80.h"
1212#include "machine/c64_cpm.h"
13#include "machine/c64_currah_speech.h"
1314#include "machine/c64_dela_ep256.h"
1415#include "machine/c64_dela_ep64.h"
1516#include "machine/c64_dela_ep7x8.h"
src/mess/machine/abc80kb.c
r0r14898
1/**********************************************************************
2
3    Luxor ABC-80 keyboard emulation
4
5    Copyright MESS Team.
6    Visit http://mamedev.org for licensing and usage restrictions.
7
8**********************************************************************/
9
10/*
11
12PCB Layout
13----------
14
15KTC 65-01870-001 (dated 1978)
16PCB-002B
17
18    |---------------|
19|---|      CN1      |---------------------------------------------------|
20|                                                                       |
21|   LS06    LS04    LS04                        LS06    LS00    LS123   |
22|   LS74                    PROM        MCU             4051    900C    |
23|                                                                       |
24|                                                                       |
25|                                                                       |
26|                                                                       |
27|                                                                       |
28|                                                                       |
29|                                                                       |
30|                                                                       |
31|-----------------------------------------------------------------------|
32
33Notes:
34    All IC's shown.
35
36    MCU         - General Instruments 30293B-013 20-04592-013 (?)
37    PROM        - Synertek N82S141N 512x8 bipolar PROM "053"
38    900C        - Ferranti Interdesign 900C custom (?)
39    CN1         - keyboard data connector
40
41*/
42
43/*
44
45PCB Layout
46----------
47
48KTC A65-01870-001 (dated 1983)
49PCB-201C
50
51    |---------------|
52|---|      CN1      |---------------------------------------------------|
53|                                                                       |
54|   LS06    LS04    LS04                                LS00    LS123   |
55|                                       MCU             4051    900C    |
56|                                                                       |
57|                                                                       |
58|                                                                       |
59|                                                                       |
60|                                                                       |
61|                                                                       |
62|                                                                       |
63|                                                                       |
64|-----------------------------------------------------------------------|
65
66Notes:
67    All IC's shown.
68
69    MCU         - General Instruments 30293B-047 20-04592-047 (?)
70    900C        - Ferranti Interdesign 900C custom (?)
71    CN1         - keyboard data connector
72
73*/
74
75#include "abc80kb.h"
76
77
78
79//**************************************************************************
80//  MACROS / CONSTANTS
81//**************************************************************************
82
83#define I8048_TAG       "i8048"
84
85
86
87//**************************************************************************
88//  DEVICE DEFINITIONS
89//**************************************************************************
90
91const device_type ABC80_KEYBOARD = &device_creator<abc80_keyboard_device>;
92
93
94//-------------------------------------------------
95//  device_config_complete - perform any
96//  operations now that the configuration is
97//  complete
98//-------------------------------------------------
99
100void abc80_keyboard_device::device_config_complete()
101{
102    // inherit a copy of the static data
103    const abc80_keyboard_interface *intf = reinterpret_cast<const abc80_keyboard_interface *>(static_config());
104    if (intf != NULL)
105        *static_cast<abc80_keyboard_interface *>(this) = *intf;
106
107    // or initialize to defaults if none provided
108    else
109    {
110        memset(&m_out_keydown_cb, 0, sizeof(m_out_keydown_cb));
111    }
112
113    m_shortname = "abc80kb";
114}
115
116
117//-------------------------------------------------
118//  ROM( abc80_keyboard )
119//-------------------------------------------------
120
121ROM_START( abc80_keyboard )
122    ROM_REGION( 0x400, I8048_TAG, 0 )
123    ROM_LOAD( "053.z5", 0x0000, 0x0400, NO_DUMP )
124ROM_END
125
126
127//-------------------------------------------------
128//  rom_region - device-specific ROM region
129//-------------------------------------------------
130
131const rom_entry *abc80_keyboard_device::device_rom_region() const
132{
133   return ROM_NAME( abc80_keyboard );
134}
135
136
137//-------------------------------------------------
138//  ADDRESS_MAP( abc80_keyboard_io )
139//-------------------------------------------------
140
141static ADDRESS_MAP_START( abc80_keyboard_io, AS_IO, 8, abc80_keyboard_device )
142ADDRESS_MAP_END
143
144
145//-------------------------------------------------
146//  MACHINE_DRIVER( abc80_keyboard )
147//-------------------------------------------------
148
149static MACHINE_CONFIG_FRAGMENT( abc80_keyboard )
150    MCFG_CPU_ADD(I8048_TAG, I8048, XTAL_5_9904MHz)
151    MCFG_CPU_IO_MAP(abc80_keyboard_io)
152MACHINE_CONFIG_END
153
154
155//-------------------------------------------------
156//  machine_config_additions - device-specific
157//  machine configurations
158//-------------------------------------------------
159
160machine_config_constructor abc80_keyboard_device::device_mconfig_additions() const
161{
162   return MACHINE_CONFIG_NAME( abc80_keyboard );
163}
164
165
166//-------------------------------------------------
167//  INPUT_PORTS( abc80_keyboard )
168//-------------------------------------------------
169
170INPUT_PORTS_START( abc80_keyboard )
171INPUT_PORTS_END
172
173
174//-------------------------------------------------
175//  input_ports - device-specific input ports
176//-------------------------------------------------
177
178ioport_constructor abc80_keyboard_device::device_input_ports() const
179{
180   return INPUT_PORTS_NAME( abc80_keyboard );
181}
182
183
184
185//**************************************************************************
186//  LIVE DEVICE
187//**************************************************************************
188
189//-------------------------------------------------
190//  abc80_keyboard_device - constructor
191//-------------------------------------------------
192
193abc80_keyboard_device::abc80_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
194    : device_t(mconfig, ABC80_KEYBOARD, "ABC-80 Keyboard", tag, owner, clock),
195      m_maincpu(*this, I8048_TAG)
196{
197}
198
199
200//-------------------------------------------------
201//  device_start - device-specific startup
202//-------------------------------------------------
203
204void abc80_keyboard_device::device_start()
205{
206    // resolve callbacks
207    m_out_keydown_func.resolve(m_out_keydown_cb, *this);
208}
209
210
211//-------------------------------------------------
212//  device_reset - device-specific reset
213//-------------------------------------------------
214
215void abc80_keyboard_device::device_reset()
216{
217}
218
219
220//-------------------------------------------------
221//  data_r - keyboard data read
222//-------------------------------------------------
223
224READ8_MEMBER( abc80_keyboard_device::data_r )
225{
226    return 0;
227}
src/mess/machine/abc80kb.h
r0r14898
1/**********************************************************************
2
3    Luxor ABC-80 keyboard emulation
4
5    Copyright MESS Team.
6    Visit http://mamedev.org for licensing and usage restrictions.
7
8**********************************************************************/
9
10#pragma once
11
12#ifndef __ABC80_KEYBOARD__
13#define __ABC80_KEYBOARD__
14
15
16#include "emu.h"
17#include "cpu/mcs48/mcs48.h"
18
19
20
21//**************************************************************************
22//  MACROS / CONSTANTS
23//**************************************************************************
24
25#define ABC80_KEYBOARD_TAG   "abc80kb"
26
27
28
29//**************************************************************************
30//  INTERFACE CONFIGURATION MACROS
31//**************************************************************************
32
33#define MCFG_ABC80_KEYBOARD_ADD(_config) \
34    MCFG_DEVICE_ADD(ABC80_KEYBOARD_TAG, ABC80_KEYBOARD, 0) \
35   MCFG_DEVICE_CONFIG(_config)
36
37
38#define ABC80_KEYBOARD_INTERFACE(_name) \
39   const abc80_keyboard_interface (_name) =
40
41
42
43//**************************************************************************
44//  TYPE DEFINITIONS
45//**************************************************************************
46
47// ======================> abc80_keyboard_interface
48
49struct abc80_keyboard_interface
50{
51   devcb_write_line   m_out_keydown_cb;
52};
53
54
55// ======================> abc80_keyboard_device
56
57class abc80_keyboard_device :  public device_t,
58                        public abc80_keyboard_interface
59{
60public:
61    // construction/destruction
62    abc80_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
63
64   // optional information overrides
65   virtual const rom_entry *device_rom_region() const;
66   virtual machine_config_constructor device_mconfig_additions() const;
67   virtual ioport_constructor device_input_ports() const;
68
69   DECLARE_READ8_MEMBER( data_r );
70
71protected:
72    // device-level overrides
73   virtual void device_config_complete();
74    virtual void device_start();
75   virtual void device_reset();
76
77private:
78   devcb_resolved_write_line   m_out_keydown_func;
79
80   required_device<cpu_device> m_maincpu;
81};
82
83
84// device type definition
85extern const device_type ABC80_KEYBOARD;
86
87
88
89#endif
src/mess/machine/c64_ieee488.c
r14897r14898
219219static MACHINE_CONFIG_FRAGMENT( c64_ieee488 )
220220   MCFG_TPI6525_ADD(MOS6525_TAG, tpi_intf)
221221   MCFG_CBM_IEEE488_ADD(ieee488_intf, NULL)
222   MCFG_C64_EXPANSION_SLOT_ADD(C64_EXPANSION_SLOT_TAG, expansion_intf, c64_expansion_cards, NULL, NULL)
222   MCFG_C64_EXPANSION_SLOT_ADD(C64_EXPANSION_SLOT_TAG, 0, expansion_intf, c64_expansion_cards, NULL, NULL)
223223MACHINE_CONFIG_END
224224 
225225 
src/mess/machine/c64_currah_speech.c
r0r14898
1/**********************************************************************
2
3    Currah Speech 64 cartridge emulation
4
5    Copyright MESS Team.
6    Visit http://mamedev.org for licensing and usage restrictions.
7
8**********************************************************************/
9
10/*
11
12PCB Layout
13----------
14
15|===========================|
16|=|                         |
17|=|         VLSI            |
18|=|                         |
19|=|                         |
20|=|         ROM             |
21|=|                         |
22|=|                         |
23|=|         SP0256          |
24|===========================|
25
26Notes:
27    All IC's shown.
28
29   VLSI   - General Instruments LA05-164 custom
30   ROM    - General Instruments R09864CS-2030 8Kx8 ROM "778R01"
31   SP0256 - General Instruments SP0256A-AL2 Speech Synthesizer
32
33*/
34
35#include "c64_currah_speech.h"
36
37
38
39//**************************************************************************
40//  MACROS/CONSTANTS
41//**************************************************************************
42
43#define SP0256_TAG      "sp0256"
44
45
46
47//**************************************************************************
48//  DEVICE DEFINITIONS
49//**************************************************************************
50
51const device_type C64_CURRAH_SPEECH = &device_creator<c64_currah_speech_cartridge_device>;
52
53
54//-------------------------------------------------
55//  ROM( c64_currah_speech )
56//-------------------------------------------------
57
58ROM_START( c64_currah_speech )
59   ROM_REGION( 0x800, SP0256_TAG, 0 )
60   ROM_LOAD( "sp0256a-al2", 0x000, 0x800, CRC(df8de0b0) SHA1(86fb6d9fef955ac0bc76e0c45c66585946d278a1) )
61ROM_END
62
63
64//-------------------------------------------------
65//  rom_region - device-specific ROM region
66//-------------------------------------------------
67
68const rom_entry *c64_currah_speech_cartridge_device::device_rom_region() const
69{
70   return ROM_NAME( c64_currah_speech );
71}
72
73
74//-------------------------------------------------
75//  sp0256_interface sp0256_intf
76//-------------------------------------------------
77
78static sp0256_interface sp0256_intf =
79{
80   DEVCB_NULL,
81   DEVCB_NULL
82};
83
84
85//-------------------------------------------------
86//  MACHINE_CONFIG_FRAGMENT( c64_currah_speech )
87//-------------------------------------------------
88
89static MACHINE_CONFIG_FRAGMENT( c64_currah_speech )
90   MCFG_SPEAKER_STANDARD_MONO("mono")
91   MCFG_SOUND_ADD(SP0256_TAG, SP0256, 1000000) // ???
92   MCFG_SOUND_CONFIG(sp0256_intf)
93   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
94MACHINE_CONFIG_END
95
96
97//-------------------------------------------------
98//  machine_config_additions - device-specific
99//  machine configurations
100//-------------------------------------------------
101
102machine_config_constructor c64_currah_speech_cartridge_device::device_mconfig_additions() const
103{
104   return MACHINE_CONFIG_NAME( c64_currah_speech );
105}
106
107
108
109//**************************************************************************
110//  LIVE DEVICE
111//**************************************************************************
112
113//-------------------------------------------------
114//  c64_currah_speech_cartridge_device - constructor
115//-------------------------------------------------
116
117c64_currah_speech_cartridge_device::c64_currah_speech_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
118   device_t(mconfig, C64_CURRAH_SPEECH, "C64 Currah Speech", tag, owner, clock),
119   device_c64_expansion_card_interface(mconfig, *this),
120   m_nsp(*this, SP0256_TAG)
121{
122}
123
124
125//-------------------------------------------------
126//  device_start - device-specific startup
127//-------------------------------------------------
128
129void c64_currah_speech_cartridge_device::device_start()
130{
131   // find memory regions
132   m_rom = subregion(SP0256_TAG)->base();
133}
134
135
136//-------------------------------------------------
137//  device_reset - device-specific reset
138//-------------------------------------------------
139
140void c64_currah_speech_cartridge_device::device_reset()
141{
142}
143
144
145//-------------------------------------------------
146//  c64_cd_r - cartridge data read
147//-------------------------------------------------
148
149UINT8 c64_currah_speech_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
150{
151   UINT8 data = 0;
152
153   if (!io1)
154   {
155      /*
156     
157          bit     description
158     
159          0       
160          1       
161          2       
162          3       
163          4       
164          5       
165          6       
166          7       LRQ
167     
168      */
169
170      data = sp0256_lrq_r(m_nsp) << 7;
171   }
172
173   return data;
174}
175
176
177//-------------------------------------------------
178//  c64_cd_w - cartridge data write
179//-------------------------------------------------
180
181void c64_currah_speech_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
182{
183   if (!io1)
184   {
185      // TODO offset bit 0 = high/low voice
186      sp0256_ALD_w(m_nsp, 0, data);
187   }
188}
189
190
191//-------------------------------------------------
192//  c64_game_r - GAME read
193//-------------------------------------------------
194
195int c64_currah_speech_cartridge_device::c64_game_r(offs_t offset, int ba, int rw, int hiram)
196{
197   return 1; // TODO
198}
199
200
201//-------------------------------------------------
202//  c64_exrom_r - EXROM read
203//-------------------------------------------------
204
205int c64_currah_speech_cartridge_device::c64_exrom_r()
206{
207   return 1; // TODO
208}
src/mess/machine/c64_currah_speech.h
r0r14898
1/**********************************************************************
2
3    Currah Speech 64 cartridge emulation
4
5    Copyright MESS Team.
6    Visit http://mamedev.org for licensing and usage restrictions.
7
8**********************************************************************/
9
10#pragma once
11
12#ifndef __CURRAH_SPEECH_64__
13#define __CURRAH_SPEECH_64__
14
15
16#include "emu.h"
17#include "machine/c64exp.h"
18#include "sound/sp0256.h"
19
20
21
22//**************************************************************************
23//  TYPE DEFINITIONS
24//**************************************************************************
25
26// ======================> c64_currah_speech_cartridge_device
27
28class c64_currah_speech_cartridge_device : public device_t,
29                                  public device_c64_expansion_card_interface
30{
31public:
32   // construction/destruction
33   c64_currah_speech_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
34
35   // optional information overrides
36   virtual const rom_entry *device_rom_region() const;
37   virtual machine_config_constructor device_mconfig_additions() const;
38
39protected:
40   // device-level overrides
41    virtual void device_config_complete() { m_shortname = "c64_currah_speech"; }
42   virtual void device_start();
43   virtual void device_reset();
44
45   // device_c64_expansion_card_interface overrides
46   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
47   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
48   virtual int c64_game_r(offs_t offset, int ba, int rw, int hiram);
49   virtual int c64_exrom_r();
50
51private:
52   required_device<device_t> m_nsp;
53
54   UINT8 *m_rom;
55};
56
57
58// device type definition
59extern const device_type C64_CURRAH_SPEECH;
60
61
62#endif
src/mess/machine/c64exp.c
r14897r14898
415415WRITE_LINE_MEMBER( c64_expansion_slot_device::nmi_w ) { m_out_nmi_func(state); }
416416WRITE_LINE_MEMBER( c64_expansion_slot_device::dma_w ) { m_out_dma_func(state); }
417417WRITE_LINE_MEMBER( c64_expansion_slot_device::reset_w ) { m_out_reset_func(state); }
418
419
420//-------------------------------------------------
421//  phi2 - system clock frequency
422//-------------------------------------------------
423
424int c64_expansion_slot_device::phi2()
425{
426   return clock();
427}
428
429
430//-------------------------------------------------
431//  dotclock - dot clock frequency
432//-------------------------------------------------
433
434int c64_expansion_slot_device::dotclock()
435{
436   return phi2() * 8;
437}
src/mess/machine/c64exp.h
r14897r14898
5858   const c64_expansion_slot_interface (_name) =
5959
6060
61#define MCFG_C64_EXPANSION_SLOT_ADD(_tag, _config, _slot_intf, _def_slot, _def_inp) \
62    MCFG_DEVICE_ADD(_tag, C64_EXPANSION_SLOT, 0) \
61#define MCFG_C64_EXPANSION_SLOT_ADD(_tag, _clock, _config, _slot_intf, _def_slot, _def_inp) \
62    MCFG_DEVICE_ADD(_tag, C64_EXPANSION_SLOT, _clock) \
6363    MCFG_DEVICE_CONFIG(_config) \
6464   MCFG_DEVICE_SLOT_INTERFACE(_slot_intf, _def_slot, _def_inp)
6565
r14897r14898
110110   DECLARE_WRITE_LINE_MEMBER( nmi_w );
111111   DECLARE_WRITE_LINE_MEMBER( dma_w );
112112   DECLARE_WRITE_LINE_MEMBER( reset_w );
113   int phi2();
114   int dotclock();
113115
114116protected:
115117   // device-level overrides
src/mess/machine/c1571.c
r14897r14898
812812{
813813   if (!m_ser_dir)
814814   {
815      //m_cia->cnt_w(state);
815      m_cia->cnt_w(state);
816816   }
817817}
818818
r14897r14898
838838{
839839   if (!m_ser_dir)
840840   {
841      //m_cia->sp_w(state);
841      m_cia->sp_w(state);
842842   }
843843}
844844
src/mess/includes/abc80.h
r14897r14898
1515#include "imagedev/printer.h"
1616#include "imagedev/cassette.h"
1717#include "machine/abcbus.h"
18#include "machine/abc80kb.h"
1819#include "machine/abc830.h"
1920#include "machine/abc_fd2.h"
2021#include "machine/abc_sio.h"
r14897r14898
6768      : driver_device(mconfig, type, tag),
6869        m_maincpu(*this, Z80_TAG),
6970        m_pio(*this, Z80PIO_TAG),
71        m_psg(*this, SN76477_TAG),
7072        m_cassette(*this, CASSETTE_TAG),
7173        m_bus(*this, ABCBUS_TAG),
7274        m_ram(*this, RAM_TAG)
r14897r14898
7476
7577   required_device<cpu_device> m_maincpu;
7678   required_device<device_t> m_pio;
79   required_device<device_t> m_psg;
7780   required_device<cassette_image_device> m_cassette;
7881   required_device<abcbus_slot_device> m_bus;
7982   required_device<ram_device> m_ram;
r14897r14898
8588
8689   void update_screen(bitmap_ind16 &bitmap, const rectangle &cliprect);
8790
88   DECLARE_READ8_MEMBER( mmu_r );
89   DECLARE_WRITE8_MEMBER( mmu_w );
91   DECLARE_READ8_MEMBER( read );
92   DECLARE_WRITE8_MEMBER( write );
9093
94   DECLARE_WRITE_LINE_MEMBER( vco_voltage_w );
95
9196   DECLARE_READ8_MEMBER( pio_pa_r );
9297   DECLARE_READ8_MEMBER( pio_pb_r );
9398   DECLARE_WRITE8_MEMBER( pio_pb_w );
src/mess/video/vic6567.h
r14897r14898
4545    CONSTANTS
4646***************************************************************************/
4747
48#define VIC6567_CLOCK      (1022700 /* = 8181600 / 8) */ )
49#define VIC6569_CLOCK      ( 985248 /* = 7881984 / 8) */ )
48#define VIC6567R56A_CLOCK      (XTAL_8MHz / 8) // 1000000
49#define VIC6567_CLOCK         (XTAL_14_31818MHz / 14) // 1022727
50#define VIC6569_CLOCK         (XTAL_17_734472MHz / 18) // 985248
5051
52#define VIC6567R56A_DOTCLOCK   (VIC6567R56A_CLOCK * 8) // 8000000
53#define VIC6567_DOTCLOCK      (VIC6567_CLOCK * 8) // 8181818
54#define VIC6569_DOTCLOCK      (VIC6569_CLOCK * 8) // 7881988
55
5156#define VIC6567_CYCLESPERLINE   65
5257#define VIC6569_CYCLESPERLINE   63
5358
5459#define VIC6567_LINES      263
5560#define VIC6569_LINES      312
5661
57#define VIC6567_VRETRACERATE   (59.8245100906698 /* = 1022700 / (65 * 263) */ )
58#define VIC6569_VRETRACERATE   (50.1245421245421 /* =  985248 / (63 * 312) */ )
62#define VIC6567R56A_VRETRACERATE   ((float)VIC6567R56A_CLOCK / 262 / 64)
63#define VIC6567_VRETRACERATE      ((float)VIC6567_CLOCK / 263 / 65)
64#define VIC6569_VRETRACERATE      ((float)VIC6569_CLOCK / 312 / 63)
5965
6066#define VIC6567_HRETRACERATE   (VIC6567_CLOCK / VIC6567_CYCLESPERLINE)
6167#define VIC6569_HRETRACERATE   (VIC6569_CLOCK / VIC6569_CYCLESPERLINE)
src/mess/drivers/abc80.c
r14897r14898
5858    DIPSW2  -
5959
6060
61Keyboard PCB Layout
62-------------------
63
64KTC 65-01870-001 (dated 1978)
65PCB-002B
66
67    |---------------|
68|---|      CN1      |---------------------------------------------------|
69|                                                                       |
70|   LS06    LS04    LS04                        LS06    LS00    LS123   |
71|   LS74                    PROM        MCU             4051    900C    |
72|                                                                       |
73|                                                                       |
74|                                                                       |
75|                                                                       |
76|                                                                       |
77|                                                                       |
78|                                                                       |
79|                                                                       |
80|-----------------------------------------------------------------------|
81
82Notes:
83    All IC's shown.
84
85    MCU         - General Instruments 30293B-013 20-04592-013 (?)
86    PROM        - Synertek N82S141N 512x8 bipolar PROM "053"
87    900C        - Interdesign 900C (?)
88    CN1         - keyboard data connector
89
90
91KTC A65-01870-001 (dated 1983)
92PCB-201C
93
94    |---------------|
95|---|      CN1      |---------------------------------------------------|
96|                                                                       |
97|   LS06    LS04    LS04                                LS00    LS123   |
98|                                       MCU             4051    900C    |
99|                                                                       |
100|                                                                       |
101|                                                                       |
102|                                                                       |
103|                                                                       |
104|                                                                       |
105|                                                                       |
106|                                                                       |
107|-----------------------------------------------------------------------|
108
109Notes:
110    All IC's shown.
111
112    MCU         - General Instruments 30293B-047 20-04592-047 (?)
113    900C        - Interdesign 900C (?)
114    CN1         - keyboard data connector
115
116
11761DOS PCB Layout
11862--------------
11963
r14897r14898
172116    - floppy
173117    - printer
174118    - IEC
119    - Metric ABC CAD 1000
175120
176121*/
177122
r14897r14898
387332
388333
389334//**************************************************************************
390//  MEMORY MANAGEMENT UNIT
335//  MEMORY MANAGEMENT
391336//**************************************************************************
392337
393338//-------------------------------------------------
394//  mmu_r -
339//  read -
395340//-------------------------------------------------
396341
397READ8_MEMBER( abc80_state::mmu_r )
342READ8_MEMBER( abc80_state::read )
398343{
399344   UINT8 data = 0xff;
400345   UINT8 mmu = m_mmu_rom[0x40 | (offset >> 10)];
r14897r14898
421366
422367
423368//-------------------------------------------------
424//  mmu_w -
369//  write -
425370//-------------------------------------------------
426371
427WRITE8_MEMBER( abc80_state::mmu_w )
372WRITE8_MEMBER( abc80_state::write )
428373{
429374   UINT8 mmu = m_mmu_rom[0x40 | (offset >> 10)];
430375
r14897r14898
452397//  vco_voltage_w - CSG VCO voltage select
453398//-------------------------------------------------
454399
455WRITE_LINE_DEVICE_HANDLER( vco_voltage_w )
400WRITE_LINE_MEMBER( abc80_state::vco_voltage_w )
456401{
457   sn76477_vco_voltage_w(device, state ? 2.5 : 0);
402   sn76477_vco_voltage_w(m_psg, state ? 2.5 : 0);
458403}
459404
460405
r14897r14898
469414
470415static ADDRESS_MAP_START( abc80_mem, AS_PROGRAM, 8, abc80_state )
471416   ADDRESS_MAP_UNMAP_HIGH
472   AM_RANGE(0x0000, 0xffff) AM_READWRITE(mmu_r, mmu_w)
417   AM_RANGE(0x0000, 0xffff) AM_READWRITE(read, write)
473418ADDRESS_MAP_END
474419
475420
r14897r14898
506451
507452   PORT_START("SN76477")
508453   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_SPECIAL) PORT_WRITE_LINE_DEVICE(SN76477_TAG, sn76477_enable_w)
509   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_SPECIAL) PORT_WRITE_LINE_DEVICE(SN76477_TAG, vco_voltage_w)
454   PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_SPECIAL) PORT_WRITE_LINE_DEVICE_MEMBER(DEVICE_SELF, abc80_state, vco_voltage_w)
510455   PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_SPECIAL) PORT_WRITE_LINE_DEVICE(SN76477_TAG, sn76477_vco_w)
511456   PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_SPECIAL) PORT_WRITE_LINE_DEVICE(SN76477_TAG, sn76477_mixer_b_w)
512457   PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_SPECIAL) PORT_WRITE_LINE_DEVICE(SN76477_TAG, sn76477_mixer_a_w)
r14897r14898
688633   SLOT_INTERFACE("sio", ABC_SIO)
689634SLOT_INTERFACE_END
690635
691
692636static ABCBUS_INTERFACE( abcbus_intf )
693637{
694638   DEVCB_NULL,
r14897r14898
698642};
699643
700644
645//-------------------------------------------------
646//  ABC80_KEYBOARD_INTERFACE( kb_intf )
647//-------------------------------------------------
701648
649static ABC80_KEYBOARD_INTERFACE( kb_intf )
650{
651   DEVCB_NULL
652};
653
654
655
702656//**************************************************************************
703657//  MACHINE INITIALIZATION
704658//**************************************************************************
r14897r14898
753707   MCFG_PRINTER_ADD("printer")
754708   MCFG_CASSETTE_ADD(CASSETTE_TAG, abc80_cassette_interface)
755709   MCFG_ABC830_ADD()
710   MCFG_ABC80_KEYBOARD_ADD(kb_intf)
756711
757712   // ABC bus
758713   MCFG_ABCBUS_SLOT_ADD(ABCBUS_TAG, abcbus_intf, abc80_abcbus_cards, "slow", NULL)
r14897r14898
791746   ROM_LOAD( "iec",      0x7000, 0x0400, NO_DUMP )
792747   ROM_LOAD( "printer",   0x7800, 0x0400, NO_DUMP )
793748
794   ROM_REGION( 0x200, "keyboard", 0 )
795   ROM_LOAD( "053.z5", 0x0000, 0x0200, NO_DUMP ) // 82S141 512x8
796
797749   ROM_REGION( 0xa00, "chargen", 0 )
798750   ROM_LOAD( "sn74s263.h2", 0x0000, 0x0a00, BAD_DUMP CRC(9e064e91) SHA1(354783c8f2865f73dc55918c9810c66f3aca751f) ) // created by hand
799751
src/mess/drivers/c64.c
r14897r14898
11161116   MCFG_CASSETTE_ADD(CASSETTE_TAG, cbm_cassette_interface)
11171117   MCFG_TIMER_ADD(TIMER_C1531_TAG, cassette_tick)
11181118   MCFG_CBM_IEC_ADD(iec_intf, "c1541")
1119   MCFG_C64_EXPANSION_SLOT_ADD(C64_EXPANSION_SLOT_TAG, expansion_intf, c64_expansion_cards, NULL, NULL)
1119   MCFG_C64_EXPANSION_SLOT_ADD(C64_EXPANSION_SLOT_TAG, VIC6567_CLOCK, expansion_intf, c64_expansion_cards, NULL, NULL)
11201120   MCFG_C64_USER_PORT_ADD(C64_USER_PORT_TAG, user_intf, c64_user_port_cards, NULL, NULL)
11211121
11221122   // software list
r14897r14898
11861186   MCFG_CBM_IEC_SLOT_ADD("iec9", 9, cbm_iec_devices, NULL, NULL)
11871187   MCFG_CBM_IEC_SLOT_ADD("iec10", 10, cbm_iec_devices, NULL, NULL)
11881188   MCFG_CBM_IEC_SLOT_ADD("iec11", 11, cbm_iec_devices, NULL, NULL)
1189   MCFG_C64_EXPANSION_SLOT_ADD(C64_EXPANSION_SLOT_TAG, expansion_intf, c64_expansion_cards, NULL, NULL)
1189   MCFG_C64_EXPANSION_SLOT_ADD(C64_EXPANSION_SLOT_TAG, VIC6567_CLOCK, expansion_intf, c64_expansion_cards, NULL, NULL)
11901190   MCFG_C64_USER_PORT_ADD(C64_USER_PORT_TAG, user_intf, c64_user_port_cards, NULL, NULL)
11911191
11921192   // software list
r14897r14898
12471247   MCFG_CBM_IEC_SLOT_ADD("iec9", 9, sx1541_iec_devices, "sx1541", NULL)
12481248   MCFG_CBM_IEC_SLOT_ADD("iec10", 10, cbm_iec_devices, NULL, NULL)
12491249   MCFG_CBM_IEC_SLOT_ADD("iec11", 11, cbm_iec_devices, NULL, NULL)
1250   MCFG_C64_EXPANSION_SLOT_ADD(C64_EXPANSION_SLOT_TAG, expansion_intf, c64_expansion_cards, NULL, NULL)
1250   MCFG_C64_EXPANSION_SLOT_ADD(C64_EXPANSION_SLOT_TAG, VIC6567_CLOCK, expansion_intf, c64_expansion_cards, NULL, NULL)
12511251   MCFG_C64_USER_PORT_ADD(C64_USER_PORT_TAG, user_intf, c64_user_port_cards, NULL, NULL)
12521252
12531253   // software list
r14897r14898
13051305   MCFG_CASSETTE_ADD(CASSETTE_TAG, cbm_cassette_interface)
13061306   MCFG_TIMER_ADD(TIMER_C1531_TAG, cassette_tick)
13071307   MCFG_CBM_IEC_ADD(iec_intf, "c1541")
1308   MCFG_C64_EXPANSION_SLOT_ADD(C64_EXPANSION_SLOT_TAG, expansion_intf, c64_expansion_cards, NULL, NULL)
1308   MCFG_C64_EXPANSION_SLOT_ADD(C64_EXPANSION_SLOT_TAG, VIC6567_CLOCK, expansion_intf, c64_expansion_cards, NULL, NULL)
13091309   MCFG_C64_USER_PORT_ADD(C64_USER_PORT_TAG, user_intf, c64_user_port_cards, NULL, NULL)
13101310
13111311   // software list
r14897r14898
13631363   MCFG_CASSETTE_ADD(CASSETTE_TAG, cbm_cassette_interface)
13641364   MCFG_TIMER_ADD(TIMER_C1531_TAG, cassette_tick)
13651365   MCFG_CBM_IEC_ADD(iec_intf, "c1541")
1366   MCFG_C64_EXPANSION_SLOT_ADD(C64_EXPANSION_SLOT_TAG, expansion_intf, c64_expansion_cards, NULL, NULL)
1366   MCFG_C64_EXPANSION_SLOT_ADD(C64_EXPANSION_SLOT_TAG, VIC6569_CLOCK, expansion_intf, c64_expansion_cards, NULL, NULL)
13671367   MCFG_C64_USER_PORT_ADD(C64_USER_PORT_TAG, user_intf, c64_user_port_cards, NULL, NULL)
13681368
13691369   // software list
r14897r14898
14241424   MCFG_CBM_IEC_SLOT_ADD("iec9", 9, cbm_iec_devices, NULL, NULL)
14251425   MCFG_CBM_IEC_SLOT_ADD("iec10", 10, cbm_iec_devices, NULL, NULL)
14261426   MCFG_CBM_IEC_SLOT_ADD("iec11", 11, cbm_iec_devices, NULL, NULL)
1427   MCFG_C64_EXPANSION_SLOT_ADD(C64_EXPANSION_SLOT_TAG, expansion_intf, c64_expansion_cards, NULL, NULL)
1427   MCFG_C64_EXPANSION_SLOT_ADD(C64_EXPANSION_SLOT_TAG, VIC6569_CLOCK, expansion_intf, c64_expansion_cards, NULL, NULL)
14281428   MCFG_C64_USER_PORT_ADD(C64_USER_PORT_TAG, user_intf, c64_user_port_cards, NULL, NULL)
14291429
14301430   // software list
r14897r14898
14821482   MCFG_CASSETTE_ADD(CASSETTE_TAG, cbm_cassette_interface)
14831483   MCFG_TIMER_ADD(TIMER_C1531_TAG, cassette_tick)
14841484   MCFG_CBM_IEC_ADD(iec_intf, "c1541")
1485   MCFG_C64_EXPANSION_SLOT_ADD(C64_EXPANSION_SLOT_TAG, expansion_intf, c64_expansion_cards, NULL, NULL)
1485   MCFG_C64_EXPANSION_SLOT_ADD(C64_EXPANSION_SLOT_TAG, VIC6569_CLOCK, expansion_intf, c64_expansion_cards, NULL, NULL)
14861486   MCFG_C64_USER_PORT_ADD(C64_USER_PORT_TAG, user_intf, c64_user_port_cards, NULL, NULL)
14871487
14881488   // software list
r14897r14898
15371537   MCFG_MOS6526R1_ADD(MOS6526_1_TAG, VIC6569_CLOCK, cia1_intf)
15381538   MCFG_MOS6526R1_ADD(MOS6526_2_TAG, VIC6569_CLOCK, cia2_intf)
15391539   MCFG_CBM_IEC_BUS_ADD(iec_intf)
1540   MCFG_C64_EXPANSION_SLOT_ADD(C64_EXPANSION_SLOT_TAG, expansion_intf, c64_expansion_cards, NULL, NULL)
1540   MCFG_C64_EXPANSION_SLOT_ADD(C64_EXPANSION_SLOT_TAG, VIC6569_CLOCK, expansion_intf, c64_expansion_cards, NULL, NULL)
15411541   MCFG_C64_USER_PORT_ADD(C64_USER_PORT_TAG, user_intf, c64_user_port_cards, NULL, NULL)
15421542
15431543   // software list
src/mess/mess.mak
r14897r14898
784784   $(MESS_MACHINE)/c64_bn1541.o   \
785785   $(MESS_MACHINE)/c64_comal80.o   \
786786   $(MESS_MACHINE)/c64_cpm.o   \
787   $(MESS_MACHINE)/c64_currah_speech.o   \
787788   $(MESS_MACHINE)/c64_dela_ep256.o   \
788789   $(MESS_MACHINE)/c64_dela_ep64.o   \
789790   $(MESS_MACHINE)/c64_dela_ep7x8.o   \
r14897r14898
11851186$(MESSOBJ)/luxor.a:            \
11861187   $(MESS_DRIVERS)/abc80.o      \
11871188   $(MESS_VIDEO)/abc80.o      \
1189   $(MESS_MACHINE)/abc80kb.o   \
11881190   $(MESS_DRIVERS)/abc80x.o   \
11891191   $(MESS_VIDEO)/abc800.o      \
11901192   $(MESS_MACHINE)/abc800kb.o   \

Previous 15994 Revisions Next


© 1998-2018 The MESS Team