src/mess/machine/abc80kb.c
| r0 | r14898 | |
| 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 | |
| 12 | PCB Layout |
| 13 | ---------- |
| 14 | |
| 15 | KTC 65-01870-001 (dated 1978) |
| 16 | PCB-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 | |
| 33 | Notes: |
| 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 | |
| 45 | PCB Layout |
| 46 | ---------- |
| 47 | |
| 48 | KTC A65-01870-001 (dated 1983) |
| 49 | PCB-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 | |
| 66 | Notes: |
| 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 | |
| 91 | const 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 | |
| 100 | void 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 | |
| 121 | ROM_START( abc80_keyboard ) |
| 122 | ROM_REGION( 0x400, I8048_TAG, 0 ) |
| 123 | ROM_LOAD( "053.z5", 0x0000, 0x0400, NO_DUMP ) |
| 124 | ROM_END |
| 125 | |
| 126 | |
| 127 | //------------------------------------------------- |
| 128 | // rom_region - device-specific ROM region |
| 129 | //------------------------------------------------- |
| 130 | |
| 131 | const 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 | |
| 141 | static ADDRESS_MAP_START( abc80_keyboard_io, AS_IO, 8, abc80_keyboard_device ) |
| 142 | ADDRESS_MAP_END |
| 143 | |
| 144 | |
| 145 | //------------------------------------------------- |
| 146 | // MACHINE_DRIVER( abc80_keyboard ) |
| 147 | //------------------------------------------------- |
| 148 | |
| 149 | static MACHINE_CONFIG_FRAGMENT( abc80_keyboard ) |
| 150 | MCFG_CPU_ADD(I8048_TAG, I8048, XTAL_5_9904MHz) |
| 151 | MCFG_CPU_IO_MAP(abc80_keyboard_io) |
| 152 | MACHINE_CONFIG_END |
| 153 | |
| 154 | |
| 155 | //------------------------------------------------- |
| 156 | // machine_config_additions - device-specific |
| 157 | // machine configurations |
| 158 | //------------------------------------------------- |
| 159 | |
| 160 | machine_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 | |
| 170 | INPUT_PORTS_START( abc80_keyboard ) |
| 171 | INPUT_PORTS_END |
| 172 | |
| 173 | |
| 174 | //------------------------------------------------- |
| 175 | // input_ports - device-specific input ports |
| 176 | //------------------------------------------------- |
| 177 | |
| 178 | ioport_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 | |
| 193 | abc80_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 | |
| 204 | void 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 | |
| 215 | void abc80_keyboard_device::device_reset() |
| 216 | { |
| 217 | } |
| 218 | |
| 219 | |
| 220 | //------------------------------------------------- |
| 221 | // data_r - keyboard data read |
| 222 | //------------------------------------------------- |
| 223 | |
| 224 | READ8_MEMBER( abc80_keyboard_device::data_r ) |
| 225 | { |
| 226 | return 0; |
| 227 | } |
src/mess/machine/abc80kb.h
| r0 | r14898 | |
| 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 | |
| 49 | struct abc80_keyboard_interface |
| 50 | { |
| 51 | devcb_write_line m_out_keydown_cb; |
| 52 | }; |
| 53 | |
| 54 | |
| 55 | // ======================> abc80_keyboard_device |
| 56 | |
| 57 | class abc80_keyboard_device : public device_t, |
| 58 | public abc80_keyboard_interface |
| 59 | { |
| 60 | public: |
| 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 | |
| 71 | protected: |
| 72 | // device-level overrides |
| 73 | virtual void device_config_complete(); |
| 74 | virtual void device_start(); |
| 75 | virtual void device_reset(); |
| 76 | |
| 77 | private: |
| 78 | devcb_resolved_write_line m_out_keydown_func; |
| 79 | |
| 80 | required_device<cpu_device> m_maincpu; |
| 81 | }; |
| 82 | |
| 83 | |
| 84 | // device type definition |
| 85 | extern const device_type ABC80_KEYBOARD; |
| 86 | |
| 87 | |
| 88 | |
| 89 | #endif |
src/mess/machine/c64_currah_speech.c
| r0 | r14898 | |
| 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 | |
| 12 | PCB Layout |
| 13 | ---------- |
| 14 | |
| 15 | |===========================| |
| 16 | |=| | |
| 17 | |=| VLSI | |
| 18 | |=| | |
| 19 | |=| | |
| 20 | |=| ROM | |
| 21 | |=| | |
| 22 | |=| | |
| 23 | |=| SP0256 | |
| 24 | |===========================| |
| 25 | |
| 26 | Notes: |
| 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 | |
| 51 | const device_type C64_CURRAH_SPEECH = &device_creator<c64_currah_speech_cartridge_device>; |
| 52 | |
| 53 | |
| 54 | //------------------------------------------------- |
| 55 | // ROM( c64_currah_speech ) |
| 56 | //------------------------------------------------- |
| 57 | |
| 58 | ROM_START( c64_currah_speech ) |
| 59 | ROM_REGION( 0x800, SP0256_TAG, 0 ) |
| 60 | ROM_LOAD( "sp0256a-al2", 0x000, 0x800, CRC(df8de0b0) SHA1(86fb6d9fef955ac0bc76e0c45c66585946d278a1) ) |
| 61 | ROM_END |
| 62 | |
| 63 | |
| 64 | //------------------------------------------------- |
| 65 | // rom_region - device-specific ROM region |
| 66 | //------------------------------------------------- |
| 67 | |
| 68 | const 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 | |
| 78 | static sp0256_interface sp0256_intf = |
| 79 | { |
| 80 | DEVCB_NULL, |
| 81 | DEVCB_NULL |
| 82 | }; |
| 83 | |
| 84 | |
| 85 | //------------------------------------------------- |
| 86 | // MACHINE_CONFIG_FRAGMENT( c64_currah_speech ) |
| 87 | //------------------------------------------------- |
| 88 | |
| 89 | static 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) |
| 94 | MACHINE_CONFIG_END |
| 95 | |
| 96 | |
| 97 | //------------------------------------------------- |
| 98 | // machine_config_additions - device-specific |
| 99 | // machine configurations |
| 100 | //------------------------------------------------- |
| 101 | |
| 102 | machine_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 | |
| 117 | c64_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 | |
| 129 | void 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 | |
| 140 | void c64_currah_speech_cartridge_device::device_reset() |
| 141 | { |
| 142 | } |
| 143 | |
| 144 | |
| 145 | //------------------------------------------------- |
| 146 | // c64_cd_r - cartridge data read |
| 147 | //------------------------------------------------- |
| 148 | |
| 149 | UINT8 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 | |
| 181 | void 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 | |
| 195 | int 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 | |
| 205 | int c64_currah_speech_cartridge_device::c64_exrom_r() |
| 206 | { |
| 207 | return 1; // TODO |
| 208 | } |
src/mess/machine/c64_currah_speech.h
| r0 | r14898 | |
| 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 | |
| 28 | class c64_currah_speech_cartridge_device : public device_t, |
| 29 | public device_c64_expansion_card_interface |
| 30 | { |
| 31 | public: |
| 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 | |
| 39 | protected: |
| 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 | |
| 51 | private: |
| 52 | required_device<device_t> m_nsp; |
| 53 | |
| 54 | UINT8 *m_rom; |
| 55 | }; |
| 56 | |
| 57 | |
| 58 | // device type definition |
| 59 | extern const device_type C64_CURRAH_SPEECH; |
| 60 | |
| 61 | |
| 62 | #endif |
src/mess/includes/abc80.h
| r14897 | r14898 | |
| 15 | 15 | #include "imagedev/printer.h" |
| 16 | 16 | #include "imagedev/cassette.h" |
| 17 | 17 | #include "machine/abcbus.h" |
| 18 | #include "machine/abc80kb.h" |
| 18 | 19 | #include "machine/abc830.h" |
| 19 | 20 | #include "machine/abc_fd2.h" |
| 20 | 21 | #include "machine/abc_sio.h" |
| r14897 | r14898 | |
| 67 | 68 | : driver_device(mconfig, type, tag), |
| 68 | 69 | m_maincpu(*this, Z80_TAG), |
| 69 | 70 | m_pio(*this, Z80PIO_TAG), |
| 71 | m_psg(*this, SN76477_TAG), |
| 70 | 72 | m_cassette(*this, CASSETTE_TAG), |
| 71 | 73 | m_bus(*this, ABCBUS_TAG), |
| 72 | 74 | m_ram(*this, RAM_TAG) |
| r14897 | r14898 | |
| 74 | 76 | |
| 75 | 77 | required_device<cpu_device> m_maincpu; |
| 76 | 78 | required_device<device_t> m_pio; |
| 79 | required_device<device_t> m_psg; |
| 77 | 80 | required_device<cassette_image_device> m_cassette; |
| 78 | 81 | required_device<abcbus_slot_device> m_bus; |
| 79 | 82 | required_device<ram_device> m_ram; |
| r14897 | r14898 | |
| 85 | 88 | |
| 86 | 89 | void update_screen(bitmap_ind16 &bitmap, const rectangle &cliprect); |
| 87 | 90 | |
| 88 | | DECLARE_READ8_MEMBER( mmu_r ); |
| 89 | | DECLARE_WRITE8_MEMBER( mmu_w ); |
| 91 | DECLARE_READ8_MEMBER( read ); |
| 92 | DECLARE_WRITE8_MEMBER( write ); |
| 90 | 93 | |
| 94 | DECLARE_WRITE_LINE_MEMBER( vco_voltage_w ); |
| 95 | |
| 91 | 96 | DECLARE_READ8_MEMBER( pio_pa_r ); |
| 92 | 97 | DECLARE_READ8_MEMBER( pio_pb_r ); |
| 93 | 98 | DECLARE_WRITE8_MEMBER( pio_pb_w ); |
src/mess/drivers/abc80.c
| r14897 | r14898 | |
| 58 | 58 | DIPSW2 - |
| 59 | 59 | |
| 60 | 60 | |
| 61 | | Keyboard PCB Layout |
| 62 | | ------------------- |
| 63 | | |
| 64 | | KTC 65-01870-001 (dated 1978) |
| 65 | | PCB-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 | | |
| 82 | | Notes: |
| 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 | | |
| 91 | | KTC A65-01870-001 (dated 1983) |
| 92 | | PCB-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 | | |
| 109 | | Notes: |
| 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 | | |
| 117 | 61 | DOS PCB Layout |
| 118 | 62 | -------------- |
| 119 | 63 | |
| r14897 | r14898 | |
| 172 | 116 | - floppy |
| 173 | 117 | - printer |
| 174 | 118 | - IEC |
| 119 | - Metric ABC CAD 1000 |
| 175 | 120 | |
| 176 | 121 | */ |
| 177 | 122 | |
| r14897 | r14898 | |
| 387 | 332 | |
| 388 | 333 | |
| 389 | 334 | //************************************************************************** |
| 390 | | // MEMORY MANAGEMENT UNIT |
| 335 | // MEMORY MANAGEMENT |
| 391 | 336 | //************************************************************************** |
| 392 | 337 | |
| 393 | 338 | //------------------------------------------------- |
| 394 | | // mmu_r - |
| 339 | // read - |
| 395 | 340 | //------------------------------------------------- |
| 396 | 341 | |
| 397 | | READ8_MEMBER( abc80_state::mmu_r ) |
| 342 | READ8_MEMBER( abc80_state::read ) |
| 398 | 343 | { |
| 399 | 344 | UINT8 data = 0xff; |
| 400 | 345 | UINT8 mmu = m_mmu_rom[0x40 | (offset >> 10)]; |
| r14897 | r14898 | |
| 421 | 366 | |
| 422 | 367 | |
| 423 | 368 | //------------------------------------------------- |
| 424 | | // mmu_w - |
| 369 | // write - |
| 425 | 370 | //------------------------------------------------- |
| 426 | 371 | |
| 427 | | WRITE8_MEMBER( abc80_state::mmu_w ) |
| 372 | WRITE8_MEMBER( abc80_state::write ) |
| 428 | 373 | { |
| 429 | 374 | UINT8 mmu = m_mmu_rom[0x40 | (offset >> 10)]; |
| 430 | 375 | |
| r14897 | r14898 | |
| 452 | 397 | // vco_voltage_w - CSG VCO voltage select |
| 453 | 398 | //------------------------------------------------- |
| 454 | 399 | |
| 455 | | WRITE_LINE_DEVICE_HANDLER( vco_voltage_w ) |
| 400 | WRITE_LINE_MEMBER( abc80_state::vco_voltage_w ) |
| 456 | 401 | { |
| 457 | | sn76477_vco_voltage_w(device, state ? 2.5 : 0); |
| 402 | sn76477_vco_voltage_w(m_psg, state ? 2.5 : 0); |
| 458 | 403 | } |
| 459 | 404 | |
| 460 | 405 | |
| r14897 | r14898 | |
| 469 | 414 | |
| 470 | 415 | static ADDRESS_MAP_START( abc80_mem, AS_PROGRAM, 8, abc80_state ) |
| 471 | 416 | ADDRESS_MAP_UNMAP_HIGH |
| 472 | | AM_RANGE(0x0000, 0xffff) AM_READWRITE(mmu_r, mmu_w) |
| 417 | AM_RANGE(0x0000, 0xffff) AM_READWRITE(read, write) |
| 473 | 418 | ADDRESS_MAP_END |
| 474 | 419 | |
| 475 | 420 | |
| r14897 | r14898 | |
| 506 | 451 | |
| 507 | 452 | PORT_START("SN76477") |
| 508 | 453 | 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) |
| 510 | 455 | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_SPECIAL) PORT_WRITE_LINE_DEVICE(SN76477_TAG, sn76477_vco_w) |
| 511 | 456 | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_SPECIAL) PORT_WRITE_LINE_DEVICE(SN76477_TAG, sn76477_mixer_b_w) |
| 512 | 457 | PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_SPECIAL) PORT_WRITE_LINE_DEVICE(SN76477_TAG, sn76477_mixer_a_w) |
| r14897 | r14898 | |
| 688 | 633 | SLOT_INTERFACE("sio", ABC_SIO) |
| 689 | 634 | SLOT_INTERFACE_END |
| 690 | 635 | |
| 691 | | |
| 692 | 636 | static ABCBUS_INTERFACE( abcbus_intf ) |
| 693 | 637 | { |
| 694 | 638 | DEVCB_NULL, |
| r14897 | r14898 | |
| 698 | 642 | }; |
| 699 | 643 | |
| 700 | 644 | |
| 645 | //------------------------------------------------- |
| 646 | // ABC80_KEYBOARD_INTERFACE( kb_intf ) |
| 647 | //------------------------------------------------- |
| 701 | 648 | |
| 649 | static ABC80_KEYBOARD_INTERFACE( kb_intf ) |
| 650 | { |
| 651 | DEVCB_NULL |
| 652 | }; |
| 653 | |
| 654 | |
| 655 | |
| 702 | 656 | //************************************************************************** |
| 703 | 657 | // MACHINE INITIALIZATION |
| 704 | 658 | //************************************************************************** |
| r14897 | r14898 | |
| 753 | 707 | MCFG_PRINTER_ADD("printer") |
| 754 | 708 | MCFG_CASSETTE_ADD(CASSETTE_TAG, abc80_cassette_interface) |
| 755 | 709 | MCFG_ABC830_ADD() |
| 710 | MCFG_ABC80_KEYBOARD_ADD(kb_intf) |
| 756 | 711 | |
| 757 | 712 | // ABC bus |
| 758 | 713 | MCFG_ABCBUS_SLOT_ADD(ABCBUS_TAG, abcbus_intf, abc80_abcbus_cards, "slow", NULL) |
| r14897 | r14898 | |
| 791 | 746 | ROM_LOAD( "iec", 0x7000, 0x0400, NO_DUMP ) |
| 792 | 747 | ROM_LOAD( "printer", 0x7800, 0x0400, NO_DUMP ) |
| 793 | 748 | |
| 794 | | ROM_REGION( 0x200, "keyboard", 0 ) |
| 795 | | ROM_LOAD( "053.z5", 0x0000, 0x0200, NO_DUMP ) // 82S141 512x8 |
| 796 | | |
| 797 | 749 | ROM_REGION( 0xa00, "chargen", 0 ) |
| 798 | 750 | ROM_LOAD( "sn74s263.h2", 0x0000, 0x0a00, BAD_DUMP CRC(9e064e91) SHA1(354783c8f2865f73dc55918c9810c66f3aca751f) ) // created by hand |
| 799 | 751 | |
src/mess/drivers/c64.c
| r14897 | r14898 | |
| 1116 | 1116 | MCFG_CASSETTE_ADD(CASSETTE_TAG, cbm_cassette_interface) |
| 1117 | 1117 | MCFG_TIMER_ADD(TIMER_C1531_TAG, cassette_tick) |
| 1118 | 1118 | 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) |
| 1120 | 1120 | MCFG_C64_USER_PORT_ADD(C64_USER_PORT_TAG, user_intf, c64_user_port_cards, NULL, NULL) |
| 1121 | 1121 | |
| 1122 | 1122 | // software list |
| r14897 | r14898 | |
| 1186 | 1186 | MCFG_CBM_IEC_SLOT_ADD("iec9", 9, cbm_iec_devices, NULL, NULL) |
| 1187 | 1187 | MCFG_CBM_IEC_SLOT_ADD("iec10", 10, cbm_iec_devices, NULL, NULL) |
| 1188 | 1188 | 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) |
| 1190 | 1190 | MCFG_C64_USER_PORT_ADD(C64_USER_PORT_TAG, user_intf, c64_user_port_cards, NULL, NULL) |
| 1191 | 1191 | |
| 1192 | 1192 | // software list |
| r14897 | r14898 | |
| 1247 | 1247 | MCFG_CBM_IEC_SLOT_ADD("iec9", 9, sx1541_iec_devices, "sx1541", NULL) |
| 1248 | 1248 | MCFG_CBM_IEC_SLOT_ADD("iec10", 10, cbm_iec_devices, NULL, NULL) |
| 1249 | 1249 | 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) |
| 1251 | 1251 | MCFG_C64_USER_PORT_ADD(C64_USER_PORT_TAG, user_intf, c64_user_port_cards, NULL, NULL) |
| 1252 | 1252 | |
| 1253 | 1253 | // software list |
| r14897 | r14898 | |
| 1305 | 1305 | MCFG_CASSETTE_ADD(CASSETTE_TAG, cbm_cassette_interface) |
| 1306 | 1306 | MCFG_TIMER_ADD(TIMER_C1531_TAG, cassette_tick) |
| 1307 | 1307 | 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) |
| 1309 | 1309 | MCFG_C64_USER_PORT_ADD(C64_USER_PORT_TAG, user_intf, c64_user_port_cards, NULL, NULL) |
| 1310 | 1310 | |
| 1311 | 1311 | // software list |
| r14897 | r14898 | |
| 1363 | 1363 | MCFG_CASSETTE_ADD(CASSETTE_TAG, cbm_cassette_interface) |
| 1364 | 1364 | MCFG_TIMER_ADD(TIMER_C1531_TAG, cassette_tick) |
| 1365 | 1365 | 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) |
| 1367 | 1367 | MCFG_C64_USER_PORT_ADD(C64_USER_PORT_TAG, user_intf, c64_user_port_cards, NULL, NULL) |
| 1368 | 1368 | |
| 1369 | 1369 | // software list |
| r14897 | r14898 | |
| 1424 | 1424 | MCFG_CBM_IEC_SLOT_ADD("iec9", 9, cbm_iec_devices, NULL, NULL) |
| 1425 | 1425 | MCFG_CBM_IEC_SLOT_ADD("iec10", 10, cbm_iec_devices, NULL, NULL) |
| 1426 | 1426 | 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) |
| 1428 | 1428 | MCFG_C64_USER_PORT_ADD(C64_USER_PORT_TAG, user_intf, c64_user_port_cards, NULL, NULL) |
| 1429 | 1429 | |
| 1430 | 1430 | // software list |
| r14897 | r14898 | |
| 1482 | 1482 | MCFG_CASSETTE_ADD(CASSETTE_TAG, cbm_cassette_interface) |
| 1483 | 1483 | MCFG_TIMER_ADD(TIMER_C1531_TAG, cassette_tick) |
| 1484 | 1484 | 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) |
| 1486 | 1486 | MCFG_C64_USER_PORT_ADD(C64_USER_PORT_TAG, user_intf, c64_user_port_cards, NULL, NULL) |
| 1487 | 1487 | |
| 1488 | 1488 | // software list |
| r14897 | r14898 | |
| 1537 | 1537 | MCFG_MOS6526R1_ADD(MOS6526_1_TAG, VIC6569_CLOCK, cia1_intf) |
| 1538 | 1538 | MCFG_MOS6526R1_ADD(MOS6526_2_TAG, VIC6569_CLOCK, cia2_intf) |
| 1539 | 1539 | 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) |
| 1541 | 1541 | MCFG_C64_USER_PORT_ADD(C64_USER_PORT_TAG, user_intf, c64_user_port_cards, NULL, NULL) |
| 1542 | 1542 | |
| 1543 | 1543 | // software list |