diff options
Diffstat (limited to 'src/mess/drivers')
| -rw-r--r-- | src/mess/drivers/a7800.c | 2 | ||||
| -rw-r--r-- | src/mess/drivers/aim65.c | 22 | ||||
| -rw-r--r-- | src/mess/drivers/apollo.c | 12 | ||||
| -rw-r--r-- | src/mess/drivers/applix.c | 1 | ||||
| -rw-r--r-- | src/mess/drivers/d6800.c | 10 | ||||
| -rw-r--r-- | src/mess/drivers/esq1.c | 81 | ||||
| -rw-r--r-- | src/mess/drivers/horizon.c | 42 | ||||
| -rw-r--r-- | src/mess/drivers/ie15.c | 94 | ||||
| -rw-r--r-- | src/mess/drivers/microkit.c | 4 | ||||
| -rw-r--r-- | src/mess/drivers/ngp.c | 2 | ||||
| -rw-r--r-- | src/mess/drivers/pc.c | 4 | ||||
| -rw-r--r-- | src/mess/drivers/pet.c | 2 | ||||
| -rw-r--r-- | src/mess/drivers/sms.c | 24 | ||||
| -rw-r--r-- | src/mess/drivers/softbox.c | 26 | ||||
| -rw-r--r-- | src/mess/drivers/ts802.c | 6 |
15 files changed, 165 insertions, 167 deletions
diff --git a/src/mess/drivers/a7800.c b/src/mess/drivers/a7800.c index f40c1e1be0a..db69ae22df7 100644 --- a/src/mess/drivers/a7800.c +++ b/src/mess/drivers/a7800.c @@ -44,7 +44,7 @@ 2013/04/07 Robert Tuccitto Address map locations for the XBOARD added. - 2013/05/01 Robert Tuccitto Red and Blue miscalculated proportions + 2013/05/01 Robert Tuccitto Red and Blue miscalculated proportions fixed. ***************************************************************************/ diff --git a/src/mess/drivers/aim65.c b/src/mess/drivers/aim65.c index e09f935cb0c..8eb10084eea 100644 --- a/src/mess/drivers/aim65.c +++ b/src/mess/drivers/aim65.c @@ -274,18 +274,18 @@ DEVICE_IMAGE_LOAD_MEMBER( aim65_state, aim65_cart ) UINT32 size; UINT8 *temp_copy; const struct aim_cart_range *aim_cart = &aim_cart_table[0], *this_cart; - + /* First, determine where this cart has to be loaded */ while (aim_cart->tag) { if (strcmp(aim_cart->tag, image.device().tag()) == 0) break; - + aim_cart++; } - + this_cart = aim_cart; - + if (!this_cart->tag) { astring errmsg; @@ -293,19 +293,19 @@ DEVICE_IMAGE_LOAD_MEMBER( aim65_state, aim65_cart ) image.seterror(IMAGE_ERROR_UNSPECIFIED, errmsg.cstr()); return IMAGE_INIT_FAIL; } - + if (image.software_entry() == NULL) { size = image.length(); temp_copy = auto_alloc_array(machine(), UINT8, size); - + if (size > 0x1000) { image.seterror(IMAGE_ERROR_UNSPECIFIED, "Unsupported cartridge size"); auto_free(machine(), temp_copy); return IMAGE_INIT_FAIL; } - + if (image.fread(temp_copy, size) != size) { image.seterror(IMAGE_ERROR_UNSPECIFIED, "Unable to fully read from file"); @@ -318,8 +318,8 @@ DEVICE_IMAGE_LOAD_MEMBER( aim65_state, aim65_cart ) if (image.get_software_region(this_cart->tag + 1) == NULL) { astring errmsg; - errmsg.printf("Attempted to load file with wrong extension\nCartslot '%s' only accepts files with '.%s' extension", - this_cart->tag, this_cart->tag + 1); + errmsg.printf("Attempted to load file with wrong extension\nCartslot '%s' only accepts files with '.%s' extension", + this_cart->tag, this_cart->tag + 1); image.seterror(IMAGE_ERROR_UNSPECIFIED, errmsg.cstr()); return IMAGE_INIT_FAIL; } @@ -330,9 +330,9 @@ DEVICE_IMAGE_LOAD_MEMBER( aim65_state, aim65_cart ) } memcpy(memregion("maincpu")->base() + this_cart->offset, temp_copy, size); - + auto_free(machine(), temp_copy); - + return IMAGE_INIT_PASS; } diff --git a/src/mess/drivers/apollo.c b/src/mess/drivers/apollo.c index d66a5826344..f049622ea2a 100644 --- a/src/mess/drivers/apollo.c +++ b/src/mess/drivers/apollo.c @@ -808,8 +808,8 @@ static ADDRESS_MAP_START(dsp3500_map, AS_PROGRAM, 32, apollo_state ) // AM_RANGE(0x05d800, 0x05dc07) AM_DEVREADWRITE8_LEGACY(APOLLO_SCREEN_TAG, apollo_mcr_r, apollo_mcr_w, 0xffffffff) // AM_RANGE(0xfa0000, 0xfdffff) AM_DEVREADWRITE16_LEGACY(APOLLO_SCREEN_TAG, apollo_mgm_r, apollo_mgm_w, 0xffffffff) // -// AM_RANGE(0x05e800, 0x05ec07) AM_DEVREADWRITE8_LEGACY(APOLLO_SCREEN_TAG, apollo_ccr_r, apollo_ccr_w, 0xffffffff) -// AM_RANGE(0x0a0000, 0x0bffff) AM_DEVREADWRITE16_LEGACY(APOLLO_SCREEN_TAG, apollo_cgm_r, apollo_cgm_w, 0xffffffff) +// AM_RANGE(0x05e800, 0x05ec07) AM_DEVREADWRITE8_LEGACY(APOLLO_SCREEN_TAG, apollo_ccr_r, apollo_ccr_w, 0xffffffff) +// AM_RANGE(0x0a0000, 0x0bffff) AM_DEVREADWRITE16_LEGACY(APOLLO_SCREEN_TAG, apollo_cgm_r, apollo_cgm_w, 0xffffffff) AM_RANGE(ATBUS_IO_BASE, ATBUS_IO_END) AM_READWRITE16(apollo_atbus_io_r, apollo_atbus_io_w, 0xffffffff) @@ -891,8 +891,8 @@ static ADDRESS_MAP_START(dsp3000_map, AS_PROGRAM, 32, apollo_state ) // AM_RANGE(0x05d800, 0x05dc07) AM_DEVREADWRITE8_LEGACY(APOLLO_SCREEN_TAG, apollo_mcr_r, apollo_mcr_w, 0xffffffff) // AM_RANGE(0xfa0000, 0xfdffff) AM_DEVREADWRITE16_LEGACY(APOLLO_SCREEN_TAG, apollo_mgm_r, apollo_mgm_w, 0xffffffff) // -// AM_RANGE(0x05e800, 0x05ec07) AM_DEVREADWRITE8_LEGACY(APOLLO_SCREEN_TAG, apollo_ccr_r, apollo_ccr_w, 0xffffffff) -// AM_RANGE(0x0a0000, 0x0bffff) AM_DEVREADWRITE16_LEGACY(APOLLO_SCREEN_TAG, apollo_cgm_r, apollo_cgm_w, 0xffffffff) +// AM_RANGE(0x05e800, 0x05ec07) AM_DEVREADWRITE8_LEGACY(APOLLO_SCREEN_TAG, apollo_ccr_r, apollo_ccr_w, 0xffffffff) +// AM_RANGE(0x0a0000, 0x0bffff) AM_DEVREADWRITE16_LEGACY(APOLLO_SCREEN_TAG, apollo_cgm_r, apollo_cgm_w, 0xffffffff) AM_RANGE(ATBUS_IO_BASE, ATBUS_IO_END) AM_READWRITE16(apollo_atbus_io_r, apollo_atbus_io_w, 0xffffffff) @@ -994,8 +994,8 @@ static ADDRESS_MAP_START(dsp5500_map, AS_PROGRAM, 32, apollo_state ) // AM_RANGE(0x05d800, 0x05dc07) AM_DEVREADWRITE8_LEGACY(APOLLO_SCREEN_TAG, apollo_mcr_r, apollo_mcr_w, 0xffffffff) // AM_RANGE(0xfa0000, 0xfdffff) AM_DEVREADWRITE16_LEGACY(APOLLO_SCREEN_TAG, apollo_mgm_r, apollo_mgm_w, 0xffffffff) // -// AM_RANGE(0x05e800, 0x05ec07) AM_DEVREADWRITE8_LEGACY(APOLLO_SCREEN_TAG, apollo_ccr_r, apollo_ccr_w, 0xffffffff) -// AM_RANGE(0x0a0000, 0x0bffff) AM_DEVREADWRITE16_LEGACY(APOLLO_SCREEN_TAG, apollo_cgm_r, apollo_cgm_w, 0xffffffff) +// AM_RANGE(0x05e800, 0x05ec07) AM_DEVREADWRITE8_LEGACY(APOLLO_SCREEN_TAG, apollo_ccr_r, apollo_ccr_w, 0xffffffff) +// AM_RANGE(0x0a0000, 0x0bffff) AM_DEVREADWRITE16_LEGACY(APOLLO_SCREEN_TAG, apollo_cgm_r, apollo_cgm_w, 0xffffffff) AM_RANGE(ATBUS_IO_BASE, ATBUS_IO_END) AM_READWRITE16(apollo_atbus_io_r, apollo_atbus_io_w, 0xffffffff) diff --git a/src/mess/drivers/applix.c b/src/mess/drivers/applix.c index faee500e141..62b242a8e8d 100644 --- a/src/mess/drivers/applix.c +++ b/src/mess/drivers/applix.c @@ -241,7 +241,6 @@ static MC6845_UPDATE_ROW( applix_update_row ) for (x = 0; x < x_count; x++) { - if (BIT(state->m_pa, 3)) // 640 x 200 x 4of16 mode { diff --git a/src/mess/drivers/d6800.c b/src/mess/drivers/d6800.c index 48787943f3a..b6088a133c8 100644 --- a/src/mess/drivers/d6800.c +++ b/src/mess/drivers/d6800.c @@ -287,10 +287,10 @@ READ8_MEMBER( d6800_state::d6800_cassette_r ) WRITE8_MEMBER( d6800_state::d6800_cassette_w ) { /* - A NE556 runs at either 1200 or 2400 Hz, depending on the state of bit 0. - This output drives the speaker and the output signal to the cassette player. - Bit 6 enables the speaker. Also the speaker is silenced when cassette operations - are in progress (DMA/CB2 line low). + A NE556 runs at either 1200 or 2400 Hz, depending on the state of bit 0. + This output drives the speaker and the output signal to the cassette player. + Bit 6 enables the speaker. Also the speaker is silenced when cassette operations + are in progress (DMA/CB2 line low). */ m_beeper->set_frequency(BIT(data, 0) ? 2400 : 1200); @@ -307,7 +307,7 @@ READ8_MEMBER( d6800_state::d6800_keyboard_r ) */ UINT8 data = m_io_x0->read() & m_io_x1->read() & m_io_x2->read() & m_io_x3->read() - & m_io_y0->read() & m_io_y1->read() & m_io_y2->read() & m_io_y3->read(); + & m_io_y0->read() & m_io_y1->read() & m_io_y2->read() & m_io_y3->read(); return data; } diff --git a/src/mess/drivers/esq1.c b/src/mess/drivers/esq1.c index 74a3dbb6a4c..23dff5bbdc4 100644 --- a/src/mess/drivers/esq1.c +++ b/src/mess/drivers/esq1.c @@ -170,8 +170,8 @@ NOTES: Note that this may be incorrect, maybe to sum of squares should be constant, the half-point should be at -3dB and the linearity in dB space. - - + + ***************************************************************************/ #include "emu.h" @@ -188,7 +188,7 @@ NOTES: #define WD1772_TAG "wd1772" class esq1_filters : public device_t, - public device_sound_interface + public device_sound_interface { public: // construction/destruction @@ -225,7 +225,7 @@ static const device_type ESQ1_FILTERS = &device_creator<esq1_filters>; esq1_filters::esq1_filters(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, ESQ1_FILTERS, "ESQ1 Filters stage", tag, owner, clock, "esq1-filters", __FILE__), - device_sound_interface(mconfig, *this) + device_sound_interface(mconfig, *this) { } @@ -278,11 +278,11 @@ void esq1_filters::recalc_filter(filter &f) double g = 6060*exp(vfc/28.5); double zc = g/tan(g/2/44100); -/* if(f.vfc) { - double ff = g/(2*M_PI); - double fzc = 2*M_PI*ff/tan(M_PI*ff/44100); - fprintf(stderr, "%02x f=%f zc=%f zc1=%f\n", f.vfc, g/(2*M_PI), zc, fzc); - }*/ +/* if(f.vfc) { + double ff = g/(2*M_PI); + double fzc = 2*M_PI*ff/tan(M_PI*ff/44100); + fprintf(stderr, "%02x f=%f zc=%f zc1=%f\n", f.vfc, g/(2*M_PI), zc, fzc); + }*/ double gzc = zc/g; double gzc2 = gzc*gzc; @@ -302,10 +302,10 @@ void esq1_filters::recalc_filter(filter &f) f.b[3] = 4*(r1 - 2*gzc + 2*gzc3 - gzc4); f.b[4] = r1 - 4*gzc + 6*gzc2 - 4*gzc3 + gzc4; -/* if(f.vfc != 0) - for(int i=0; i<5; i++) - printf("a%d=%f\nb%d=%f\n", - i, f.a[i], i, f.b[i]);*/ +/* if(f.vfc != 0) + for(int i=0; i<5; i++) + printf("a%d=%f\nb%d=%f\n", + i, f.a[i], i, f.b[i]);*/ // Amplification stage double vca = f.vca*(5.0/255.0); @@ -336,15 +336,15 @@ void esq1_filters::device_start() void esq1_filters::sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples) { -/* if(0) { - for(int i=0; i<8; i++) - fprintf(stderr, " [%02x %02x %02x %02x]", - filters[i].vca, - filters[i].vpan, - filters[i].vq, - filters[i].vfc); - fprintf(stderr, "\n"); - }*/ +/* if(0) { + for(int i=0; i<8; i++) + fprintf(stderr, " [%02x %02x %02x %02x]", + filters[i].vca, + filters[i].vpan, + filters[i].vq, + filters[i].vfc); + fprintf(stderr, "\n"); + }*/ for(int i=0; i<samples; i++) { double l=0, r=0; @@ -365,11 +365,11 @@ void esq1_filters::sound_stream_update(sound_stream &stream, stream_sample_t **i static double maxl = 0; if(l > maxl) { maxl = l; -// fprintf(stderr, "%f\n", maxl); +// fprintf(stderr, "%f\n", maxl); } -// l *= 6553; -// r *= 6553; +// l *= 6553; +// r *= 6553; l *= 2; r *= 2; outputs[0][i] = l < -32768 ? -32768 : l > 32767 ? 32767 : int(l); @@ -532,7 +532,7 @@ ADDRESS_MAP_END WRITE_LINE_MEMBER(esq1_state::duart_irq_handler) { - m_maincpu->set_input_line(M6809_IRQ_LINE, state); + m_maincpu->set_input_line(M6809_IRQ_LINE, state); }; READ8_MEMBER(esq1_state::duart_input) @@ -555,31 +555,31 @@ WRITE8_MEMBER(esq1_state::duart_output) // MIDI send WRITE_LINE_MEMBER(esq1_state::duart_tx_a) { - m_mdout->tx(state); + m_mdout->tx(state); } WRITE_LINE_MEMBER(esq1_state::duart_tx_b) { - m_panel->rx_w(state); + m_panel->rx_w(state); } void esq1_state::send_through_panel(UINT8 data) { - m_panel->xmit_char(data); + m_panel->xmit_char(data); } INPUT_CHANGED_MEMBER(esq1_state::key_stroke) { - if (oldval == 0 && newval == 1) - { - send_through_panel((UINT8)(FPTR)param); - send_through_panel((UINT8)(FPTR)0x00); - } - else if (oldval == 1 && newval == 0) - { - send_through_panel((UINT8)(FPTR)param&0x7f); - send_through_panel((UINT8)(FPTR)0x00); - } + if (oldval == 0 && newval == 1) + { + send_through_panel((UINT8)(FPTR)param); + send_through_panel((UINT8)(FPTR)0x00); + } + else if (oldval == 1 && newval == 0) + { + send_through_panel((UINT8)(FPTR)param&0x7f); + send_through_panel((UINT8)(FPTR)0x00); + } } static SLOT_INTERFACE_START(midiin_slot) @@ -707,7 +707,7 @@ ROM_END ROM_START( esqm ) ROM_REGION(0x10000, "osrom", 0) - ROM_LOAD( "1355500157_d640_esq-m_oshi.u14", 0x8000, 0x008000, CRC(ea6a7bae) SHA1(2830f8c52dc443b4ca469dc190b33e2ff15b78e1) ) + ROM_LOAD( "1355500157_d640_esq-m_oshi.u14", 0x8000, 0x008000, CRC(ea6a7bae) SHA1(2830f8c52dc443b4ca469dc190b33e2ff15b78e1) ) ROM_REGION(0x20000, "es5503", 0) ROM_LOAD( "esq1wavlo.bin", 0x0000, 0x8000, CRC(4d04ac87) SHA1(867b51229b0a82c886bf3b216aa8893748236d8b) ) @@ -718,4 +718,3 @@ ROM_END CONS( 1986, esq1, 0 , 0, esq1, esq1, driver_device, 0, "Ensoniq", "ESQ-1", GAME_NOT_WORKING ) CONS( 1986, esqm, esq1, 0, esq1, esq1, driver_device, 0, "Ensoniq", "ESQ-M", GAME_NOT_WORKING ) CONS( 1988, sq80, 0, 0, sq80, esq1, driver_device, 0, "Ensoniq", "SQ-80", GAME_NOT_WORKING ) - diff --git a/src/mess/drivers/horizon.c b/src/mess/drivers/horizon.c index f4ddb2498a0..92aa0c3faec 100644 --- a/src/mess/drivers/horizon.c +++ b/src/mess/drivers/horizon.c @@ -8,25 +8,25 @@ succesfully loaded. The memory range EA00-EB40 appears to be used by devices, particularly the FDC. - http://www.hartetechnologies.com/manuals/Northstar/ + http://www.hartetechnologies.com/manuals/Northstar/ ****************************************************************************/ /* - TODO: + TODO: - - connect to S-100 bus - - USARTs - - parallel I/O - - motherboard ports - - RTC - - RAM boards - - floppy boards - - floating point board - - SOROC IQ 120 CRT terminal - - NEC 5530-2 SPINWRITER printer - - Anadex DP-8000 printer + - connect to S-100 bus + - USARTs + - parallel I/O + - motherboard ports + - RTC + - RAM boards + - floppy boards + - floating point board + - SOROC IQ 120 CRT terminal + - NEC 5530-2 SPINWRITER printer + - Anadex DP-8000 printer */ @@ -38,20 +38,20 @@ #include "machine/s100_nsmdsa.h" #include "machine/s100_nsmdsad.h" -#define Z80_TAG "z80" -#define I8251_L_TAG "3a" -#define I8251_R_TAG "4a" -#define RS232_A_TAG "rs232a" -#define RS232_B_TAG "rs232b" +#define Z80_TAG "z80" +#define I8251_L_TAG "3a" +#define I8251_R_TAG "4a" +#define RS232_A_TAG "rs232a" +#define RS232_B_TAG "rs232b" class horizon_state : public driver_device { public: horizon_state(const machine_config &mconfig, device_type type, const char *tag) : driver_device(mconfig, type, tag), - m_maincpu(*this, Z80_TAG), - m_usart_l(*this, I8251_L_TAG), - m_usart_r(*this, I8251_L_TAG) + m_maincpu(*this, Z80_TAG), + m_usart_l(*this, I8251_L_TAG), + m_usart_r(*this, I8251_L_TAG) { } required_device<cpu_device> m_maincpu; diff --git a/src/mess/drivers/ie15.c b/src/mess/drivers/ie15.c index 29b9550dfcb..49d832ad9cc 100644 --- a/src/mess/drivers/ie15.c +++ b/src/mess/drivers/ie15.c @@ -6,9 +6,9 @@ 29/06/2012 Skeleton driver. - A serial (RS232 or current loop) green-screen terminal, mostly VT52 compatible - (no Hold Screen mode and no graphics character set, but has Cyrillic characters). - The top line is a status line. + A serial (RS232 or current loop) green-screen terminal, mostly VT52 compatible + (no Hold Screen mode and no graphics character set, but has Cyrillic characters). + The top line is a status line. ****************************************************************************/ @@ -18,19 +18,19 @@ #include "machine/keyboard.h" #include "sound/beep.h" -#define SCREEN_PAGE (80*48) +#define SCREEN_PAGE (80*48) -#define IE_1 0x80 -#define IE_KB_ACK 1 +#define IE_1 0x80 +#define IE_KB_ACK 1 -#define IE15_TOTAL_HORZ 1000 -#define IE15_TOTAL_VERT 28*11 +#define IE15_TOTAL_HORZ 1000 +#define IE15_TOTAL_VERT 28*11 -#define IE15_DISP_HORZ 800 -#define IE15_DISP_VERT 25*11 +#define IE15_DISP_HORZ 800 +#define IE15_DISP_VERT 25*11 -#define IE15_HORZ_START 100 -#define IE15_VERT_START 2*11 +#define IE15_HORZ_START 100 +#define IE15_VERT_START 2*11 #define VERBOSE_DBG 1 /* general debug messages */ @@ -50,7 +50,7 @@ #define LOOPBACK (0) #endif -#define BITBANGER_TAG "bitbanger" +#define BITBANGER_TAG "bitbanger" class ie15_state : public driver_device { @@ -296,9 +296,9 @@ READ8_MEMBER( ie15_state::serial_r ) { } /* - m_serial_rx_buffer incoming bits. - m_serial_rx_bits number of bits in _buffer. - m_serial_rx_data complete byte, ready to be read by host, or 0 if no data. + m_serial_rx_buffer incoming bits. + m_serial_rx_bits number of bits in _buffer. + m_serial_rx_data complete byte, ready to be read by host, or 0 if no data. */ WRITE_LINE_MEMBER( ie15_state::serial_rx_callback ) @@ -333,7 +333,7 @@ WRITE_LINE_MEMBER( ie15_state::serial_rx_callback ) // overflow break; } - DBG_LOG(2,"serial",("r %d bits %02d->%02d buffer %02X data %02X\n", + DBG_LOG(2,"serial",("r %d bits %02d->%02d buffer %02X data %02X\n", state, tmp, m_serial_rx_bits, m_serial_rx_buffer, m_serial_rx_data)); } @@ -380,13 +380,13 @@ READ8_MEMBER( ie15_state::flag_r ) { switch (offset) { - case 0: // hsync pulse (not hblank) + case 0: // hsync pulse (not hblank) ret = machine().primary_screen->hpos() < IE15_HORZ_START; break; - case 1: // marker scanline + case 1: // marker scanline ret = (machine().primary_screen->vpos() % 11) > 7; break; - case 2: // vblank + case 2: // vblank ret = !machine().primary_screen->vblank(); break; case 4: @@ -436,22 +436,22 @@ ADDRESS_MAP_END static ADDRESS_MAP_START(ie15_io, AS_IO, 8, ie15_state) ADDRESS_MAP_UNMAP_HIGH - AM_RANGE(000, 000) AM_READ(mem_r) AM_WRITE(mem_w) // 00h W: memory request, R: memory data [6.1.2.2] - AM_RANGE(001, 001) AM_READ(serial_rx_ready_r) AM_WRITENOP // 01h W: memory latch [6.1.2.2] - AM_RANGE(002, 002) AM_WRITE(mem_addr_hi_w) // 02h W: memory address high [6.1.2.2] - AM_RANGE(003, 003) AM_WRITE(mem_addr_lo_w) // 03h W: memory address low [6.1.2.2] - AM_RANGE(004, 004) AM_WRITE(mem_addr_inc_w) // 04h W: memory address counter + [6.1.2.2] - AM_RANGE(005, 005) AM_WRITE(mem_addr_dec_w) // 05h W: memory address counter - [6.1.2.2] - AM_RANGE(006, 006) AM_READ(serial_r) AM_WRITE(serial_w) // 06h W: serial port data [6.1.5.4] + AM_RANGE(000, 000) AM_READ(mem_r) AM_WRITE(mem_w) // 00h W: memory request, R: memory data [6.1.2.2] + AM_RANGE(001, 001) AM_READ(serial_rx_ready_r) AM_WRITENOP // 01h W: memory latch [6.1.2.2] + AM_RANGE(002, 002) AM_WRITE(mem_addr_hi_w) // 02h W: memory address high [6.1.2.2] + AM_RANGE(003, 003) AM_WRITE(mem_addr_lo_w) // 03h W: memory address low [6.1.2.2] + AM_RANGE(004, 004) AM_WRITE(mem_addr_inc_w) // 04h W: memory address counter + [6.1.2.2] + AM_RANGE(005, 005) AM_WRITE(mem_addr_dec_w) // 05h W: memory address counter - [6.1.2.2] + AM_RANGE(006, 006) AM_READ(serial_r) AM_WRITE(serial_w) // 06h W: serial port data [6.1.5.4] // port 7 is handled in cpu core - AM_RANGE(010, 010) AM_READ(serial_tx_ready_r) AM_WRITE(beep_w) // 08h W: speaker control [6.1.5.4] - AM_RANGE(011, 011) AM_READ(kb_r) // 09h R: keyboard data [6.1.5.2] - AM_RANGE(012, 012) AM_READ(kb_s_red_r) // 0Ah I: keyboard mode "RED" [6.1.5.2] - AM_RANGE(013, 013) AM_READ(kb_ready_r) // 0Bh R: keyboard data ready [6.1.5.2] - AM_RANGE(014, 014) AM_READ(kb_s_sdv_r) AM_WRITENOP // 0Ch W: serial port speed [6.1.3.1], R: keyboard mode "SDV" [6.1.5.2] - AM_RANGE(015, 015) AM_READ(kb_s_dk_r) AM_WRITE(kb_ready_w) // 0Dh I: keyboard mode "DK" [6.1.5.2] - AM_RANGE(016, 016) AM_READ(kb_s_dupl_r) // 0Eh I: keyboard mode "DUPL" [6.1.5.2] - AM_RANGE(017, 017) AM_READ(kb_s_lin_r) // 0Fh I: keyboard mode "LIN" [6.1.5.2] + AM_RANGE(010, 010) AM_READ(serial_tx_ready_r) AM_WRITE(beep_w) // 08h W: speaker control [6.1.5.4] + AM_RANGE(011, 011) AM_READ(kb_r) // 09h R: keyboard data [6.1.5.2] + AM_RANGE(012, 012) AM_READ(kb_s_red_r) // 0Ah I: keyboard mode "RED" [6.1.5.2] + AM_RANGE(013, 013) AM_READ(kb_ready_r) // 0Bh R: keyboard data ready [6.1.5.2] + AM_RANGE(014, 014) AM_READ(kb_s_sdv_r) AM_WRITENOP // 0Ch W: serial port speed [6.1.3.1], R: keyboard mode "SDV" [6.1.5.2] + AM_RANGE(015, 015) AM_READ(kb_s_dk_r) AM_WRITE(kb_ready_w) // 0Dh I: keyboard mode "DK" [6.1.5.2] + AM_RANGE(016, 016) AM_READ(kb_s_dupl_r) // 0Eh I: keyboard mode "DUPL" [6.1.5.2] + AM_RANGE(017, 017) AM_READ(kb_s_lin_r) // 0Fh I: keyboard mode "LIN" [6.1.5.2] // simulation of flag registers AM_RANGE(020, 027) AM_READ(flag_r) AM_WRITE(flag_w) ADDRESS_MAP_END @@ -531,12 +531,12 @@ UINT32 ie15_state::draw_scanline(UINT16 *p, UINT16 offset, UINT8 scanline, UINT8 gfx = m_p_chargen[chr | ra]; /* - Cursor is a character with only 3 scan lines, and is - not shown if flag 1 is not active on this scan line. - It always blinks if shown. + Cursor is a character with only 3 scan lines, and is + not shown if flag 1 is not active on this scan line. + It always blinks if shown. - Control characters blink if RED mode is on and they - are not on status line; else they are blanked out. + Control characters blink if RED mode is on and they + are not on status line; else they are blanked out. */ if (scanline > 7 && (!m_cursor || blink)) @@ -577,8 +577,8 @@ UINT32 ie15_state::draw_scanline(UINT16 *p, UINT16 offset, UINT8 scanline, UINT8 TIMER_DEVICE_CALLBACK_MEMBER(ie15_state::scanline_callback) { UINT16 y = machine().primary_screen->vpos(); -// DBG_LOG(2,"scanline", -// ("addr %03x frame %lld x %04d y %03d\n", m_videoptr_2, machine().primary_screen->frame_number(), machine().primary_screen->hpos(), y)); +// DBG_LOG(2,"scanline", +// ("addr %03x frame %lld x %04d y %03d\n", m_videoptr_2, machine().primary_screen->frame_number(), machine().primary_screen->hpos(), y)); if (y>=IE15_VERT_START) { y -= IE15_VERT_START; if (y < IE15_DISP_VERT) { @@ -597,15 +597,15 @@ UINT32 ie15_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, co /* F4 Character Displayer */ static const gfx_layout ie15_charlayout = { - 7, 8, /* 7x8 pixels in 10x11 cell */ - 256, /* 256 characters */ - 1, /* 1 bits per pixel */ - { 0 }, /* no bitplanes */ + 7, 8, /* 7x8 pixels in 10x11 cell */ + 256, /* 256 characters */ + 1, /* 1 bits per pixel */ + { 0 }, /* no bitplanes */ /* x offsets */ { 0, 1, 2, 3, 4, 5, 6 }, /* y offsets */ { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 }, - 8*8 /* every char takes 8 bytes */ + 8*8 /* every char takes 8 bytes */ }; static GFXDECODE_START( ie15 ) diff --git a/src/mess/drivers/microkit.c b/src/mess/drivers/microkit.c index 00563144ba3..fb4c59c6d43 100644 --- a/src/mess/drivers/microkit.c +++ b/src/mess/drivers/microkit.c @@ -1,8 +1,8 @@ /* - RCA COSMAC Microkit + RCA COSMAC Microkit - http://www.vintagecomputer.net/browse_thread.cfm?id=511 + http://www.vintagecomputer.net/browse_thread.cfm?id=511 */ diff --git a/src/mess/drivers/ngp.c b/src/mess/drivers/ngp.c index e6e5e8ecf8f..939450f4fdd 100644 --- a/src/mess/drivers/ngp.c +++ b/src/mess/drivers/ngp.c @@ -677,7 +677,7 @@ void ngp_state::machine_start() m_seconds_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(ngp_state::ngp_seconds_callback),this)); m_seconds_timer->adjust( attotime::from_seconds(1), 0, attotime::from_seconds(1) ); - + save_item(NAME(m_io_reg)); save_item(NAME(m_old_to3)); // TODO: check if these are handled correctly... diff --git a/src/mess/drivers/pc.c b/src/mess/drivers/pc.c index 0a78a125b04..13c092e0f2c 100644 --- a/src/mess/drivers/pc.c +++ b/src/mess/drivers/pc.c @@ -1419,7 +1419,7 @@ static MACHINE_CONFIG_START( mc1502, pc_state ) MCFG_FLOPPY_DRIVE_ADD("fd1", mc1502_floppies, "525qd", 0, pc_state::floppy_formats) MCFG_SOFTWARE_LIST_ADD("flop_list","mc1502_flop") -// MCFG_SOFTWARE_LIST_ADD("cass_list","mc1502_cass") +// MCFG_SOFTWARE_LIST_ADD("cass_list","mc1502_cass") /* internal ram */ MCFG_RAM_ADD(RAM_TAG) @@ -2169,7 +2169,7 @@ ROM_START( ec1845 ) ROMX_LOAD( "184505.bin", 0xfe001, 0x0800, CRC(c807e3f5) SHA1(08117e449f0d04f96041cff8d34893f500f3760d), ROM_SKIP(1)) ROMX_LOAD( "184506.bin", 0xff000, 0x0800, CRC(24f5c27c) SHA1(7822dd7f715ef00ccf6d8408be8bbfe01c2eba20), ROM_SKIP(1)) ROMX_LOAD( "184507.bin", 0xff001, 0x0800, CRC(75122203) SHA1(7b0fbdf1315230633e39574ac7360163bc7361e1), ROM_SKIP(1)) - ROM_REGION(0x2000,"gfx1", ROMREGION_ERASE00) + ROM_REGION(0x2000,"gfx1", ROMREGION_ERASE00) ROM_END ROM_START( asst128 ) diff --git a/src/mess/drivers/pet.c b/src/mess/drivers/pet.c index a2f96f94895..065285b0052 100644 --- a/src/mess/drivers/pet.c +++ b/src/mess/drivers/pet.c @@ -462,7 +462,7 @@ WRITE8_MEMBER( cbm8296_state::write ) if (!endra) { //logerror("%s write %04x : cswff %u cs9 %u csa %u csio %u cse %u cskb %u fa12 %u casena1 %u endra %u noscreen %u casena2 %u fa15 %u\n",machine().describe_context(),offset,cswff,cs9,csa,csio,cse,cskb,fa12,casena1,endra,noscreen,casena2,fa15); - + offs_t drma = fa15 << 15 | (offset & 0x7e00) | BIT(offset, 0) << 8 | (offset & 0x1fe) >> 1; if (!casena1) diff --git a/src/mess/drivers/sms.c b/src/mess/drivers/sms.c index 87635621cfb..ac20862c916 100644 --- a/src/mess/drivers/sms.c +++ b/src/mess/drivers/sms.c @@ -87,7 +87,7 @@ Notes: (All ICs shown) IC6/IC7 D4168- NEC D4168 8k x8 SRAM (DIP28) IC8 7805 - Motorola MC7805 voltage regulator (7v to 25v input, 5v output) IC9 CXA1145 - Sony CXA1145 RGB to composite video encoder IC (DIP24) - POWER_IN - Power input from AC/DC power pack. System requires 9VDC at 500mA. Center pin is negative and + POWER_IN - Power input from AC/DC power pack. System requires 9VDC at 500mA. Center pin is negative and outer barrel is positive. Note this is opposite to regular DC power packs RF_OUT - RF modulator with RF signal output to TV POWER_SW - Power on/off switch @@ -97,16 +97,16 @@ Notes: (All ICs shown) VSync - 49.7015Hz -Cart PCB Examples +Cart PCB Examples ----------------- -Note! There are many more types of PCBs & custom chip matching variations. This document -is not meant to provide all details of every type in existence. Some games have been +Note! There are many more types of PCBs & custom chip matching variations. This document +is not meant to provide all details of every type in existence. Some games have been found on different types of ROM boards with and without bankswitching hardware. Type with no bankswitching hardware 171-5519 \ no visible difference? -171-5519D/ +171-5519D/ |------------------| ||----------| | || DIP28 | | @@ -123,8 +123,8 @@ Notes: World Grand Prix MPR-11074 Black Belt MPR-10150 Ghost House MPR-12586 - - + + Types with bankswitching hardware 171-5713D (uses 315-5235) @@ -142,7 +142,7 @@ Types with bankswitching hardware |IC2 | |------------------| Notes: - SDIP42 - Custom Sega bankswitch chip at location IC1. There are several different + SDIP42 - Custom Sega bankswitch chip at location IC1. There are several different types of these chips with different 315-xxxx numbers These include 315-5235 (DIP42), 315-5208 (DIP28) and 315-5365 (DIP42) and possibly others. DIP32 - 1MBit/2MBit/4MBit mask ROM (DIP32) at location IC2 @@ -167,7 +167,7 @@ Notes: | | |----------------| Notes: - SDIP42 - Custom Sega bankswitch chip at location IC1. There are several different + SDIP42 - Custom Sega bankswitch chip at location IC1. There are several different types of these chips with different 315-xxxx numbers These include 315-5235 (DIP42), 315-5208 (DIP28) and 315-5365 (DIP42) and possibly others. DIP40 - 2MBit/4Mbit 16-bit mask ROM (DIP40) at location IC2 @@ -175,10 +175,10 @@ Notes: Game Name Sega ROM ID Bank Chip ----------------------------------------- Space Harrier MPR-10410 315-5235 - -Another ROM board 171-5497 used by Monopoly has 315-5235 DIP42 mapper chip, DIP28 mask ROM, a DIP8 chip (unknown), + +Another ROM board 171-5497 used by Monopoly has 315-5235 DIP42 mapper chip, DIP28 mask ROM, a DIP8 chip (unknown), DIP28 SRAM (likely 8k) and a 3V coin battery. -Yet another type of ROM board with unknown PCB number used by Phantasy Star has 315-5235 DIP42 mapper chip, DIP32 mask +Yet another type of ROM board with unknown PCB number used by Phantasy Star has 315-5235 DIP42 mapper chip, DIP32 mask ROM and DIP28 SRAM (likely 8k) and a 3V coin battery. Unfortunatley the majority of these ROM boards, ROM types and MPR-xxxxx Sega part numbers are undocumented because they were mostly dumped from the edge connector without being opened. diff --git a/src/mess/drivers/softbox.c b/src/mess/drivers/softbox.c index aed5c083622..807a2f78f8f 100644 --- a/src/mess/drivers/softbox.c +++ b/src/mess/drivers/softbox.c @@ -1,8 +1,8 @@ /* - SSE SoftBox + SSE SoftBox - http://mikenaberezny.com/hardware/pet-cbm/sse-softbox-z80-computer/ + http://mikenaberezny.com/hardware/pet-cbm/sse-softbox-z80-computer/ */ @@ -193,14 +193,14 @@ READ8_MEMBER( softbox_state::pia1_pc_r ) bit description - PC0 - PC1 - PC2 - PC3 + PC0 + PC1 + PC2 + PC3 PC4 Corvus READY PC5 Corvus ACTIVE - PC6 - PC7 + PC6 + PC7 */ @@ -216,11 +216,11 @@ WRITE8_MEMBER( softbox_state::pia1_pc_w ) PC0 LED "A" PC1 LED "B" PC2 LED "READY" - PC3 - PC4 - PC5 - PC6 - PC7 + PC3 + PC4 + PC5 + PC6 + PC7 */ diff --git a/src/mess/drivers/ts802.c b/src/mess/drivers/ts802.c index 68e5be8598a..43193e28f17 100644 --- a/src/mess/drivers/ts802.c +++ b/src/mess/drivers/ts802.c @@ -7,10 +7,10 @@ TODO: - Everything - this is just a skeleton - + Technical manual at: http://bitsavers.org/pdf/televideo/TS800A_TS802_TS802H_Maintenance_Manual_1982.pdf - + includes in-depth discussion of the inner workings of the WD1000 HDD controller. ****************************************************************************/ @@ -49,7 +49,7 @@ ADDRESS_MAP_END static ADDRESS_MAP_START(ts802_io, AS_IO, 8, ts802_state) //ADDRESS_MAP_UNMAP_HIGH ADDRESS_MAP_GLOBAL_MASK(0xff) - AM_RANGE(0x00, 0x00) AM_READ(port00_r) // DIP switches + AM_RANGE(0x00, 0x00) AM_READ(port00_r) // DIP switches // 04 - written once after OS boot to bank in RAM from 0000-3FFF instead of ROM. 4000-FFFF is always RAM. // 08-0B: Z80 CTC // 0C-0F: Z80 SIO #1 |
