src/mess/machine/s100_wunderbus.c
| r11946 | r11947 | |
| 164 | 164 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 165 | 165 | PORT_DIPNAME( 0x3e, 0x12, "BASE Port Address" ) PORT_DIPLOCATION("7C:2,3,4,5,6") |
| 166 | 166 | PORT_DIPSETTING( 0x00, "00H" ) |
| 167 | | // ... |
| 167 | PORT_DIPSETTING( 0x02, "08H" ) |
| 168 | PORT_DIPSETTING( 0x04, "10H" ) |
| 169 | PORT_DIPSETTING( 0x06, "18H" ) |
| 170 | PORT_DIPSETTING( 0x08, "20H" ) |
| 171 | PORT_DIPSETTING( 0x0a, "28H" ) |
| 172 | PORT_DIPSETTING( 0x0c, "30H" ) |
| 173 | PORT_DIPSETTING( 0x0e, "38H" ) |
| 174 | PORT_DIPSETTING( 0x10, "40H" ) |
| 168 | 175 | PORT_DIPSETTING( 0x12, "48H" ) |
| 169 | | // ... |
| 176 | PORT_DIPSETTING( 0x14, "50H" ) |
| 177 | PORT_DIPSETTING( 0x16, "58H" ) |
| 178 | PORT_DIPSETTING( 0x18, "60H" ) |
| 179 | PORT_DIPSETTING( 0x1a, "68H" ) |
| 180 | PORT_DIPSETTING( 0x1c, "70H" ) |
| 181 | PORT_DIPSETTING( 0x1e, "78H" ) |
| 182 | PORT_DIPSETTING( 0x20, "80H" ) |
| 183 | PORT_DIPSETTING( 0x22, "88H" ) |
| 184 | PORT_DIPSETTING( 0x24, "90H" ) |
| 185 | PORT_DIPSETTING( 0x26, "98H" ) |
| 186 | PORT_DIPSETTING( 0x28, "A0H" ) |
| 187 | PORT_DIPSETTING( 0x2a, "A8H" ) |
| 188 | PORT_DIPSETTING( 0x2c, "B0H" ) |
| 189 | PORT_DIPSETTING( 0x2e, "B8H" ) |
| 190 | PORT_DIPSETTING( 0x30, "C0H" ) |
| 191 | PORT_DIPSETTING( 0x32, "C8H" ) |
| 192 | PORT_DIPSETTING( 0x34, "D0H" ) |
| 193 | PORT_DIPSETTING( 0x36, "D8H" ) |
| 194 | PORT_DIPSETTING( 0x38, "E0H" ) |
| 195 | PORT_DIPSETTING( 0x3a, "E8H" ) |
| 196 | PORT_DIPSETTING( 0x3c, "F0H" ) |
| 170 | 197 | PORT_DIPSETTING( 0x3e, "F8H" ) |
| 171 | 198 | PORT_DIPNAME( 0x40, 0x40, "FLAG2 Polarity" ) PORT_DIPLOCATION("7C:7") |
| 172 | 199 | PORT_DIPSETTING( 0x40, "Negative" ) |
| r11946 | r11947 | |
| 296 | 323 | |
| 297 | 324 | if ((offset & 0x07) < 7) |
| 298 | 325 | { |
| 299 | | switch (m_wb_group) |
| 326 | switch (m_group) |
| 300 | 327 | { |
| 301 | 328 | case 0: |
| 302 | 329 | switch (offset & 0x07) |
| r11946 | r11947 | |
| 403 | 430 | |
| 404 | 431 | if ((offset & 0x07) == 7) |
| 405 | 432 | { |
| 406 | | m_wb_group = data; |
| 433 | m_group = data; |
| 407 | 434 | } |
| 408 | 435 | else |
| 409 | 436 | { |
| 410 | | switch (m_wb_group) |
| 437 | switch (m_group) |
| 411 | 438 | { |
| 412 | 439 | case 0: |
| 413 | 440 | switch (offset & 0x07) |
src/mess/machine/s100.h
| r11946 | r11947 | |
| 1 | 1 | /********************************************************************** |
| 2 | 2 | |
| 3 | | S-100 (IEEE-696/1983) bus emulation |
| 3 | S-100 (IEEE Std 696-1983) bus emulation |
| 4 | 4 | |
| 5 | 5 | Copyright MESS Team. |
| 6 | 6 | Visit http://mamedev.org for licensing and usage restrictions. |
| 7 | 7 | |
| 8 | ********************************************************************** |
| 9 | |
| 10 | +8 V (B) 1 51 +8 V (B) |
| 11 | +16 V (B) 2 52 -16 V (B) |
| 12 | XRDY (S) 3 53 0 V |
| 13 | VI0* (S) 4 54 SLAVE CLR* (B) |
| 14 | VI1* (S) 5 55 TMA0* (M) |
| 15 | VI2* (S) 6 56 TMA1* (M) |
| 16 | VI3* (S) 7 57 TMA2* (M) |
| 17 | VI4* (S) 8 58 sXTRQ* (M) |
| 18 | VI5* (S) 9 59 A19 (M) |
| 19 | VI6* (S) 10 60 SIXTN* (S) |
| 20 | VI7* (S) 11 61 A20 (M) |
| 21 | NMI* (S) 12 62 A21 (M) |
| 22 | PWRFAIL* (B) 13 63 A22 (M) |
| 23 | TMA3* (M) 14 64 A23 (M) |
| 24 | A18 (M) 15 65 NDEF |
| 25 | A16 (M) 16 66 NDEF |
| 26 | A17 (M) 17 67 PHANTOM* (M/S) |
| 27 | SDSB* (M) 18 68 MWRT (B) |
| 28 | CDSB* (M) 19 69 RFU |
| 29 | 0 V 20 70 0 V |
| 30 | NDEF 21 71 RFU |
| 31 | ADSB* (M) 22 72 RDY (S) |
| 32 | DODSB* (M) 23 73 INT* (S) |
| 33 | phi (B) 24 74 HOLD* (M) |
| 34 | pSTVAL* (M) 25 75 RESET* (B) |
| 35 | pHLDA (M) 26 76 pSYNC (M) |
| 36 | RFU 27 77 pWR* (M) |
| 37 | RFU 28 78 pDBIN (M) |
| 38 | A5 (M) 29 79 A0 (M) |
| 39 | A4 (M) 30 80 A1 (M) |
| 40 | A3 (M) 31 81 A2 (M) |
| 41 | A15 (M) 32 82 A6 (M) |
| 42 | A12 (M) 33 83 A7 (M) |
| 43 | A9 (M) 34 84 A8 (M) |
| 44 | DO1 (M)/ED1 (M/S) 35 85 A13 (M) |
| 45 | DO0 (M)/ED0 (M/S) 36 86 A14 (M) |
| 46 | A10 (M) 37 87 A11 (M) |
| 47 | DO4 (M)/ED4 (M/S) 38 88 DO2 (M)/ED2 (M/S) |
| 48 | DO5 (M)/ED5 (M/S) 39 89 DO3 (M)/ED3 (M/S) |
| 49 | DO6 (M)/ED6 (M/S) 40 90 DO7 (M)/ED7 (M/S) |
| 50 | DI2 (M)/OD2 (M/S) 41 91 DI4 (M)/OD4 (M/S) |
| 51 | DI3 (M)/OD3 (M/S) 42 92 DI5 (M)/OD5 (M/S) |
| 52 | DI7 (M)/OD7 (M/S) 43 93 DI6 (M)/OD6 (M/S) |
| 53 | sM1 (M) 44 94 DI1 (M)/OD1 (M/S) |
| 54 | sOUT (M) 45 95 DI0 (M)/OD0 (M/S) |
| 55 | sINP (M) 46 96 sINTA (M) |
| 56 | sMEMR (M) 47 97 sWO* (M) |
| 57 | sHLTA (M) 48 98 ERROR* (S) |
| 58 | CLOCK (B) 49 99 POC* (B) |
| 59 | 0 V 50 100 0 V |
| 60 | |
| 8 | 61 | **********************************************************************/ |
| 9 | 62 | |
| 10 | 63 | #pragma once |
| r11946 | r11947 | |
| 15 | 68 | #include "emu.h" |
| 16 | 69 | |
| 17 | 70 | |
| 71 | |
| 72 | //************************************************************************** |
| 73 | // CONSTANTS |
| 74 | //************************************************************************** |
| 18 | 75 | |
| 76 | #define S100_TAG "s100" |
| 77 | |
| 78 | |
| 79 | #define MAX_S100_SLOTS 16 |
| 80 | |
| 81 | |
| 82 | |
| 19 | 83 | //************************************************************************** |
| 20 | 84 | // INTERFACE CONFIGURATION MACROS |
| 21 | 85 | //************************************************************************** |
| 22 | 86 | |
| 23 | | #define MCFG_S100_BUS_ADD(_tag, _cpu_tag, _config) \ |
| 24 | | MCFG_DEVICE_ADD(_tag, S100, 0) \ |
| 87 | #define MCFG_S100_BUS_ADD(_cpu_tag, _config) \ |
| 88 | MCFG_DEVICE_ADD(S100_TAG, S100, 0) \ |
| 25 | 89 | MCFG_DEVICE_CONFIG(_config) \ |
| 26 | 90 | s100_device::static_set_cputag(*device, _cpu_tag); \ |
| 27 | 91 | |
| r11946 | r11947 | |
| 30 | 94 | const s100_bus_interface (_name) = |
| 31 | 95 | |
| 32 | 96 | |
| 33 | | #define MCFG_S100_SLOT_ADD(_bus_tag, _num, _tag, _slot_intf, _def_slot) \ |
| 97 | #define MCFG_S100_SLOT_ADD(_num, _tag, _slot_intf, _def_slot) \ |
| 34 | 98 | MCFG_DEVICE_ADD(_tag, S100_SLOT, 0) \ |
| 35 | 99 | MCFG_DEVICE_SLOT_INTERFACE(_slot_intf, _def_slot) \ |
| 36 | | s100_slot_device::static_set_s100_slot(*device, _bus_tag, _num); \ |
| 100 | s100_slot_device::static_set_s100_slot(*device, S100_TAG, _num); \ |
| 37 | 101 | |
| 38 | | |
| 39 | | //************************************************************************** |
| 40 | | // CONSTANTS |
| 41 | | //************************************************************************** |
| 42 | 102 | |
| 43 | | #define MAX_S100_SLOTS 16 |
| 44 | 103 | |
| 45 | | |
| 46 | | |
| 47 | 104 | //************************************************************************** |
| 48 | 105 | // TYPE DEFINITIONS |
| 49 | 106 | //************************************************************************** |
src/mess/drivers/mpz80.c
| r11946 | r11947 | |
| 11 | 11 | TODO: |
| 12 | 12 | |
| 13 | 13 | - trap logic |
| 14 | - reset trap |
| 14 | 15 | - memory management |
| 15 | 16 | - task RAM |
| 16 | 17 | - mapping RAM |
| r11946 | r11947 | |
| 18 | 19 | - front panel LEDs |
| 19 | 20 | - keyboard |
| 20 | 21 | - I/O |
| 21 | | - Mult I/O |
| 22 | - Mult I/O (8259A PIC, 3x 8250 ACE, uPD1990C RTC, 4K ROM/RAM) |
| 22 | 23 | - Wunderbus I/O (8259A PIC, 3x 8250 ACE, uPD1990C RTC) |
| 23 | 24 | - floppy |
| 24 | 25 | - DJ/DMA controller (Z80, 1K RAM, 2/4K ROM, TTL floppy control logic) for 5.25" floppy drives |
| r11946 | r11947 | |
| 27 | 28 | - HDC/DMA controller (Seagate ST-506/Shugart SA1000) |
| 28 | 29 | - HDCA controller (Shugart SA4000/Fujitsu M2301B/Winchester M2320B) |
| 29 | 30 | - memory |
| 30 | | - MM65KS (65K RAM, expandable to 1 MB) |
| 31 | - MM65K16S (64K RAM, expandable to 1 MB) |
| 31 | 32 | - AM9512 FPU |
| 32 | 33 | - models |
| 33 | 34 | - Decision I Desk Top Model D1 (MPZ80, MM65KS, Wunderbus) |
| r11946 | r11947 | |
| 98 | 99 | UINT32 addr = get_address(offset); |
| 99 | 100 | UINT8 data = 0; |
| 100 | 101 | |
| 101 | | if (addr < 0x1000) |
| 102 | if (((m_task & 0x0f) == 0) && (addr < 0x1000)) |
| 102 | 103 | { |
| 103 | 104 | if (addr < 0x400) |
| 104 | 105 | { |
| r11946 | r11947 | |
| 152 | 153 | { |
| 153 | 154 | UINT32 addr = get_address(offset); |
| 154 | 155 | |
| 155 | | if (addr < 0x1000) |
| 156 | if (((m_task & 0x0f) == 0) && (addr < 0x1000)) |
| 156 | 157 | { |
| 157 | 158 | if (addr < 0x400) |
| 158 | 159 | { |
| r11946 | r11947 | |
| 461 | 462 | |
| 462 | 463 | static ADDRESS_MAP_START( mpz80_io, AS_IO, 8, mpz80_state ) |
| 463 | 464 | AM_RANGE(0x0000, 0xffff) AM_READWRITE(mmu_io_r, mmu_io_w) |
| 464 | | // AM_RANGE(0x48, 0x4f) AM_READWRITE(wunderbus_r, wunderbus_w) |
| 465 | | // AM_RANGE(0x80, 0x80) HD/DMA |
| 466 | 465 | ADDRESS_MAP_END |
| 467 | 466 | |
| 468 | 467 | |
| r11946 | r11947 | |
| 594 | 593 | static SLOT_INTERFACE_START( mpz80_s100_cards ) |
| 595 | 594 | SLOT_INTERFACE("wunderbus", S100_WUNDERBUS) |
| 596 | 595 | // SLOT_INTERFACE("multio", S100_MULTIO) |
| 597 | | // SLOT_INTERFACE("mm65ks", S100_MM65KS) |
| 596 | // SLOT_INTERFACE("mm65k16s", S100_MM65K16S) |
| 598 | 597 | // SLOT_INTERFACE("djdma", S100_DJDMA) |
| 599 | 598 | // SLOT_INTERFACE("dj2db", S100_DJ2DB) |
| 600 | 599 | // SLOT_INTERFACE("hdcdma", S100_HDCDMA) |
| r11946 | r11947 | |
| 645 | 644 | MCFG_FRAGMENT_ADD( generic_terminal ) |
| 646 | 645 | |
| 647 | 646 | // S-100 |
| 648 | | MCFG_S100_BUS_ADD(S100_TAG, Z80_TAG, s100_intf) |
| 649 | | MCFG_S100_SLOT_ADD(S100_TAG, 1, "s100_1", mpz80_s100_cards, NULL)//"mm65ks") |
| 650 | | MCFG_S100_SLOT_ADD(S100_TAG, 2, "s100_2", mpz80_s100_cards, "wunderbus") |
| 651 | | MCFG_S100_SLOT_ADD(S100_TAG, 3, "s100_3", mpz80_s100_cards, NULL)//"djdma") |
| 652 | | MCFG_S100_SLOT_ADD(S100_TAG, 4, "s100_4", mpz80_s100_cards, NULL)//"hdcdma") |
| 653 | | MCFG_S100_SLOT_ADD(S100_TAG, 5, "s100_5", mpz80_s100_cards, NULL) |
| 654 | | MCFG_S100_SLOT_ADD(S100_TAG, 6, "s100_6", mpz80_s100_cards, NULL) |
| 655 | | MCFG_S100_SLOT_ADD(S100_TAG, 7, "s100_7", mpz80_s100_cards, NULL) |
| 656 | | MCFG_S100_SLOT_ADD(S100_TAG, 8, "s100_8", mpz80_s100_cards, NULL) |
| 657 | | MCFG_S100_SLOT_ADD(S100_TAG, 9, "s100_9", mpz80_s100_cards, NULL) |
| 658 | | MCFG_S100_SLOT_ADD(S100_TAG, 10, "s100_10", mpz80_s100_cards, NULL) |
| 659 | | MCFG_S100_SLOT_ADD(S100_TAG, 11, "s100_11", mpz80_s100_cards, NULL) |
| 660 | | MCFG_S100_SLOT_ADD(S100_TAG, 12, "s100_12", mpz80_s100_cards, NULL) |
| 661 | | MCFG_S100_SLOT_ADD(S100_TAG, 13, "s100_13", mpz80_s100_cards, NULL) |
| 662 | | MCFG_S100_SLOT_ADD(S100_TAG, 14, "s100_14", mpz80_s100_cards, NULL) |
| 647 | MCFG_S100_BUS_ADD(Z80_TAG, s100_intf) |
| 648 | MCFG_S100_SLOT_ADD( 1, "s100_1", mpz80_s100_cards, NULL)//"mm65k16s") |
| 649 | MCFG_S100_SLOT_ADD( 2, "s100_2", mpz80_s100_cards, "wunderbus") |
| 650 | MCFG_S100_SLOT_ADD( 3, "s100_3", mpz80_s100_cards, NULL)//"djdma") |
| 651 | MCFG_S100_SLOT_ADD( 4, "s100_4", mpz80_s100_cards, NULL)//"hdcdma") |
| 652 | MCFG_S100_SLOT_ADD( 5, "s100_5", mpz80_s100_cards, NULL) |
| 653 | MCFG_S100_SLOT_ADD( 6, "s100_6", mpz80_s100_cards, NULL) |
| 654 | MCFG_S100_SLOT_ADD( 7, "s100_7", mpz80_s100_cards, NULL) |
| 655 | MCFG_S100_SLOT_ADD( 8, "s100_8", mpz80_s100_cards, NULL) |
| 656 | MCFG_S100_SLOT_ADD( 9, "s100_9", mpz80_s100_cards, NULL) |
| 657 | MCFG_S100_SLOT_ADD(10, "s100_10", mpz80_s100_cards, NULL) |
| 658 | MCFG_S100_SLOT_ADD(11, "s100_11", mpz80_s100_cards, NULL) |
| 659 | MCFG_S100_SLOT_ADD(12, "s100_12", mpz80_s100_cards, NULL) |
| 660 | MCFG_S100_SLOT_ADD(13, "s100_13", mpz80_s100_cards, NULL) |
| 661 | MCFG_S100_SLOT_ADD(14, "s100_14", mpz80_s100_cards, NULL) |
| 663 | 662 | |
| 664 | 663 | // devices |
| 665 | 664 | MCFG_FLOPPY_DRIVE_ADD(FLOPPY_0, mpz80_floppy_config) |