| Previous | 15994 Revisions | Next |
| r9428 Thursday 21st October, 2010 at 11:46:32 UTC by Nathan Woods |
|---|
| Updated to MAME 0.140 core |
| [ROOT] | whatsnew.txt |
| [docs] | messnew.txt |
| [src/emu] | emucore.h machine.c render.c render.h rendlay.c rendlay.h video.c |
| [src/emu/cpu] | cpu.mak |
| [src/emu/cpu/cosmac] | cosmac.c cosmac.h |
| [src/emu/cpu/dsp56k] | dsp56k.c |
| [src/emu/drivers] | emudummy.c* |
| [src/emu/sound] | asc.c asc.h cdp1869.c cdp1869.h disc_dev.c discrete.h |
| [src/ldplayer] | ldplayer.mak |
| [src/mame] | mame.mak mamedriv.c tiny.c tiny.mak |
| [src/mame/audio] | dkong.c exidy.c |
| [src/mame/drivers] | 1942.c 1943.c 40love.c 4enraya.c acommand.c aristmk4.c balsente.c blktiger.c cdi.c cidelsa.c coolridr.c cps2.c cybertnk.c galdrvr.c magtouch.c* megadriv.c nmk16.c nss.c sfbonus.c snk.c |
| [src/mame/includes] | balsente.h cdi.h cidelsa.h |
| [src/mame/machine] | cdi070.c cdi070.h cdicdic.c cdislave.c |
| [src/mame/video] | balsente.c blktiger.c cidelsa.c |
| [src/mess] | mess.mak |
| [src/osd/windows] | winmain.c winprefix.h |
| r9427 | r9428 | |
|---|---|---|
| 944 | 944 | |
| 945 | 945 | static ADDRESS_MAP_START( cvsd_iomap, ADDRESS_SPACE_IO, 8 ) |
| 946 | 946 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 947 | AM_RANGE(0x00, 0xff) AM_DEVREADWRITE(" | |
| 947 | AM_RANGE(0x00, 0xff) AM_DEVREADWRITE("custom", mtrap_voiceio_r, mtrap_voiceio_w) | |
| 948 | 948 | ADDRESS_MAP_END |
| 949 | 949 | |
| 950 | 950 |
| r9427 | r9428 | |
|---|---|---|
| 21 | 21 | /* Set to 1 to use faster custom mixer */ |
| 22 | 22 | #define DK_USE_CUSTOM (1) |
| 23 | 23 | |
| 24 | #define USE_LS629 ( | |
| 24 | #define USE_LS629 (1) /* set to use new LS624 code */ | |
| 25 | 25 | |
| 26 | 26 | /* Issue surrounded by this define need to be analyzed and |
| 27 | 27 | * reviewed at a later time. |
| r9427 | r9428 | |
| 893 | 893 | |
| 894 | 894 | DISCRETE_TASK_START(1) |
| 895 | 895 | DISCRETE_LOGIC_INVERT(DS_SOUND7,DS_SOUND7_INV) |
| 896 | DISCRETE_COUNTER(NODE_100, 1, 0, NODE_118, 0, 0x | |
| 896 | DISCRETE_COUNTER(NODE_100, 1, 0, NODE_118, 0, 0x3FFF, DISC_COUNT_UP, 0, DISC_CLK_BY_COUNT) | |
| 897 | 897 | |
| 898 | 898 | DISCRETE_BIT_DECODE(NODE_101, NODE_100, 6, 1) /*LS157 2A */ |
| 899 | 899 | DISCRETE_BIT_DECODE(NODE_102, NODE_100, 3, 1) /*LS157 2B */ |
| r9427 | r9428 | |
| 901 | 901 | DISCRETE_BIT_DECODE(NODE_104, NODE_100, 11, 1) /*LS157 3B */ |
| 902 | 902 | |
| 903 | 903 | /* LS157 Switches */ |
| 904 | ||
| 904 | // DISCRETE_SWITCH(NODE_105, 1, DS_SOUND7_INV, GND, NODE_113) /* Switch 1 from LS624 */ | |
| 905 | 905 | DISCRETE_SWITCH(NODE_106, 1, DS_SOUND7_INV, NODE_101, NODE_102) /* Switch 2 */ |
| 906 | 906 | DISCRETE_SWITCH(NODE_107, 1, DS_SOUND7_INV, NODE_103, NODE_104) /* Switch 3 */ |
| 907 | 907 | |
| r9427 | r9428 | |
| 909 | 909 | DISCRETE_SWITCH(NODE_111, /* invert voltage */ |
| 910 | 910 | 1, NODE_110, /* ENAB, SWITCH */ |
| 911 | 911 | TTL_HIGH, 0) /* INP0, INP1 */ |
| 912 | DISCRETE_RCFILTER(NODE_112, NODE_111, JR_R10, JR_C17) | |
| 912 | ||
| 913 | /* Breadboarded measurements IC 5K, pin 7 | |
| 914 | D.R. Oct 2010 | |
| 915 | V Hz | |
| 916 | 0.151 3139 | |
| 917 | 0.25 2883 | |
| 918 | 0.5 2820 | |
| 919 | 0.75 3336 | |
| 920 | 1 3805 | |
| 921 | 2 6498 | |
| 922 | 3 9796 | |
| 923 | 4 13440 | |
| 924 | 4.14 13980 | |
| 925 | */ | |
| 926 | ||
| 913 | 927 | #if (USE_LS629) |
| 914 | 928 | DISCRETE_74LS629(NODE_113, /* IC 5K, pin 7 */ |
| 915 | 929 | 1, /* ENAB */ |
| 916 | NODE_112, DK_SUP_V, /* VMOD, VRNG */ | |
| 917 | JR_C18, JR_R10, /* C, R_FREQ_IN */ | |
| 930 | NODE_111, DK_SUP_V, /* VMOD, VRNG */ | |
| 931 | JR_C18, JR_R10, JR_C17, /* C, R_FREQ_IN, C_FREQ_IN */ | |
| 918 | 932 | DISC_LS624_OUT_ENERGY) |
| 919 | 933 | #else |
| 934 | DISCRETE_RCFILTER(NODE_112, NODE_111, JR_R10, JR_C17) | |
| 920 | 935 | DISCRETE_74LS624(NODE_113, NODE_112, DK_SUP_V, JR_C18, DISC_LS624_OUT_ENERGY) |
| 921 | 936 | #endif |
| 937 | DISCRETE_SWITCH(NODE_105, 1, DS_SOUND7_INV, GND, NODE_113) /* Switch 1 from LS624 */ | |
| 922 | 938 | |
| 923 | 939 | DISCRETE_LOGIC_XOR(NODE_115, NODE_105, NODE_106) |
| 924 | 940 | |
| 925 | 941 | DISCRETE_SWITCH(NODE_116, /* invert with TTL voltage */ |
| 926 | 942 | 1, NODE_107, /* ENAB, SWITCH */ |
| 927 | 943 | TTL_HIGH, 0) /* INP0, INP1 */ |
| 928 | DISCRETE_RCFILTER(NODE_117, NODE_116, JR_R11, JR_C16) | |
| 929 | #if (0 && USE_LS629) | |
| 930 | DISCRETE_74LS629(NODE_118, /* IC 5K, pin 7 */ | |
| 944 | ||
| 945 | /* Breadboarded measurements IC 5K, pin 10 | |
| 946 | D.R. Oct 2010 | |
| 947 | V Hz | |
| 948 | 0.135 14450 | |
| 949 | 0.25 13320 | |
| 950 | 0.5 12980 | |
| 951 | 0.75 15150 | |
| 952 | 1 17270 | |
| 953 | 2 28230 | |
| 954 | 3 41910 | |
| 955 | 4 56950 | |
| 956 | 4.15 59400 | |
| 957 | */ | |
| 958 | ||
| 959 | #if (USE_LS629) | |
| 960 | DISCRETE_74LS629(NODE_118, /* IC 5K, pin 10 */ | |
| 931 | 961 | 1, /* ENAB */ |
| 932 | NODE_117, DK_SUP_V, /* VMOD, VRNG */ | |
| 933 | JR_C19, JR_R11, /* C, R_FREQ_IN */ | |
| 962 | NODE_116, DK_SUP_V, /* VMOD, VRNG */ | |
| 963 | JR_C19, JR_R11, JR_C16, /* C, R_FREQ_IN, C_FREQ_IN */ | |
| 934 | 964 | DISC_LS624_OUT_COUNT_F) |
| 935 | 965 | #else |
| 966 | DISCRETE_RCFILTER(NODE_117, NODE_116, JR_R11, JR_C16) | |
| 936 | 967 | DISCRETE_74LS624(NODE_118, NODE_117, DK_SUP_V, JR_C19, DISC_LS624_OUT_COUNT_F) |
| 937 | 968 | #endif |
| 938 | 969 | |
| 939 | //DISCRETE_74LS629(NODE_30, /* IC 5K, pin 7 */ | |
| 940 | // 1, /* ENAB */ | |
| 941 | // NODE_117, DK_SUP_V, /* VMOD, VRNG */ | |
| 942 | // JR_C19, JR_R11, /* C, R_FREQ_IN */ | |
| 943 | // DISC_LS624_OUT_COUNT_F) | |
| 944 | //DISCRETE_74LS624(NODE_31, NODE_117, DK_SUP_V, JR_C19, DISC_LS624_OUT_COUNT_F) | |
| 945 | //DISCRETE_WAVELOG2(NODE_30, 1000,NODE_31, 1000) | |
| 946 | ||
| 947 | 970 | DISCRETE_LOGIC_NAND(NODE_120, NODE_115, NODE_110) |
| 948 | 971 | DISCRETE_MULTIPLY(DS_OUT_SOUND0, NODE_120, TTL_HIGH) |
| 949 | 972 | DISCRETE_TASK_END() |
| r9427 | r9428 | |
| 960 | 983 | TTL_HIGH, 0) /* INP0, INP1 */ |
| 961 | 984 | DISCRETE_LOGIC_INVERT(NODE_12, NODE_10) |
| 962 | 985 | DISCRETE_MIXER2(NODE_13, 1, NODE_10, NODE_11, &dkongjr_s1_mixer_desc) |
| 986 | ||
| 987 | /* Breadboarded measurements IC 8L, pin 10 | |
| 988 | D.R. Oct 2010 | |
| 989 | V Hz | |
| 990 | 0.151 313 | |
| 991 | 0.25 288 | |
| 992 | 0.5 275 | |
| 993 | 0.75 324 | |
| 994 | 1 370 | |
| 995 | 2 635 | |
| 996 | 3 965 | |
| 997 | 4 1325 | |
| 998 | 4.14 1378 | |
| 999 | */ | |
| 1000 | ||
| 963 | 1001 | #if (USE_LS629) |
| 964 | 1002 | DISCRETE_74LS629(NODE_14, /* IC 8L, pin 10 */ |
| 965 | 1003 | 1, /* ENAB */ |
| 966 | 1004 | NODE_13, DK_SUP_V, /* VMOD, VRNG */ |
| 967 | JR_C22, RES_2_PARALLEL(JR_R12, JR_R13), /* C, R_FREQ_IN */ | |
| 1005 | /* C_FREQ_IN is taken care of by the NODE_13 mixer */ | |
| 1006 | JR_C22, RES_2_PARALLEL(JR_R13, JR_R12), 0, /* C, R_FREQ_IN, C_FREQ_IN */ | |
| 968 | 1007 | DISC_LS624_OUT_ENERGY) |
| 969 | 1008 | #else |
| 970 | 1009 | DISCRETE_74LS624( NODE_14, NODE_13, 0.98*DK_SUP_V, JR_C22, DISC_LS624_OUT_ENERGY) |
| r9427 | r9428 | |
| 1003 | 1042 | ************************************************/ |
| 1004 | 1043 | |
| 1005 | 1044 | DISCRETE_TASK_START(1) |
| 1045 | /* Breadboarded measurements IC 7P, pin 7 | |
| 1046 | D.R. Oct 2010 | |
| 1047 | V Hz | |
| 1048 | 0.134 570 | |
| 1049 | 0.25 538 | |
| 1050 | 0.5 489 | |
| 1051 | 0.75 560 | |
| 1052 | 1 636 | |
| 1053 | 2 1003 | |
| 1054 | 3 1484 | |
| 1055 | 4 2016 | |
| 1056 | 4.16 2111 | |
| 1057 | */ | |
| 1058 | ||
| 1006 | 1059 | #if (USE_LS629) |
| 1007 | DISCRETE_RCFILTER(NODE_90, DS_SOUND9_INV, JR_R14, JR_C26) | |
| 1008 | 1060 | DISCRETE_74LS629(NODE_91, /* IC 7P, pin 7 */ |
| 1009 | 1061 | 1, /* ENAB */ |
| 1010 | NODE_90, DK_SUP_V, /* VMOD, VRNG */ | |
| 1011 | JR_C37, JR_R14, /* C, R_FREQ_IN */ | |
| 1062 | DS_SOUND9_INV, DK_SUP_V, /* VMOD, VRNG */ | |
| 1063 | JR_C37, JR_R14, JR_C26, /* C, R_FREQ_IN, C_FREQ_IN */ | |
| 1012 | 1064 | DISC_LS624_OUT_ENERGY) |
| 1013 | 1065 | DISCRETE_SWITCH(DS_OUT_SOUND9, 1, DS_SOUND9_INV, NODE_91, 0) |
| 1014 | 1066 | #else |
| r9427 | r9428 | |
| 1053 | 1105 | * Just a 1:n amplifier without filters - just the output filter |
| 1054 | 1106 | */ |
| 1055 | 1107 | DISCRETE_CRFILTER(NODE_295,NODE_288, 1000, JR_C13) |
| 1108 | #if (USE_LS629) | |
| 1109 | DISCRETE_OUTPUT(NODE_295, 32767.0/5.0 * 5) | |
| 1110 | #else | |
| 1056 | 1111 | DISCRETE_OUTPUT(NODE_295, 32767.0/5.0 * 10) |
| 1112 | #endif | |
| 1057 | 1113 | DISCRETE_TASK_END() |
| 1058 | 1114 | |
| 1059 | 1115 | DISCRETE_SOUND_END |
| r9427 | r9428 | |
|---|---|---|
| 564 | 564 | // After an appropriate delay for decoding to take place... |
| 565 | 565 | TIMER_CALLBACK( cdicdic_device::audio_sample_trigger ) |
| 566 | 566 | { |
| 567 | cdicdic_device *cdic = | |
| 567 | cdicdic_device *cdic = s | |
| 568 | 568 | cdic->sample_trigger(); |
| 569 | 569 | } |
| 570 | 570 | |
| r9427 | r9428 | |
| 624 | 624 | |
| 625 | 625 | TIMER_CALLBACK( cdicdic_device::trigger_readback_int ) |
| 626 | 626 | { |
| 627 | cdicdic_device *cdic = | |
| 627 | cdicdic_device *cdic = s | |
| 628 | 628 | cdic->process_delayed_command(); |
| 629 | 629 | } |
| 630 | 630 |
| r9427 | r9428 | |
|---|---|---|
| 84 | 84 | |
| 85 | 85 | TIMER_CALLBACK( cdislave_device::trigger_readback_int ) |
| 86 | 86 | { |
| 87 | cdislave_device *slave = | |
| 87 | cdislave_device *slave = s | |
| 88 | 88 | slave->readback_trigger(); |
| 89 | 89 | } |
| 90 | 90 | |
| r9427 | r9428 | |
| 151 | 151 | |
| 152 | 152 | INPUT_CHANGED( cdislave_device::mouse_update ) |
| 153 | 153 | { |
| 154 | cdislave_device *slave = | |
| 154 | cdislave_device *slave = s | |
| 155 | 155 | slave->perform_mouse_update(); |
| 156 | 156 | } |
| 157 | 157 |
| r9427 | r9428 | |
|---|---|---|
| 24 | 24 | #include "machine/cdi070.h" |
| 25 | 25 | #include "includes/cdi.h" |
| 26 | 26 | |
| 27 | #define ENABLE_QUIZARD_HACK (1) | |
| 28 | ||
| 29 | 27 | #if ENABLE_VERBOSE_LOG |
| 30 | 28 | INLINE void verboselog(running_machine *machine, int n_level, const char *s_fmt, ...) |
| 31 | 29 | { |
| r9427 | r9428 | |
| 43 | 41 | #define verboselog(x,y,z,...) |
| 44 | 42 | #endif |
| 45 | 43 | |
| 44 | static UINT16 mcu_value = 0; | |
| 45 | static UINT8 mcu_ack = 0; | |
| 46 | ||
| 46 | 47 | static void scc68070_set_timer_callback(scc68070_regs_t *scc68070, int channel) |
| 47 | 48 | { |
| 48 | 49 | UINT32 compare = 0; |
| r9427 | r9428 | |
| 61 | 62 | |
| 62 | 63 | void scc68070_set_quizard_mcu_ack(running_machine *machine, UINT8 ack) |
| 63 | 64 | { |
| 64 | cdi_state *state = machine->driver_data<cdi_state>(); | |
| 65 | scc68070_regs_t *scc68070 = &state->scc68070_regs; | |
| 66 | ||
| 67 | scc68070->mcu_ack = ack; | |
| 65 | mcu_ack = ack; | |
| 68 | 66 | } |
| 69 | 67 | |
| 70 | 68 | void scc68070_set_quizard_mcu_value(running_machine *machine, UINT16 value) |
| 71 | 69 | { |
| 72 | cdi_state *state = machine->driver_data<cdi_state>(); | |
| 73 | scc68070_regs_t *scc68070 = &state->scc68070_regs; | |
| 74 | ||
| 75 | scc68070->mcu_value = value; | |
| 70 | mcu_value = value; | |
| 76 | 71 | } |
| 77 | 72 | |
| 78 | 73 | TIMER_CALLBACK( scc68070_timer0_callback ) |
| r9427 | r9428 | |
| 98 | 93 | |
| 99 | 94 | static void scc68070_uart_rx_check(running_machine *machine, scc68070_regs_t *scc68070) |
| 100 | 95 | { |
| 101 | if((scc68070->uart.command_register & 3) == 1 && | |
| 102 | scc68070->uart.receive_pointer > -1) | |
| 96 | if((scc68070->uart.command_register & 3) == 1) | |
| 103 | 97 | { |
| 104 | scc68070->uart.status_register |= USR_RXRDY; | |
| 105 | 98 | UINT32 div = 0x10000 >> ((scc68070->uart.clock_select >> 4) & 7); |
| 106 | 99 | timer_adjust_oneshot(scc68070->uart.rx_timer, ATTOTIME_IN_HZ((49152000 / div) / 8), 0); |
| 107 | 100 | } |
| r9427 | r9428 | |
| 114 | 107 | |
| 115 | 108 | static void scc68070_uart_tx_check(running_machine *machine, scc68070_regs_t *scc68070) |
| 116 | 109 | { |
| 117 | if(((scc68070->uart.command_register >> 2) & 3) == 1 && | |
| 118 | scc68070->uart.transmit_pointer > -1 && | |
| 119 | attotime_compare(timer_timeleft(scc68070->uart.tx_timer), attotime_never) == 0) | |
| 110 | if(((scc68070->uart.command_register >> 2) & 3) == 1) | |
| 120 | 111 | { |
| 121 | UINT32 div = 0x10000 >> (scc68070->uart.clock_select & 7); | |
| 122 | timer_adjust_oneshot(scc68070->uart.tx_timer, ATTOTIME_IN_HZ((49152000 / div) / 8), 0); | |
| 112 | if(scc68070->uart.transmit_pointer >= 0) | |
| 113 | { | |
| 114 | scc68070->uart.status_register &= ~USR_TXRDY; | |
| 115 | } | |
| 116 | else | |
| 117 | { | |
| 118 | scc68070->uart.status_register |= USR_TXRDY; | |
| 119 | } | |
| 120 | ||
| 121 | if(attotime_compare(timer_timeleft(scc68070->uart.tx_timer), attotime_never) == 0) | |
| 122 | { | |
| 123 | UINT32 div = 0x10000 >> (scc68070->uart.clock_select & 7); | |
| 124 | timer_adjust_oneshot(scc68070->uart.tx_timer, ATTOTIME_IN_HZ((49152000 / div) / 8), 0); | |
| 125 | } | |
| 123 | 126 | } |
| 124 | 127 | else |
| 125 | 128 | { |
| r9427 | r9428 | |
| 129 | 132 | |
| 130 | 133 | void scc68070_uart_rx(running_machine *machine, scc68070_regs_t *scc68070, UINT8 data) |
| 131 | 134 | { |
| 135 | //printf("%d: %02x\n", scc68070->uart.receive_pointer + 1, data); | |
| 132 | 136 | scc68070->uart.receive_pointer++; |
| 133 | 137 | scc68070->uart.receive_buffer[scc68070->uart.receive_pointer] = data; |
| 134 | scc68070->uart.status_register |= USR_RXRDY; | |
| 135 | 138 | scc68070_uart_rx_check(machine, scc68070); |
| 136 | 139 | } |
| 137 | 140 | |
| r9427 | r9428 | |
| 139 | 142 | { |
| 140 | 143 | scc68070->uart.transmit_pointer++; |
| 141 | 144 | scc68070->uart.transmit_buffer[scc68070->uart.transmit_pointer] = data; |
| 142 | scc68070->uart.status_register |= USR_TXRDY; | |
| 143 | 145 | scc68070_uart_tx_check(machine, scc68070); |
| 144 | 146 | } |
| 145 | 147 | |
| 146 | 148 | TIMER_CALLBACK( scc68070_rx_callback ) |
| 147 | 149 | { |
| 148 | bool clear_int = false; | |
| 149 | 150 | cdi_state *state = machine->driver_data<cdi_state>(); |
| 150 | 151 | scc68070_regs_t *scc68070 = &state->scc68070_regs; |
| 151 | 152 | |
| 152 | 153 | if((scc68070->uart.command_register & 3) == 1) |
| 153 | 154 | { |
| 155 | if(scc68070->uart.receive_pointer >= 0) | |
| 156 | { | |
| 157 | scc68070->uart.status_register |= USR_RXRDY; | |
| 158 | } | |
| 159 | else | |
| 160 | { | |
| 161 | scc68070->uart.status_register &= ~USR_RXRDY; | |
| 162 | } | |
| 163 | ||
| 154 | 164 | scc68070->uart.receive_holding_register = scc68070->uart.receive_buffer[0]; |
| 165 | ||
| 155 | 166 | if(scc68070->uart.receive_pointer > -1) |
| 156 | 167 | { |
| 157 | 168 | verboselog(machine, 2, "scc68070_rx_callback: Receiving %02x\n", scc68070->uart.receive_holding_register); |
| 158 | for(int index = 0; index < scc68070->uart.receive_pointer; index++) | |
| 159 | { | |
| 160 | scc68070->uart.receive_buffer[index] = scc68070->uart.receive_buffer[index + 1]; | |
| 161 | } | |
| 162 | scc68070->uart.receive_pointer--; | |
| 163 | 169 | |
| 164 | 170 | UINT8 interrupt = (scc68070->picr2 >> 4) & 7; |
| 165 | 171 | if(interrupt) |
| r9427 | r9428 | |
| 167 | 173 | cpu_set_input_line_vector(machine->device("maincpu"), M68K_IRQ_1 + (interrupt - 1), 56 + interrupt); |
| 168 | 174 | cputag_set_input_line(machine, "maincpu", M68K_IRQ_1 + (interrupt - 1), ASSERT_LINE); |
| 169 | 175 | } |
| 170 | else | |
| 171 | { | |
| 172 | clear_int = true; | |
| 173 | } | |
| 174 | 176 | |
| 175 | 177 | scc68070->uart.status_register |= USR_RXRDY; |
| 176 | 178 | UINT32 div = 0x10000 >> ((scc68070->uart.clock_select >> 4) & 7); |
| r9427 | r9428 | |
| 178 | 180 | } |
| 179 | 181 | else |
| 180 | 182 | { |
| 181 | clear_int = true; | |
| 182 | 183 | scc68070->uart.status_register &= ~USR_RXRDY; |
| 183 | timer_adjust_oneshot(scc68070->uart.rx_timer, attotime_never, 0); | |
| 184 | 184 | } |
| 185 | 185 | } |
| 186 | 186 | else |
| 187 | 187 | { |
| 188 | clear_int = true; | |
| 189 | 188 | scc68070->uart.status_register &= ~USR_RXRDY; |
| 190 | timer_adjust_oneshot(scc68070->uart.rx_timer, attotime_never, 0); | |
| 191 | 189 | } |
| 192 | 190 | |
| 193 | if(clear_int) | |
| 194 | { | |
| 195 | UINT8 interrupt = scc68070->picr2 & 7; | |
| 196 | cputag_set_input_line(machine, "maincpu", M68K_IRQ_1 + (interrupt - 1), CLEAR_LINE); | |
| 197 | } | |
| 191 | scc68070_uart_rx_check(machine, scc68070); | |
| 198 | 192 | } |
| 199 | 193 | |
| 200 | static void scc68070_tx_empty(running_machine *machine, scc68070_regs_t *scc68070) | |
| 201 | { | |
| 202 | UINT8 interrupt = scc68070->picr2 & 7; | |
| 203 | scc68070->uart.status_register |= USR_TXRDY; | |
| 204 | if(interrupt) | |
| 205 | { | |
| 206 | cpu_set_input_line_vector(machine->device("maincpu"), M68K_IRQ_1 + (interrupt - 1), 56 + interrupt); | |
| 207 | cputag_set_input_line(machine, "maincpu", M68K_IRQ_1 + (interrupt - 1), ASSERT_LINE); | |
| 208 | } | |
| 209 | } | |
| 210 | ||
| 211 | 194 | static UINT16 seeds[10] = { 0 }; |
| 212 | 195 | static UINT8 g_state[8] = { 0 }; |
| 213 | 196 | |
| 214 | 197 | void scc68070_quizard_rx(running_machine *machine, scc68070_regs_t *scc68070, UINT8 data) |
| 215 | 198 | { |
| 216 | 199 | scc68070_uart_rx(machine, scc68070, 0x5a); |
| 217 | for(int index = 0; index < 8; index++) | |
| 218 | { | |
| 219 | scc68070_uart_rx(machine, scc68070, 0); | |
| 220 | } | |
| 221 | 200 | scc68070_uart_rx(machine, scc68070, data); |
| 222 | 201 | } |
| 223 | 202 | |
| r9427 | r9428 | |
| 237 | 216 | |
| 238 | 217 | static void quizard_calculate_state(running_machine *machine, scc68070_regs_t *scc68070) |
| 239 | 218 | { |
| 240 | const UINT16 desired_bitfield = | |
| 219 | const UINT16 desired_bitfield = | |
| 241 | 220 | const UINT16 field0 = 0x00ff; |
| 242 | 221 | const UINT16 field1 = desired_bitfield ^ field0; |
| 243 | 222 | |
| r9427 | r9428 | |
| 273 | 252 | g_state[5] = lo1 - g_state[4]; |
| 274 | 253 | } |
| 275 | 254 | |
| 255 | INTERRUPT_GEN( scc68070_mcu_frame ) | |
| 256 | { | |
| 257 | cdi_state *state = device->machine->driver_data<cdi_state>(); | |
| 258 | scc68070_regs_t *scc68070 = &state->scc68070_regs; | |
| 259 | ||
| 260 | if(0)//mcu_active) | |
| 261 | { | |
| 262 | quizard_calculate_state(device->machine, scc68070); | |
| 263 | scc68070_uart_rx(device->machine, scc68070, 0x5a); | |
| 264 | for(int index = 0; index < 8; index++) | |
| 265 | { | |
| 266 | scc68070_uart_rx(device->machine, scc68070, g_state[index]); | |
| 267 | } | |
| 268 | } | |
| 269 | } | |
| 270 | ||
| 276 | 271 | static void quizard_handle_byte_tx(running_machine *machine, scc68070_regs_t *scc68070) |
| 277 | 272 | { |
| 273 | static int state = 0; | |
| 278 | 274 | static UINT8 rx[0x100]; |
| 279 | 275 | static UINT8 rx_ptr = 0xff; |
| 280 | static UINT8 state = 0; | |
| 281 | static UINT8 ack_count = 0; | |
| 282 | 276 | UINT8 tx = scc68070->uart.transmit_holding_register; |
| 283 | 277 | |
| 278 | //printf("T: %02x ", tx ); | |
| 279 | if((tx >= 0x20 && tx < 0x7f) || tx == 0x0d || tx == 0x0a) | |
| 280 | { | |
| 281 | //printf("%c ", tx); | |
| 282 | } | |
| 283 | //printf("\n"); | |
| 284 | ||
| 284 | 285 | switch(state) |
| 285 | 286 | { |
| 286 | case 0: | |
| 287 | if(tx == 0x56) | |
| 287 | case 0: // Waiting for a leadoff byte | |
| 288 | if(tx == mcu_ack) // Sequence end | |
| 288 | 289 | { |
| 289 | state++; | |
| 290 | //scc68070_uart_rx(machine, scc68070, 0x5a); | |
| 291 | //scc68070_uart_rx(machine, scc68070, 0x42); | |
| 290 | 292 | } |
| 291 | break; | |
| 292 | ||
| 293 | case 1: | |
| 294 | if(tx == scc68070->mcu_ack) | |
| 293 | else | |
| 295 | 294 | { |
| 296 | ack_count++; | |
| 297 | if(ack_count == 2) | |
| 295 | switch(tx) | |
| 298 | 296 | { |
| 299 | state++; | |
| 300 | quizard_set_seeds(rx); | |
| 301 | quizard_calculate_state(machine, scc68070); | |
| 302 | scc68070_uart_rx(machine, scc68070, 0x5a); | |
| 303 | for(int index = 0; index < 8; index++) | |
| 304 | { | |
| 305 | scc68070_uart_rx(machine, scc68070, g_state[index]); | |
| 306 | } | |
| 297 | case 0x44: // DATABASEPATH = **_DATABASE/ | |
| 298 | rx[0] = 0x44; | |
| 299 | rx_ptr = 1; | |
| 300 | state = 3; | |
| 301 | break; | |
| 302 | case 0x2e: // Unknown; ignored | |
| 303 | break; | |
| 304 | case 0x56: // Seed start | |
| 305 | rx_ptr = 0; | |
| 306 | state = 1; | |
| 307 | break; | |
| 308 | default: | |
| 309 | //printf("Unknown leadoff byte: %02x\n", tx); | |
| 310 | break; | |
| 307 | 311 | } |
| 308 | 312 | } |
| 309 | else | |
| 313 | break; | |
| 314 | ||
| 315 | case 1: // Receiving the seed | |
| 316 | rx[rx_ptr] = tx; | |
| 317 | rx_ptr++; | |
| 318 | if(rx_ptr == 20) | |
| 310 | 319 | { |
| 311 | rx_ptr++; | |
| 312 | rx[rx_ptr] = tx; | |
| 320 | //printf("Calculating seeds\n"); | |
| 321 | quizard_set_seeds(rx); | |
| 322 | quizard_calculate_state(machine, scc68070); | |
| 323 | state = 2; | |
| 313 | 324 | } |
| 314 | 325 | break; |
| 315 | 326 | |
| 316 | case 2: | |
| 317 | if(tx == 0x56) | |
| 327 | case 2: // Receiving the seed acknowledge | |
| 328 | if(tx == mcu_ack) | |
| 318 | 329 | { |
| 319 | state = 1; | |
| 330 | state = 0; | |
| 331 | scc68070_uart_rx(machine, scc68070, 0x5a); | |
| 332 | scc68070_uart_rx(machine, scc68070, g_state[0]); | |
| 333 | scc68070_uart_rx(machine, scc68070, g_state[1]); | |
| 334 | scc68070_uart_rx(machine, scc68070, g_state[2]); | |
| 335 | scc68070_uart_rx(machine, scc68070, g_state[3]); | |
| 336 | scc68070_uart_rx(machine, scc68070, g_state[4]); | |
| 337 | scc68070_uart_rx(machine, scc68070, g_state[5]); | |
| 338 | scc68070_uart_rx(machine, scc68070, g_state[6]); | |
| 339 | scc68070_uart_rx(machine, scc68070, g_state[7]); | |
| 320 | 340 | } |
| 321 | 341 | break; |
| 342 | ||
| 343 | case 3: // Receiving the database path | |
| 344 | rx[rx_ptr] = tx; | |
| 345 | rx_ptr++; | |
| 346 | if(tx == 0x0a) | |
| 347 | { | |
| 348 | rx[rx_ptr] = 0; | |
| 349 | //printf("Database path: %s\n", rx); | |
| 350 | scc68070_uart_rx(machine, scc68070, 0x5a); | |
| 351 | scc68070_uart_rx(machine, scc68070, g_state[0]); | |
| 352 | scc68070_uart_rx(machine, scc68070, g_state[1]); | |
| 353 | scc68070_uart_rx(machine, scc68070, g_state[2]); | |
| 354 | scc68070_uart_rx(machine, scc68070, g_state[3]); | |
| 355 | scc68070_uart_rx(machine, scc68070, g_state[4]); | |
| 356 | scc68070_uart_rx(machine, scc68070, g_state[5]); | |
| 357 | scc68070_uart_rx(machine, scc68070, g_state[6]); | |
| 358 | scc68070_uart_rx(machine, scc68070, g_state[7]); | |
| 359 | state = 0; | |
| 360 | } | |
| 361 | break; | |
| 322 | 362 | } |
| 323 | 363 | } |
| 324 | 364 | |
| r9427 | r9428 | |
| 329 | 369 | |
| 330 | 370 | if(((scc68070->uart.command_register >> 2) & 3) == 1) |
| 331 | 371 | { |
| 372 | UINT8 interrupt = scc68070->picr2 & 7; | |
| 373 | if(interrupt) | |
| 374 | { | |
| 375 | cpu_set_input_line_vector(machine->device("maincpu"), M68K_IRQ_1 + (interrupt - 1), 56 + interrupt); | |
| 376 | cputag_set_input_line(machine, "maincpu", M68K_IRQ_1 + (interrupt - 1), ASSERT_LINE); | |
| 377 | } | |
| 378 | ||
| 332 | 379 | if(scc68070->uart.transmit_pointer > -1) |
| 333 | 380 | { |
| 334 | 381 | scc68070->uart.transmit_holding_register = scc68070->uart.transmit_buffer[0]; |
| 335 | 382 | quizard_handle_byte_tx(machine, scc68070); |
| 336 | 383 | |
| 337 | 384 | verboselog(machine, 2, "scc68070_tx_callback: Transmitting %02x\n", scc68070->uart.transmit_holding_register); |
| 338 | scc68070->uart.transmit_pointer--; | |
| 339 | 385 | for(int index = 0; index < scc68070->uart.transmit_pointer; index++) |
| 340 | 386 | { |
| 341 | 387 | scc68070->uart.transmit_buffer[index] = scc68070->uart.transmit_buffer[index+1]; |
| 342 | 388 | } |
| 389 | scc68070->uart.transmit_pointer--; | |
| 343 | 390 | |
| 344 | 391 | UINT32 div = 0x10000 >> (scc68070->uart.clock_select & 7); |
| 345 | 392 | timer_adjust_oneshot(scc68070->uart.tx_timer, ATTOTIME_IN_HZ((49152000 / div) / 8), 0); |
| r9427 | r9428 | |
| 347 | 394 | else |
| 348 | 395 | { |
| 349 | 396 | timer_adjust_oneshot(scc68070->uart.tx_timer, attotime_never, 0); |
| 350 | scc68070_tx_empty(machine, scc68070); | |
| 351 | 397 | } |
| 352 | 398 | } |
| 353 | 399 | else |
| 354 | 400 | { |
| 355 | 401 | timer_adjust_oneshot(scc68070->uart.tx_timer, attotime_never, 0); |
| 356 | UINT8 interrupt = (scc68070->picr2 >> 4) & 7; | |
| 357 | if(interrupt) | |
| 358 | { | |
| 359 | cputag_set_input_line(machine, "maincpu", M68K_IRQ_1 + (interrupt - 1), CLEAR_LINE); | |
| 360 | } | |
| 361 | 402 | } |
| 403 | ||
| 404 | scc68070_uart_tx_check(machine, scc68070); | |
| 362 | 405 | } |
| 363 | 406 | |
| 364 | 407 | READ16_HANDLER( scc68070_periphs_r ) |
| r9427 | r9428 | |
| 425 | 468 | { |
| 426 | 469 | verboselog(space->machine, 0, "scc68070_periphs_r: Unknown address: %04x & %04x\n", offset * 2, mem_mask); |
| 427 | 470 | } |
| 471 | ||
| 472 | if((scc68070->picr2 >> 4) & 7) | |
| 473 | { | |
| 474 | cputag_set_input_line(space->machine, "maincpu", M68K_IRQ_1 + (((scc68070->picr2 >> 4) & 7) - 1), ASSERT_LINE); | |
| 475 | } | |
| 476 | ||
| 477 | if(scc68070->picr2 & 7) | |
| 478 | { | |
| 479 | cputag_set_input_line(space->machine, "maincpu", M68K_IRQ_1 + ((scc68070->picr2 & 7) - 1), ASSERT_LINE); | |
| 480 | } | |
| 481 | ||
| 428 | 482 | return scc68070->uart.status_register; |
| 483 | ||
| 429 | 484 | case 0x2014/2: |
| 430 | 485 | if(ACCESSING_BITS_0_7) |
| 431 | 486 | { |
| r9427 | r9428 | |
| 465 | 520 | { |
| 466 | 521 | verboselog(space->machine, 0, "scc68070_periphs_r: Unknown address: %04x & %04x\n", offset * 2, mem_mask); |
| 467 | 522 | } |
| 523 | if((scc68070->picr2 >> 4) & 7) | |
| 524 | { | |
| 525 | cputag_set_input_line(space->machine, "maincpu", M68K_IRQ_1 + (((scc68070->picr2 >> 4) & 7) - 1), CLEAR_LINE); | |
| 526 | } | |
| 527 | ||
| 528 | scc68070->uart.receive_holding_register = scc68070->uart.receive_buffer[0]; | |
| 529 | if(scc68070->uart.receive_pointer >= 0) | |
| 530 | { | |
| 531 | for(int index = 0; index < scc68070->uart.receive_pointer; index++) | |
| 532 | { | |
| 533 | scc68070->uart.receive_buffer[index] = scc68070->uart.receive_buffer[index + 1]; | |
| 534 | } | |
| 535 | scc68070->uart.receive_pointer--; | |
| 536 | } | |
| 537 | //printf("R: %02x\n", scc68070->uart.receive_holding_register); | |
| 468 | 538 | return scc68070->uart.receive_holding_register; |
| 469 | 539 | |
| 470 | 540 | // Timers: 80002020 to 80002029 |
| r9427 | r9428 | |
| 715 | 785 | { |
| 716 | 786 | verboselog(space->machine, 2, "scc68070_periphs_w: UART Command Register: %04x & %04x\n", data, mem_mask); |
| 717 | 787 | scc68070->uart.command_register = data & 0x00ff; |
| 718 | if(((scc68070->uart.command_register >> 2) & 3) == 1 && | |
| 719 | scc68070->uart.transmit_pointer == -1) | |
| 720 | { | |
| 721 | scc68070_tx_empty(space->machine, scc68070); | |
| 722 | } | |
| 723 | 788 | scc68070_uart_rx_check(space->machine, scc68070); |
| 724 | 789 | scc68070_uart_tx_check(space->machine, scc68070); |
| 725 | 790 | } |
| r9427 | r9428 | |
| 958 | 1023 | scc68070->i2c.clock_control_register = 0; |
| 959 | 1024 | |
| 960 | 1025 | scc68070->uart.mode_register = 0; |
| 961 | scc68070->uart.status_register = | |
| 1026 | scc68070->uart.status_register = USR_TXRDY; | |
| 962 | 1027 | scc68070->uart.clock_select = 0; |
| 963 | 1028 | scc68070->uart.command_register = 0; |
| 964 | 1029 | scc68070->uart.transmit_holding_register = 0; |
| r9427 | r9428 | |
|---|---|---|
| 228 | 228 | scc68070_timer_regs_t timers; |
| 229 | 229 | scc68070_dma_regs_t dma; |
| 230 | 230 | scc68070_mmu_regs_t mmu; |
| 231 | ||
| 232 | UINT16 mcu_value; | |
| 233 | UINT8 mcu_ack; | |
| 234 | 231 | } scc68070_regs_t; |
| 235 | 232 | |
| 236 | 233 | // Member functions |
| r9427 | r9428 | |
| 251 | 248 | extern void scc68070_set_quizard_mcu_ack(running_machine *machine, UINT8 ack); |
| 252 | 249 | extern void scc68070_quizard_rx(running_machine *machine, scc68070_regs_t *scc68070, UINT8 data); |
| 253 | 250 | |
| 251 | extern INTERRUPT_GEN( scc68070_mcu_frame ); | |
| 252 | ||
| 254 | 253 | #endif // _MACHINE_CDI070_H_ |
| r9427 | r9428 | |
|---|---|---|
| 41 | 41 | DRIVER( robby ) /* (c) 1981 Bally Midway */ |
| 42 | 42 | DRIVER( gridlee ) /* [1983 Videa] prototype - no copyright notice */ |
| 43 | 43 | DRIVER( alienar ) /* (c) 1985 Duncan Brown */ |
| 44 | ||
| 44 | 45 | DRIVER( carpolo ) /* (c) 1977 Exidy */ |
| 45 | 46 | DRIVER( sidetrac ) /* (c) 1979 Exidy */ |
| 46 | 47 | DRIVER( targ ) /* (c) 1980 Exidy */ |
| 47 | 48 | DRIVER( spectar ) /* (c) 1980 Exidy */ |
| 48 | 49 | DRIVER( teetert ) /* (c) 1982 Exidy */ |
| 50 | DRIVER( hardhat ) /* (c) 1982 */ | |
| 51 | DRIVER( fax ) /* (c) 1983 */ | |
| 52 | DRIVER( fax2 ) /* (c) 1983 */ | |
| 49 | 53 | DRIVER( circus ) /* (c) 1977 Exidy */ |
| 50 | 54 | DRIVER( robotbwl ) /* (c) 197? Exidy */ |
| 51 | 55 | DRIVER( crash ) /* (c) 1979 Exidy */ |
| r9427 | r9428 | |
| 54 | 58 | DRIVER( starfirea ) /* (c) 1979 Exidy */ |
| 55 | 59 | DRIVER( fireone ) /* (c) 1979 Exidy */ |
| 56 | 60 | DRIVER( starfir2 ) /* (c) 1979 Exidy */ |
| 61 | DRIVER( victory ) /* (c) 1982 */ | |
| 62 | DRIVER( victorba ) /* (c) 1982 */ | |
| 63 | DRIVER( topgunnr ) /* (c) 1986 */ | |
| 64 | ||
| 65 | DRIVER( looping ) /* (c) 1982 Video Games GMBH */ | |
| 66 | DRIVER( supertnk ) /* (c) 1981 VIDEO GAMES GmbH, W.-GERMANY */ | |
| 67 | ||
| 57 | 68 | DRIVER( wrally ) /* (c) 1993 - Ref 930705 */ |
| 58 | 69 | |
| 59 | 70 | #endif /* DRIVER_RECURSIVE */ |
| r9427 | r9428 | |
|---|---|---|
| 176 | 176 | DRIVER( redufob ) /* bootleg */ |
| 177 | 177 | DRIVER( exodus ) /* Subelectro - bootleg? */ |
| 178 | 178 | DRIVER( streakng ) /* [1980] Shoei */ |
| 179 | DRIVER( streaknga ) /* [1980] Shoei */ | |
| 179 | 180 | DRIVER( pacmanbl ) /* bootleg */ |
| 180 | 181 | DRIVER( pacmanbla ) /* bootleg */ |
| 181 | 182 | DRIVER( phoenxp2 ) /* bootleg */ |
| r9427 | r9428 | |
| 10021 | 10022 | DRIVER( funriver ) /* (c) 2005 Amcoe - Fun River */ |
| 10022 | 10023 | DRIVER( funriverv ) /* (c) 2005 Amcoe */ |
| 10023 | 10024 | DRIVER( dvisland ) /* (c) 2006 Amcoe - Devil's Island */ |
| 10025 | DRIVER( dvislando ) /* (c) 2006 Amcoe */ | |
| 10024 | 10026 | DRIVER( atworld ) /* (c) 2007 Amcoe - Around The World */ |
| 10025 | 10027 | DRIVER( atworldd1 ) /* (c) 2007 Amcoe */ |
| 10026 | 10028 | DRIVER( amclink ) /* (c) 200? Amcoe - Amcoe Link Control Box? */ |
| r9427 | r9428 | |
| 10144 | 10146 | DRIVER( streetg2 ) /* (c) 1993 */ |
| 10145 | 10147 | DRIVER( streetg2r5 ) /* (c) 1993 */ |
| 10146 | 10148 | |
| 10149 | /* Micro Manufacturing */ | |
| 10150 | DRIVER( magtouch ) /* (c) 1995 */ | |
| 10151 | ||
| 10147 | 10152 | /* Coinmaster-Gaming VGA based */ |
| 10148 | 10153 | DRIVER( colorama ) /* (c) 2001 Coinmaster-Gaming, Ltd. */ |
| 10149 | 10154 | DRIVER( cmrltv75 ) /* (c) 2001 Coinmaster-Gaming, Ltd. */ |
| r9427 | r9428 | |
|---|---|---|
| 115 | 115 | UINT8 grudge_last_steering[3]; |
| 116 | 116 | |
| 117 | 117 | /* video data */ |
| 118 | UINT8 videoram[256 * 256]; | |
| 118 | UINT8 *videoram; | |
| 119 | UINT8 expanded_videoram[256*256]; | |
| 119 | 120 | UINT8 *sprite_data; |
| 120 | 121 | UINT32 sprite_mask; |
| 121 | 122 | UINT8 *sprite_bank[2]; |
| r9427 | r9428 | |
|---|---|---|
| 33 | 33 | |
| 34 | 34 | /*----------- debug defines -----------*/ |
| 35 | 35 | |
| 36 | #define VERBOSE_LEVEL ( | |
| 36 | #define VERBOSE_LEVEL (0) | |
| 37 | 37 | |
| 38 | #define ENABLE_VERBOSE_LOG ( | |
| 38 | #define ENABLE_VERBOSE_LOG (0) | |
| 39 | 39 | |
| 40 | 40 | #define ENABLE_UART_PRINTING (0) |
| 41 | 41 |
| r9427 | r9428 | |
|---|---|---|
| 29 | 29 | { |
| 30 | 30 | public: |
| 31 | 31 | cidelsa_state(running_machine &machine, const driver_device_config_base &config) |
| 32 | : driver_device(machine, config) { } | |
| 32 | : driver_device(machine, config), | |
| 33 | m_maincpu(*this, CDP1802_TAG), | |
| 34 | m_vis(*this, CDP1869_TAG), | |
| 35 | m_psg(*this, AY8910_TAG) | |
| 36 | { } | |
| 33 | 37 | |
| 34 | /* cpu state */ | |
| 35 | int reset; | |
| 38 | required_device<cosmac_device> m_maincpu; | |
| 39 | required_device<cdp1869_device> m_vis; | |
| 40 | optional_device<running_device> m_psg; | |
| 36 | 41 | |
| 37 | /* video state */ | |
| 38 | int cdp1802_q; | |
| 39 | int cdp1869_prd; | |
| 40 | int cdp1869_pcb; | |
| 42 | virtual void machine_reset(); | |
| 41 | 43 | |
| 42 | UINT8 *pageram; | |
| 43 | UINT8 *pcbram; | |
| 44 | UINT8 *charram; | |
| 44 | virtual void video_start(); | |
| 45 | bool video_update(screen_device &screen, bitmap_t &bitmap, const rectangle &cliprect) { m_vis->update_screen(&bitmap, &cliprect); return false; } | |
| 45 | 46 | |
| 46 | /* sound state */ | |
| 47 | int draco_sound; | |
| 48 | int draco_ay_latch; | |
| 47 | DECLARE_READ8_MEMBER( draco_sound_in_r ); | |
| 48 | DECLARE_READ8_MEMBER( draco_sound_ay8910_r ); | |
| 49 | 49 | |
| 50 | /* devices */ | |
| 51 | running_device *cdp1802; | |
| 52 | running_device *cdp1869; | |
| 50 | DECLARE_WRITE8_MEMBER( cdp1869_w ); | |
| 51 | DECLARE_WRITE8_MEMBER( draco_sound_bankswitch_w ); | |
| 52 | DECLARE_WRITE8_MEMBER( draco_sound_g_w ); | |
| 53 | DECLARE_WRITE8_MEMBER( draco_sound_ay8910_w ); | |
| 54 | DECLARE_WRITE8_MEMBER( destryer_out1_w ); | |
| 55 | DECLARE_WRITE8_MEMBER( altair_out1_w ); | |
| 56 | DECLARE_WRITE8_MEMBER( draco_out1_w ); | |
| 57 | DECLARE_WRITE8_MEMBER( draco_ay8910_port_b_w ); | |
| 58 | ||
| 59 | DECLARE_READ_LINE_MEMBER( clear_r ); | |
| 60 | ||
| 61 | DECLARE_WRITE_LINE_MEMBER( q_w ); | |
| 62 | DECLARE_WRITE_LINE_MEMBER( prd_w ); | |
| 63 | ||
| 64 | // cpu state | |
| 65 | int m_reset; | |
| 66 | ||
| 67 | // video state | |
| 68 | int m_cdp1802_q; | |
| 69 | int m_cdp1869_pcb; | |
| 70 | ||
| 71 | UINT8 *m_pageram; | |
| 72 | UINT8 *m_pcbram; | |
| 73 | UINT8 *m_charram; | |
| 74 | ||
| 75 | // sound state | |
| 76 | int m_draco_sound; | |
| 77 | int m_draco_ay_latch; | |
| 53 | 78 | }; |
| 54 | 79 | |
| 55 | 80 | /*----------- defined in video/cidelsa.c -----------*/ |
| r9427 | r9428 | |
|---|---|---|
| 95 | 95 | CPUS += DSP56156 |
| 96 | 96 | CPUS += RSP |
| 97 | 97 | CPUS += ALPHA8201 |
| 98 | CPUS += CDP1802 | |
| 99 | 98 | CPUS += COP400 |
| 100 | 99 | CPUS += TLCS90 |
| 101 | 100 | CPUS += TLCS900 |
| r9427 | r9428 | |
| 122 | 121 | CPUS += I8008 |
| 123 | 122 | CPUS += SCMP |
| 124 | 123 | CPUS += MN10200 |
| 124 | CPUS += COSMAC | |
| 125 | 125 | |
| 126 | ||
| 127 | ||
| 126 | 128 | #------------------------------------------------- |
| 127 | 129 | # specify available sound cores; some of these are |
| 128 | 130 | # only for MESS and so aren't included |
| 129 | 131 | #------------------------------------------------- |
| 130 | 132 | |
| 131 | SOUNDS += CUSTOM | |
| 132 | 133 | SOUNDS += SAMPLES |
| 133 | 134 | SOUNDS += DAC |
| 134 | 135 | SOUNDS += DMADAC |
| r9427 | r9428 | |
| 226 | 227 | SOUNDS += S2636 |
| 227 | 228 | #SOUNDS += ASC |
| 228 | 229 | |
| 230 | ||
| 231 | ||
| 229 | 232 | #------------------------------------------------- |
| 230 | 233 | # this is the list of driver libraries that |
| 231 | 234 | # comprise MAME plus mamedriv.o which contains |
| r9427 | r9428 | |
| 1579 | 1582 | $(DRIVERS)/magicard.o \ |
| 1580 | 1583 | $(DRIVERS)/magicfly.o \ |
| 1581 | 1584 | $(DRIVERS)/magictg.o \ |
| 1585 | $(DRIVERS)/magtouch.o \ | |
| 1582 | 1586 | $(DRIVERS)/malzak.o $(VIDEO)/malzak.o \ |
| 1583 | 1587 | $(DRIVERS)/mcatadv.o $(VIDEO)/mcatadv.o \ |
| 1584 | 1588 | $(DRIVERS)/micro3d.o $(MACHINE)/micro3d.o $(VIDEO)/micro3d.o $(AUDIO)/micro3d.o \ |
| r9427 | r9428 | |
| 1671 | 1675 | $(DRIVERS)/wldarrow.o \ |
| 1672 | 1676 | $(DRIVERS)/xyonix.o $(VIDEO)/xyonix.o \ |
| 1673 | 1677 | |
| 1678 | ||
| 1679 | ||
| 1674 | 1680 | #------------------------------------------------- |
| 1675 | 1681 | # layout dependencies |
| 1676 | 1682 | #------------------------------------------------- |
| r9427 | r9428 | |
| 1899 | 1905 | $(DRIVERS)/zac2650.o: $(LAYOUT)/tinv2650.lh |
| 1900 | 1906 | |
| 1901 | 1907 | |
| 1908 | ||
| 1902 | 1909 | #------------------------------------------------- |
| 1903 | 1910 | # misc dependencies |
| 1904 | 1911 | #------------------------------------------------- |
| r9427 | r9428 | |
|---|---|---|
| 68 | 68 | { |
| 69 | 69 | blktiger_state *state = machine->driver_data<blktiger_state>(); |
| 70 | 70 | |
| 71 | state->chon = 1; | |
| 72 | state->bgon = 1; | |
| 73 | state->objon = 1; | |
| 74 | state->screen_layout = 0; | |
| 75 | ||
| 71 | 76 | state->scroll_ram = auto_alloc_array(machine, UINT8, BGRAM_BANK_SIZE * BGRAM_BANKS); |
| 72 | 77 | |
| 73 | 78 | state->tx_tilemap = tilemap_create(machine, get_tx_tile_info, tilemap_scan_rows, 8, 8, 32, 32); |
| r9427 | r9428 | |
| 242 | 247 | |
| 243 | 248 | if (state->chon) |
| 244 | 249 | tilemap_draw(bitmap, cliprect, state->tx_tilemap, 0, 0); |
| 250 | ||
| 245 | 251 | return 0; |
| 246 | 252 | } |
| 247 | 253 |
| r9427 | r9428 | |
|---|---|---|
| 30 | 30 | state->sprite_mask = memory_region_length(machine, "gfx1") - 1; |
| 31 | 31 | |
| 32 | 32 | /* register for saving */ |
| 33 | state_save_register_global_array(machine, state->videoram); | |
| 33 | state_save_register_global_array(machine, state->expanded_videoram); | |
| 34 | 34 | state_save_register_global(machine, state->palettebank_vis); |
| 35 | 35 | } |
| 36 | 36 | |
| r9427 | r9428 | |
| 47 | 47 | balsente_state *state = space->machine->driver_data<balsente_state>(); |
| 48 | 48 | |
| 49 | 49 | /* expand the two pixel values into two bytes */ |
| 50 | state->videoram[offset * 2 + 0] = data >> 4; | |
| 51 | state->videoram[offset * 2 + 1] = data & 15; | |
| 50 | state->videoram[offset] = data; | |
| 51 | ||
| 52 | state->expanded_videoram[offset * 2 + 0] = data >> 4; | |
| 53 | state->expanded_videoram[offset * 2 + 1] = data & 15; | |
| 52 | 54 | } |
| 53 | 55 | |
| 54 | 56 | |
| r9427 | r9428 | |
| 144 | 146 | if (ypos >= (16 + BALSENTE_VBEND) && ypos >= cliprect->min_y && ypos <= cliprect->max_y) |
| 145 | 147 | { |
| 146 | 148 | const pen_t *pens = &machine->pens[state->palettebank_vis * 256]; |
| 147 | UINT8 *old = &state->videoram[(ypos - BALSENTE_VBEND) * 256 + xpos]; | |
| 149 | UINT8 *old = &state->expanded_videoram[(ypos - BALSENTE_VBEND) * 256 + xpos]; | |
| 148 | 150 | int currx = xpos; |
| 149 | 151 | |
| 150 | 152 | /* standard case */ |
| r9427 | r9428 | |
| 216 | 218 | |
| 217 | 219 | /* draw scanlines from the VRAM directly */ |
| 218 | 220 | for (y = cliprect->min_y; y <= cliprect->max_y; y++) |
| 219 | draw_scanline8(bitmap, 0, y, 256, &state->videoram[(y - BALSENTE_VBEND) * 256], pens); | |
| 221 | draw_scanline8(bitmap, 0, y, 256, &state->expanded_videoram[(y - BALSENTE_VBEND) * 256], pens); | |
| 220 | 222 | |
| 221 | 223 | /* draw the sprite images */ |
| 222 | 224 | for (i = 0; i < 40; i++) |
| r9427 | r9428 | |
|---|---|---|
| 4 | 4 | #include "sound/ay8910.h" |
| 5 | 5 | #include "includes/cidelsa.h" |
| 6 | 6 | |
| 7 | /* | |
| 7 | /* Register | |
| 8 | 8 | |
| 9 | ||
| 9 | W | |
| 10 | 10 | { |
| 11 | | |
| 11 | UINT16 | |
| 12 | 12 | |
| 13 | UINT16 addr = offset & CIDELSA_PAGERAM_MASK; | |
| 14 | ||
| 15 | if (BIT(offset, 10)) | |
| 13 | switch (offset + 3) | |
| 16 | 14 | { |
| 17 | return 0xff; | |
| 18 | } | |
| 15 | case 3: | |
| 16 | m_vis->out3_w(space, ma, data); | |
| 17 | break; | |
| 19 | 18 | |
| 20 | return state->pageram[addr]; | |
| 21 | } | |
| 19 | case 4: | |
| 20 | m_vis->out4_w(space, ma, data); | |
| 21 | break; | |
| 22 | 22 | |
| 23 | static WRITE8_DEVICE_HANDLER( cidelsa_pageram_w ) | |
| 24 | { | |
| 25 | cidelsa_state *state = device->machine->driver_data<cidelsa_state>(); | |
| 23 | case 5: | |
| 24 | m_vis->out5_w(space, ma, data); | |
| 25 | break; | |
| 26 | 26 | |
| 27 | UINT16 addr = offset & CIDELSA_PAGERAM_MASK; | |
| 27 | case 6: | |
| 28 | m_vis->out6_w(space, ma, data); | |
| 29 | break; | |
| 28 | 30 | |
| 29 | if (BIT(offset, 10)) | |
| 30 | { | |
| 31 | return; | |
| 31 | case 7: | |
| 32 | m_vis->out7_w(space, ma, data); | |
| 33 | break; | |
| 32 | 34 | } |
| 33 | ||
| 34 | state->pageram[addr] = data; | |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | static READ8_DEVICE_HANDLER( draco_pageram_r ) | |
| 38 | { | |
| 39 | cidelsa_state *state = device->machine->driver_data<cidelsa_state>(); | |
| 40 | ||
| 41 | UINT16 addr = offset & DRACO_PAGERAM_MASK; | |
| 42 | ||
| 43 | return state->pageram[addr]; | |
| 44 | } | |
| 45 | ||
| 46 | static WRITE8_DEVICE_HANDLER( draco_pageram_w ) | |
| 47 | { | |
| 48 | cidelsa_state *state = device->machine->driver_data<cidelsa_state>(); | |
| 49 | ||
| 50 | UINT16 addr = offset & DRACO_PAGERAM_MASK; | |
| 51 | ||
| 52 | state->pageram[addr] = data; | |
| 53 | } | |
| 54 | ||
| 55 | 37 | /* Character RAM Access */ |
| 56 | 38 | |
| 57 | 39 | static CDP1869_CHAR_RAM_READ( cidelsa_charram_r ) |
| 58 | 40 | { |
| 59 | 41 | cidelsa_state *state = device->machine->driver_data<cidelsa_state>(); |
| 60 | 42 | |
| 61 | UINT8 column = BIT(pma, 10) ? 0xff : | |
| 43 | UINT8 column = BIT(pma, 10) ? 0xff : | |
| 62 | 44 | UINT16 addr = ((column << 3) | (cma & 0x07)) & CIDELSA_CHARRAM_MASK; |
| 63 | 45 | |
| 64 | UINT8 data = state->charram[addr]; | |
| 65 | state->cdp1869_pcb = state->pcbram[addr]; | |
| 46 | UINT8 data = state->m_charram[addr]; | |
| 47 | state->m_cdp1869_pcb = state->m_pcbram[addr]; | |
| 66 | 48 | |
| 67 | 49 | return data; |
| 68 | 50 | } |
| r9427 | r9428 | |
| 71 | 53 | { |
| 72 | 54 | cidelsa_state *state = device->machine->driver_data<cidelsa_state>(); |
| 73 | 55 | |
| 74 | UINT8 column = BIT(pma, 10) ? 0xff : | |
| 56 | UINT8 column = BIT(pma, 10) ? 0xff : | |
| 75 | 57 | UINT16 addr = ((column << 3) | (cma & 0x07)) & CIDELSA_CHARRAM_MASK; |
| 76 | 58 | |
| 77 | state->charram[addr] = data; | |
| 78 | state->pcbram[addr] = state->cdp1802_q; | |
| 59 | state->m_charram[addr] = data; | |
| 60 | state->m_pcbram[addr] = state->m_cdp1802_q; | |
| 79 | 61 | } |
| 80 | 62 | |
| 81 | 63 | static CDP1869_CHAR_RAM_READ( draco_charram_r ) |
| 82 | 64 | { |
| 83 | 65 | cidelsa_state *state = device->machine->driver_data<cidelsa_state>(); |
| 84 | 66 | |
| 85 | UINT8 column = state->pageram[pma & DRACO_PAGERAM_MASK]; | |
| 86 | UINT16 addr = ((column << 3) | (cma & 0x07)) & CIDELSA_CHARRAM_MASK; | |
| 67 | UINT16 addr = ((pmd << 3) | (cma & 0x07)) & CIDELSA_CHARRAM_MASK; | |
| 87 | 68 | |
| 88 | UINT8 data = state->charram[addr]; | |
| 89 | state->cdp1869_pcb = state->pcbram[addr]; | |
| 69 | UINT8 data = state->m_charram[addr]; | |
| 70 | state->m_cdp1869_pcb = state->m_pcbram[addr]; | |
| 90 | 71 | |
| 91 | 72 | return data; |
| 92 | 73 | } |
| r9427 | r9428 | |
| 95 | 76 | { |
| 96 | 77 | cidelsa_state *state = device->machine->driver_data<cidelsa_state>(); |
| 97 | 78 | |
| 98 | UINT8 column = state->pageram[pma & DRACO_PAGERAM_MASK]; | |
| 99 | UINT16 addr = ((column << 3) | (cma & 0x07)) & CIDELSA_CHARRAM_MASK; | |
| 79 | UINT16 addr = ((pmd << 3) | (cma & 0x07)) & CIDELSA_CHARRAM_MASK; | |
| 100 | 80 | |
| 101 | state->charram[addr] = data; | |
| 102 | state->pcbram[addr] = state->cdp1802_q; | |
| 81 | state->m_charram[addr] = data; | |
| 82 | state->m_pcbram[addr] = state->m_cdp1802_q; | |
| 103 | 83 | } |
| 104 | 84 | |
| 105 | 85 | /* Page Color Bit Access */ |
| r9427 | r9428 | |
| 108 | 88 | { |
| 109 | 89 | cidelsa_state *state = device->machine->driver_data<cidelsa_state>(); |
| 110 | 90 | |
| 111 | UINT8 column = state->pageram[pma & CIDELSA_PAGERAM_MASK]; | |
| 112 | UINT16 addr = ((column << 3) | (cma & 0x07)) & CIDELSA_CHARRAM_MASK; | |
| 91 | UINT16 addr = ((pmd << 3) | (cma & 0x07)) & CIDELSA_CHARRAM_MASK; | |
| 113 | 92 | |
| 114 | return state->pcbram[addr]; | |
| 93 | return state->m_pcbram[addr]; | |
| 115 | 94 | } |
| 116 | 95 | |
| 117 | 96 | static CDP1869_PCB_READ( draco_pcb_r ) |
| 118 | 97 | { |
| 119 | 98 | cidelsa_state *state = device->machine->driver_data<cidelsa_state>(); |
| 120 | 99 | |
| 121 | UINT8 column = state->pageram[pma & DRACO_PAGERAM_MASK]; | |
| 122 | UINT16 addr = ((column << 3) | (cma & 0x07)) & CIDELSA_CHARRAM_MASK; | |
| 100 | UINT16 addr = ((pmd << 3) | (cma & 0x07)) & CIDELSA_CHARRAM_MASK; | |
| 123 | 101 | |
| 124 | return state->pcbram[addr]; | |
| 102 | return state->m_pcbram[addr]; | |
| 125 | 103 | } |
| 126 | 104 | |
| 127 | 105 | /* Predisplay Changed Handler */ |
| 128 | 106 | |
| 129 | ||
| 107 | ||
| 130 | 108 | { |
| 131 | cidelsa_state *driver_state = device->machine->driver_data<cidelsa_state>(); | |
| 132 | ||
| 133 | 109 | /* invert PRD signal */ |
| 134 | cpu_set_input_line(driver_state->cdp1802, COSMAC_INPUT_LINE_INT, state ? CLEAR_LINE : ASSERT_LINE); | |
| 135 | cpu_set_input_line(driver_state->cdp1802, COSMAC_INPUT_LINE_EF1, state ? CLEAR_LINE : ASSERT_LINE); | |
| 110 | cpu_set_input_line(m_maincpu, COSMAC_INPUT_LINE_INT, state ? CLEAR_LINE : ASSERT_LINE); | |
| 111 | cpu_set_input_line(m_maincpu, COSMAC_INPUT_LINE_EF1, state ? CLEAR_LINE : ASSERT_LINE); | |
| 136 | 112 | } |
| 137 | 113 | |
| 114 | /* Page RAM */ | |
| 115 | ||
| 116 | static ADDRESS_MAP_START( cidelsa_page_ram, 0, 8 ) | |
| 117 | ADDRESS_MAP_UNMAP_HIGH | |
| 118 | AM_RANGE(0x000, 0x3ff) AM_RAM | |
| 119 | ADDRESS_MAP_END | |
| 120 | ||
| 121 | static ADDRESS_MAP_START( draco_page_ram, 0, 8 ) | |
| 122 | ADDRESS_MAP_UNMAP_HIGH | |
| 123 | AM_RANGE(0x000, 0x7ff) AM_RAM | |
| 124 | ADDRESS_MAP_END | |
| 125 | ||
| 138 | 126 | /* CDP1869 Interface */ |
| 139 | 127 | |
| 140 | 128 | static CDP1869_INTERFACE( destryer_cdp1869_intf ) |
| 141 | 129 | { |
| 142 | CDP1802_TAG, | |
| 143 | 130 | SCREEN_TAG, |
| 144 | 131 | 0, |
| 145 | 132 | CDP1869_PAL, |
| 146 | DEVCB_HANDLER(cidelsa_pageram_r), | |
| 147 | DEVCB_HANDLER(cidelsa_pageram_w), | |
| 148 | 133 | cidelsa_pcb_r, |
| 149 | 134 | cidelsa_charram_r, |
| 150 | 135 | cidelsa_charram_w, |
| 151 | DEVCB_LINE(cidelsa_prd_w) | |
| 136 | DEVCB_DRIVER_LINE_MEMBER(cidelsa_state, prd_w) | |
| 152 | 137 | }; |
| 153 | 138 | |
| 154 | 139 | static CDP1869_INTERFACE( altair_cdp1869_intf ) |
| 155 | 140 | { |
| 156 | CDP1802_TAG, | |
| 157 | 141 | SCREEN_TAG, |
| 158 | 142 | 0, |
| 159 | 143 | CDP1869_PAL, |
| 160 | DEVCB_HANDLER(cidelsa_pageram_r), | |
| 161 | DEVCB_HANDLER(cidelsa_pageram_w), | |
| 162 | 144 | cidelsa_pcb_r, |
| 163 | 145 | cidelsa_charram_r, |
| 164 | 146 | cidelsa_charram_w, |
| 165 | DEVCB_LINE(cidelsa_prd_w) | |
| 147 | DEVCB_DRIVER_LINE_MEMBER(cidelsa_state, prd_w) | |
| 166 | 148 | }; |
| 167 | 149 | |
| 168 | 150 | static CDP1869_INTERFACE( draco_cdp1869_intf ) |
| 169 | 151 | { |
| 170 | CDP1802_TAG, | |
| 171 | 152 | SCREEN_TAG, |
| 172 | 153 | 0, |
| 173 | 154 | CDP1869_PAL, |
| 174 | DEVCB_HANDLER(draco_pageram_r), | |
| 175 | DEVCB_HANDLER(draco_pageram_w), | |
| 176 | 155 | draco_pcb_r, |
| 177 | 156 | draco_charram_r, |
| 178 | 157 | draco_charram_w, |
| r9427 | r9428 | |
| 181 | 160 | |
| 182 | 161 | /* Video Start */ |
| 183 | 162 | |
| 184 | ||
| 163 | ||
| 185 | 164 | { |
| 186 | cidelsa_state *state = machine->driver_data<cidelsa_state>(); | |
| 165 | // allocate memory | |
| 166 | m_pcbram = auto_alloc_array(machine, UINT8, CIDELSA_CHARRAM_SIZE); | |
| 167 | m_charram = auto_alloc_array(machine, UINT8, CIDELSA_CHARRAM_SIZE); | |
| 187 | 168 | |
| 188 | /* allocate memory */ | |
| 189 | state->pageram = auto_alloc_array(machine, UINT8, pageram_size); | |
| 190 | state->pcbram = auto_alloc_array(machine, UINT8, CIDELSA_CHARRAM_SIZE); | |
| 191 | state->charram = auto_alloc_array(machine, UINT8, CIDELSA_CHARRAM_SIZE); | |
| 192 | ||
| 193 | /* find devices */ | |
| 194 | state->cdp1869 = machine->device(CDP1869_TAG); | |
| 195 | ||
| 196 | /* register for state saving */ | |
| 197 | state_save_register_global(machine, state->cdp1869_pcb); | |
| 198 | state_save_register_global_pointer(machine, state->pageram, pageram_size); | |
| 199 | state_save_register_global_pointer(machine, state->pcbram, CIDELSA_CHARRAM_SIZE); | |
| 200 | state_save_register_global_pointer(machine, state->charram, CIDELSA_CHARRAM_SIZE); | |
| 169 | // register for state saving | |
| 170 | state_save_register_global(machine, m_cdp1869_pcb); | |
| 171 | state_save_register_global_pointer(machine, m_pcbram, CIDELSA_CHARRAM_SIZE); | |
| 172 | state_save_register_global_pointer(machine, m_charram, CIDELSA_CHARRAM_SIZE); | |
| 201 | 173 | } |
| 202 | 174 | |
| 203 | static VIDEO_START(cidelsa) | |
| 204 | { | |
| 205 | video_start(machine, CIDELSA_PAGERAM_SIZE); | |
| 206 | } | |
| 207 | ||
| 208 | static VIDEO_START(draco) | |
| 209 | { | |
| 210 | video_start(machine, DRACO_PAGERAM_SIZE); | |
| 211 | } | |
| 212 | ||
| 213 | /* Video Update */ | |
| 214 | ||
| 215 | static VIDEO_UPDATE( cidelsa ) | |
| 216 | { | |
| 217 | cidelsa_state *state = screen->machine->driver_data<cidelsa_state>(); | |
| 218 | ||
| 219 | cdp1869_update(state->cdp1869, bitmap, cliprect); | |
| 220 | ||
| 221 | return 0; | |
| 222 | } | |
| 223 | ||
| 224 | 175 | /* AY-3-8910 */ |
| 225 | 176 | |
| 226 | ||
| 177 | ||
| 227 | 178 | { |
| 228 | 179 | /* |
| 229 | 180 | |
| r9427 | r9428 | |
| 248 | 199 | DEVCB_NULL, |
| 249 | 200 | DEVCB_NULL, |
| 250 | 201 | DEVCB_NULL, |
| 251 | DEVCB_ | |
| 202 | DEVCB_ | |
| 252 | 203 | }; |
| 253 | 204 | |
| 254 | 205 | /* Machine Drivers */ |
| r9427 | r9428 | |
| 257 | 208 | MDRV_CDP1869_SCREEN_PAL_ADD(SCREEN_TAG, DESTRYER_CHR2) |
| 258 | 209 | MDRV_SCREEN_DEFAULT_POSITION(1.226, 0.012, 1.4, 0.044) |
| 259 | 210 | |
| 260 | MDRV_VIDEO_START(cidelsa) | |
| 261 | MDRV_VIDEO_UPDATE(cidelsa) | |
| 262 | ||
| 263 | 211 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 264 | MDRV_CDP1869_ADD(CDP1869_TAG, DESTRYER_CHR2, destryer_cdp1869_intf) | |
| 212 | MDRV_CDP1869_ADD(CDP1869_TAG, DESTRYER_CHR2, destryer_cdp1869_intf, cidelsa_page_ram) | |
| 265 | 213 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) |
| 266 | 214 | MACHINE_CONFIG_END |
| 267 | 215 | |
| r9427 | r9428 | |
| 269 | 217 | MDRV_CDP1869_SCREEN_PAL_ADD(SCREEN_TAG, ALTAIR_CHR2) |
| 270 | 218 | MDRV_SCREEN_DEFAULT_POSITION(1.226, 0.012, 1.4, 0.044) |
| 271 | 219 | |
| 272 | MDRV_VIDEO_START(cidelsa) | |
| 273 | MDRV_VIDEO_UPDATE(cidelsa) | |
| 274 | ||
| 275 | 220 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 276 | MDRV_CDP1869_ADD(CDP1869_TAG, ALTAIR_CHR2, altair_cdp1869_intf) | |
| 221 | MDRV_CDP1869_ADD(CDP1869_TAG, ALTAIR_CHR2, altair_cdp1869_intf, cidelsa_page_ram) | |
| 277 | 222 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) |
| 278 | 223 | MACHINE_CONFIG_END |
| 279 | 224 | |
| r9427 | r9428 | |
| 281 | 226 | MDRV_CDP1869_SCREEN_PAL_ADD(SCREEN_TAG, DRACO_CHR2) |
| 282 | 227 | MDRV_SCREEN_DEFAULT_POSITION(1.226, 0.012, 1.360, 0.024) |
| 283 | 228 | |
| 284 | MDRV_VIDEO_START(draco) | |
| 285 | MDRV_VIDEO_UPDATE(cidelsa) | |
| 286 | ||
| 287 | 229 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 288 | MDRV_CDP1869_ADD(CDP1869_TAG, DRACO_CHR2, draco_cdp1869_intf) | |
| 230 | MDRV_CDP1869_ADD(CDP1869_TAG, DRACO_CHR2, draco_cdp1869_intf, draco_page_ram) | |
| 289 | 231 | MDRV_SOUND_ADD(AY8910_TAG, AY8910, DRACO_SND_CHR1) |
| 290 | 232 | MDRV_SOUND_CONFIG(ay8910_config) |
| 291 | 233 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) |
| r9427 | r9428 | |
|---|---|---|
| 40 | 40 | CPUS += M6800 |
| 41 | 41 | CPUS += M6809 |
| 42 | 42 | CPUS += M680X0 |
| 43 | CPUS += TMS9900 | |
| 44 | CPUS += COP400 | |
| 43 | 45 | |
| 44 | 46 | |
| 45 | 47 | |
| r9427 | r9428 | |
| 48 | 50 | # drivers referenced in tiny.c. |
| 49 | 51 | #------------------------------------------------- |
| 50 | 52 | |
| 51 | SOUNDS += CUSTOM | |
| 52 | 53 | SOUNDS += SAMPLES |
| 53 | 54 | SOUNDS += DAC |
| 54 | 55 | SOUNDS += DISCRETE |
| r9427 | r9428 | |
| 71 | 72 | |
| 72 | 73 | DRVLIBS = \ |
| 73 | 74 | $(MAMEOBJ)/tiny.o \ |
| 75 | $(EMUDRIVERS)/emudummy.o \ | |
| 74 | 76 | $(MACHINE)/ticket.o \ |
| 75 | 77 | $(DRIVERS)/carpolo.o $(MACHINE)/carpolo.o $(VIDEO)/carpolo.o \ |
| 76 | 78 | $(DRIVERS)/circus.o $(AUDIO)/circus.o $(VIDEO)/circus.o \ |
| 77 | 79 | $(DRIVERS)/exidy.o $(AUDIO)/exidy.o $(VIDEO)/exidy.o \ |
| 80 | $(AUDIO)/exidy440.o \ | |
| 78 | 81 | $(DRIVERS)/starfire.o $(VIDEO)/starfire.o \ |
| 82 | $(DRIVERS)/vertigo.o $(MACHINE)/vertigo.o $(VIDEO)/vertigo.o \ | |
| 79 | 83 | $(DRIVERS)/victory.o $(VIDEO)/victory.o \ |
| 80 | 84 | $(AUDIO)/targ.o \ |
| 81 | 85 | $(DRIVERS)/astrocde.o $(VIDEO)/astrocde.o \ |
| r9427 | r9428 | |
| 85 | 89 | $(AUDIO)/wow.o \ |
| 86 | 90 | $(DRIVERS)/gaelco.o $(VIDEO)/gaelco.o $(MACHINE)/gaelcrpt.o \ |
| 87 | 91 | $(DRIVERS)/wrally.o $(MACHINE)/wrally.o $(VIDEO)/wrally.o \ |
| 92 | $(DRIVERS)/looping.o \ | |
| 93 | $(DRIVERS)/supertnk.o \ | |
| 88 | 94 | |
| 89 | 95 | |
| 90 | 96 |
| r9427 | r9428 | |
|---|---|---|
| 313 | 313 | state->scroll_y[1] = 0; |
| 314 | 314 | state->scroll_bank = 0; |
| 315 | 315 | state->screen_layout = 0; |
| 316 | state->chon = 0; | |
| 317 | state->objon = 0; | |
| 318 | state->bgon = 0; | |
| 319 | 316 | state->z80_latch = 0; |
| 320 | 317 | state->i8751_latch = 0; |
| 321 | 318 | } |
| r9427 | r9428 | |
|---|---|---|
| 244 | 244 | |
| 245 | 245 | static ADDRESS_MAP_START( cpu1_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 246 | 246 | AM_RANGE(0x0000, 0x07ff) AM_RAM AM_BASE_GENERIC(spriteram) |
| 247 | AM_RANGE(0x0800, 0x7fff) AM_RAM_WRITE(balsente_videoram_w) | |
| 247 | AM_RANGE(0x0800, 0x7fff) AM_RAM_WRITE(balsente_videoram_w) AM_BASE_MEMBER(balsente_state, videoram) | |
| 248 | 248 | AM_RANGE(0x8000, 0x8fff) AM_RAM_WRITE(balsente_paletteram_w) AM_BASE_GENERIC(paletteram) |
| 249 | 249 | AM_RANGE(0x9000, 0x9007) AM_WRITE(balsente_adc_select_w) |
| 250 | 250 | AM_RANGE(0x9400, 0x9401) AM_READ(balsente_adc_data_r) |
| r9427 | r9428 | |
|---|---|---|
| 180 | 180 | #include "emu.h" |
| 181 | 181 | #include "cpu/z80/z80.h" |
| 182 | 182 | #include "cpu/m68000/m68000.h" |
| 183 | #include "deprecat.h" | |
| 184 | 183 | #include "sound/8950intf.h" |
| 185 | 184 | |
| 186 | 185 | static tilemap_t *tx_tilemap; |
| r9427 | r9428 | |
| 813 | 812 | static MACHINE_CONFIG_START( cybertnk, driver_device ) |
| 814 | 813 | MDRV_CPU_ADD("maincpu", M68000,20000000/2) |
| 815 | 814 | MDRV_CPU_PROGRAM_MAP(master_mem) |
| 816 | // MDRV_CPU_VBLANK_INT_HACK(master_irq,2) | |
| 817 | 815 | MDRV_CPU_VBLANK_INT("screen", irq1_line_hold) |
| 818 | 816 | |
| 819 | 817 | MDRV_CPU_ADD("slave", M68000,20000000/2) |
| 820 | 818 | MDRV_CPU_PROGRAM_MAP(slave_mem) |
| 821 | // MDRV_CPU_VBLANK_INT_HACK(slave_irq,2) | |
| 822 | 819 | MDRV_CPU_VBLANK_INT("screen", irq3_line_hold) |
| 823 | 820 | |
| 824 | 821 | MDRV_CPU_ADD("audiocpu", Z80,3579500) |
| r9427 | r9428 | |
|---|---|---|
| 273 | 273 | |
| 274 | 274 | static READ8_HANDLER ( snk_cpuA_nmi_trigger_r ) |
| 275 | 275 | { |
| 276 | cputag_set_input_line(space->machine, "maincpu", INPUT_LINE_NMI, ASSERT_LINE); | |
| 276 | if(!space->debugger_access()) | |
| 277 | { | |
| 278 | cputag_set_input_line(space->machine, "maincpu", INPUT_LINE_NMI, ASSERT_LINE); | |
| 279 | } | |
| 277 | 280 | return 0xff; |
| 278 | 281 | } |
| 279 | 282 | |
| r9427 | r9428 | |
| 284 | 287 | |
| 285 | 288 | static READ8_HANDLER ( snk_cpuB_nmi_trigger_r ) |
| 286 | 289 | { |
| 287 | cputag_set_input_line(space->machine, "sub", INPUT_LINE_NMI, ASSERT_LINE); | |
| 290 | if(!space->debugger_access()) | |
| 291 | { | |
| 292 | cputag_set_input_line(space->machine, "sub", INPUT_LINE_NMI, ASSERT_LINE); | |
| 293 | } | |
| 288 | 294 | return 0xff; |
| 289 | 295 | } |
| 290 | 296 |
| r9427 | r9428 | |
|---|---|---|
| 23 | 23 | 0xd000 - 0xdfff - VRAM mirrored write, |
| 24 | 24 | tilemap offset = address & 0x3ff |
| 25 | 25 | tile number = bits 0-7 = data, bits 8,9 = address bits 10,11 |
| 26 | 0xe000 - 0xefff - VRAM mirror | |
| 27 | 0xf000 - 0xffff - (unconnected) | |
| 26 | 28 | |
| 27 | 29 | Video : |
| 28 | 30 | No scrolling , no sprites. |
| r9427 | r9428 | |
| 30 | 32 | |
| 31 | 33 | 3 gfx ROMS |
| 32 | 34 | ROM1 - R component (ROM ->(parallel in) shift register 74166 (serial out) -> jamma output |
| 33 | ROM2 - B component | |
| 34 | ROM3 - G component | |
| 35 | ROM2 - G component | |
| 36 | ROM3 - B component | |
| 35 | 37 | |
| 36 | Default MAME color palette is used | |
| 37 | ||
| 38 | 38 | Sound : |
| 39 | 39 | AY 3 8910 |
| 40 | 40 | |
| r9427 | r9428 | |
| 49 | 49 | ***************************************************************************/ |
| 50 | 50 | |
| 51 | 51 | #include "emu.h" |
| 52 | #include "deprecat.h" | |
| 53 | 52 | #include "cpu/z80/z80.h" |
| 54 | 53 | #include "sound/ay8910.h" |
| 55 | 54 | #include "includes/4enraya.h" |
| r9427 | r9428 | |
| 74 | 73 | AM_RANGE(0x0000, 0xbfff) AM_ROM |
| 75 | 74 | AM_RANGE(0xc000, 0xcfff) AM_RAM |
| 76 | 75 | AM_RANGE(0xd000, 0xdfff) AM_WRITE(fenraya_videoram_w) AM_BASE_SIZE_MEMBER(_4enraya_state, videoram, videoram_size) |
| 76 | AM_RANGE(0xe000, 0xefff) AM_WRITE(fenraya_videoram_w) | |
| 77 | AM_RANGE(0xf000, 0xffff) AM_NOP | |
| 77 | 78 | ADDRESS_MAP_END |
| 78 | 79 | |
| 79 | 80 | static ADDRESS_MAP_START( main_portmap, ADDRESS_SPACE_IO, 8 ) |
| r9427 | r9428 | |
| 144 | 145 | }; |
| 145 | 146 | |
| 146 | 147 | static GFXDECODE_START( 4enraya ) |
| 147 | GFXDECODE_ENTRY( "gfx1", 0, charlayout, 0, | |
| 148 | GFXDECODE_ENTRY( "gfx1", 0, charlayout, 0, 1 ) | |
| 148 | 149 | GFXDECODE_END |
| 149 | 150 | |
| 150 | 151 | static MACHINE_START( 4enraya ) |
| r9427 | r9428 | |
| 163 | 164 | state->last_snd_ctrl = 0; |
| 164 | 165 | } |
| 165 | 166 | |
| 167 | static PALETTE_INIT( 4enraya ) | |
| 168 | { | |
| 169 | int i; | |
| 170 | ||
| 171 | /* RGB format */ | |
| 172 | for(i=0;i<8;i++) | |
| 173 | palette_set_color(machine, i, MAKE_RGB(pal1bit(i >> 0),pal1bit(i >> 1),pal1bit(i >> 2))); | |
| 174 | } | |
| 175 | ||
| 166 | 176 | static MACHINE_CONFIG_START( 4enraya, _4enraya_state ) |
| 167 | 177 | |
| 168 | 178 | /* basic machine hardware */ |
| 169 | 179 | MDRV_CPU_ADD("maincpu",Z80,8000000/2) |
| 170 | 180 | MDRV_CPU_PROGRAM_MAP(main_map) |
| 171 | 181 | MDRV_CPU_IO_MAP(main_portmap) |
| 172 | MDRV_CPU_ | |
| 182 | MDRV_CPU_PERIODIC_INT | |
| 173 | 183 | |
| 174 | 184 | MDRV_MACHINE_START(4enraya) |
| 175 | 185 | MDRV_MACHINE_RESET(4enraya) |
| r9427 | r9428 | |
| 182 | 192 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 183 | 193 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 184 | 194 | MDRV_GFXDECODE(4enraya) |
| 185 | MDRV_PALETTE_LENGTH(512) | |
| 186 | 195 | |
| 196 | MDRV_PALETTE_INIT(4enraya) | |
| 197 | MDRV_PALETTE_LENGTH(8) | |
| 198 | ||
| 187 | 199 | MDRV_VIDEO_START(4enraya) |
| 188 | 200 | MDRV_VIDEO_UPDATE(4enraya) |
| 189 | 201 | |
| 190 | 202 | /* sound hardware */ |
| 191 | 203 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 192 | MDRV_SOUND_ADD("aysnd", AY8910, 8000000/4 /* guess */ | |
| 204 | MDRV_SOUND_ADD("aysnd", AY8910, 8000000/4) /* guess */ | |
| 193 | 205 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) |
| 194 | 206 | MACHINE_CONFIG_END |
| 195 | 207 | |
| r9427 | r9428 | |
| 210 | 222 | ROM_LOAD( "3.bin", 0x4000, 0x2000, CRC(f6940836) SHA1(afde21ffa0c141cf73243e50da62ecfd474aaac2) ) |
| 211 | 223 | |
| 212 | 224 | ROM_REGION( 0x0020, "proms", 0 ) |
| 213 | ROM_LOAD( "1.bpr", 0x0000, 0x0020, CRC(dcbd2352) SHA1(ce72e84129ed1b455aaf648e1dfaa4333e7e7628) ) /* not used */ | |
| 225 | ROM_LOAD( "1.bpr", 0x0000, 0x0020, CRC(dcbd2352) SHA1(ce72e84129ed1b455aaf648e1dfaa4333e7e7628) ) /* system control - not used */ | |
| 214 | 226 | ROM_END |
| 215 | 227 | |
| 216 | 228 | GAME( 1990, 4enraya, 0, 4enraya, 4enraya, 0, ROT0, "IDSA", "4 En Raya", GAME_SUPPORTS_SAVE ) |
| r9427 | r9428 | |
|---|---|---|
| 1059 | 1059 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_PLAYER(2) |
| 1060 | 1060 | INPUT_PORTS_END |
| 1061 | 1061 | |
| 1062 | /* 2 players, 6 buttons, and 1 ticket dispenser (2 rows of 3 buttons) */ | |
| 1063 | static INPUT_PORTS_START( cps2_2p6bt ) | |
| 1064 | PORT_INCLUDE(cps2_2p6b) | |
| 1065 | ||
| 1066 | PORT_MODIFY("IN1") | |
| 1067 | PORT_BIT( 0x2000, IP_ACTIVE_HIGH, IPT_UNUSED ) /* Ticket Empty line*/ | |
| 1068 | INPUT_PORTS_END | |
| 1069 | ||
| 1062 | 1070 | /* 1 player and 4 buttons */ |
| 1063 | 1071 | static INPUT_PORTS_START( cps2_1p4b ) |
| 1064 | 1072 | PORT_INCLUDE(cps2_2p4b) |
| r9427 | r9428 | |
| 8144 | 8152 | GAME( 1998, sfa3, 0, cps2, cps2_2p6b, cps2, ROT0, "Capcom", "Street Fighter Alpha 3 (Euro 980904)", GAME_SUPPORTS_SAVE ) |
| 8145 | 8153 | GAME( 1998, sfa3u, sfa3, cps2, cps2_2p6b, cps2, ROT0, "Capcom", "Street Fighter Alpha 3 (USA 980904)", GAME_SUPPORTS_SAVE ) |
| 8146 | 8154 | GAME( 1998, sfa3ur1, sfa3, cps2, cps2_2p6b, cps2, ROT0, "Capcom", "Street Fighter Alpha 3 (USA 980629)", GAME_SUPPORTS_SAVE ) |
| 8147 | GAME( 1998, sfa3h, sfa3, cps2, cps2_2p6b, cps2, ROT0, "Capcom", "Street Fighter Alpha 3 (Hispanic 980629)", GAME_SUPPORTS_SAVE ) | |
| 8148 | GAME( 1998, sfa3b, sfa3, cps2, cps2_2p6b, cps2, ROT0, "Capcom", "Street Fighter Alpha 3 (Brazil 980629)", GAME_SUPPORTS_SAVE ) | |
| 8155 | GAME( 1998, sfa3h, sfa3, cps2, cps2_2p6bt,cps2, ROT0, "Capcom", "Street Fighter Alpha 3 (Hispanic 980629)", GAME_SUPPORTS_SAVE ) | |
| 8156 | GAME( 1998, sfa3b, sfa3, cps2, cps2_2p6bt,cps2, ROT0, "Capcom", "Street Fighter Alpha 3 (Brazil 980629)", GAME_SUPPORTS_SAVE ) | |
| 8149 | 8157 | GAME( 1998, sfz3j, sfa3, cps2, cps2_2p6b, cps2, ROT0, "Capcom", "Street Fighter Zero 3 (Japan 980904)", GAME_SUPPORTS_SAVE ) |
| 8150 | 8158 | GAME( 1998, sfz3jr1, sfa3, cps2, cps2_2p6b, cps2, ROT0, "Capcom", "Street Fighter Zero 3 (Japan 980727)", GAME_SUPPORTS_SAVE ) |
| 8151 | 8159 | GAME( 1998, sfz3jr2, sfa3, cps2, cps2_2p6b, cps2, ROT0, "Capcom", "Street Fighter Zero 3 (Japan 980629)", GAME_SUPPORTS_SAVE ) |
| r9427 | r9428 | |
|---|---|---|
| 65 | 65 | |
| 66 | 66 | #include "emu.h" |
| 67 | 67 | #include "cpu/z80/z80.h" |
| 68 | #include "deprecat.h" | |
| 69 | 68 | #include "sound/ay8910.h" |
| 70 | 69 | #include "includes/1942.h" |
| 71 | 70 | |
| r9427 | r9428 | |
| 75 | 74 | memory_set_bank(space->machine, "bank1", data & 0x03); |
| 76 | 75 | } |
| 77 | 76 | |
| 78 | static | |
| 77 | static | |
| 79 | 78 | { |
| 80 | if (cpu_getiloops(device) != 0) | |
| 81 | cpu_set_input_line_and_vector(device, 0, HOLD_LINE, 0xcf); /* RST 08h */ | |
| 82 | else | |
| 83 | cpu_set_input_line_and_vector(device, 0, HOLD_LINE, 0xd7); /* RST 10h - vblank */ | |
| 79 | int scanline = param; | |
| 80 | ||
| 81 | if(scanline == 240) // vblank-out irq | |
| 82 | cputag_set_input_line_and_vector(timer.machine, "maincpu", 0, HOLD_LINE, 0xd7); /* RST 10h - vblank */ | |
| 83 | ||
| 84 | if(scanline == 0) // unknown irq event, presumably vblank-in or a periodic one (writes to the soundlatch and drives freeze dip-switch) | |
| 85 | cputag_set_input_line_and_vector(timer.machine, "maincpu", 0, HOLD_LINE, 0xcf); /* RST 08h */ | |
| 84 | 86 | } |
| 85 | 87 | |
| 86 | 88 | |
| r9427 | r9428 | |
| 258 | 260 | /* basic machine hardware */ |
| 259 | 261 | MDRV_CPU_ADD("maincpu", Z80, MAIN_CPU_CLOCK) /* 4 MHz ??? */ |
| 260 | 262 | MDRV_CPU_PROGRAM_MAP(c1942_map) |
| 261 | MDRV_ | |
| 263 | MDRV_TIMER_ | |
| 262 | 264 | |
| 263 | 265 | MDRV_CPU_ADD("audiocpu", Z80, SOUND_CPU_CLOCK) /* 3 MHz ??? */ |
| 264 | 266 | MDRV_CPU_PROGRAM_MAP(sound_map) |
| 265 | MDRV_CPU_ | |
| 267 | MDRV_CPU_PERIODIC_INT | |
| 266 | 268 | |
| 267 | 269 | MDRV_MACHINE_START(1942) |
| 268 | 270 | MDRV_MACHINE_RESET(1942) |
| r9427 | r9428 | |
|---|---|---|
| 3641 | 3641 | ROM_LOAD( "sk.bpr", 0x0000, 0x0020, CRC(bce79607) SHA1(49d60fde149240bcd025f721b0fbbbdbc549a42f) ) |
| 3642 | 3642 | ROM_END |
| 3643 | 3643 | |
| 3644 | /* | |
| 3645 | sk2 [1/2] st3.BIN IDENTICAL | |
| 3646 | sk3 [1/2] 5st.BIN IDENTICAL | |
| 3647 | sk6 [1/2] 9.BIN IDENTICAL | |
| 3648 | sk5 [1/2] 11.BIN IDENTICAL | |
| 3649 | sk1 [2/2] st2.BIN IDENTICAL | |
| 3650 | sk2 [2/2] st4.BIN IDENTICAL | |
| 3651 | sk3 [2/2] 6st.BIN IDENTICAL | |
| 3652 | sk4 [2/2] 8st.BIN IDENTICAL | |
| 3653 | sk5 [2/2] 12.BIN IDENTICAL | |
| 3654 | sk6 [2/2] 10.BIN IDENTICAL | |
| 3655 | sk1 [1/2] st1.BIN 99.951172% | |
| 3656 | sk4 [1/2] 7st.BIN 99.951172% | |
| 3657 | sk.bpr NO MATCH | |
| 3658 | */ | |
| 3659 | ||
| 3660 | ROM_START( streaknga ) | |
| 3661 | ROM_REGION( 0x10000, "maincpu", 0 ) | |
| 3662 | ROM_LOAD( "st1.bin", 0x0000, 0x0800, CRC(c827e124) SHA1(85d84bb678cb80e7ca4a591b6c30a247e9aac213) ) | |
| 3663 | ROM_LOAD( "st2.bin", 0x0800, 0x0800, CRC(b01d4f8f) SHA1(1116374b5e90c7e525319c92d6dd9ba6641ca231) ) | |
| 3664 | ROM_LOAD( "st3.bin", 0x1000, 0x0800, CRC(c7a9c493) SHA1(58c25bdf68807ecfe6fcaf90137a5f8701696d1d) ) | |
| 3665 | ROM_LOAD( "st4.bin", 0x1800, 0x0800, CRC(12487c75) SHA1(12796dab558ab13b42ee87181d60c3fa290c64e4) ) | |
| 3666 | ROM_LOAD( "5st.bin", 0x2000, 0x0800, CRC(f9f9e2be) SHA1(3efa850361137f50a42de9dcd868519fbc4680b4) ) | |
| 3667 | ROM_LOAD( "6st.bin", 0x2800, 0x0800, CRC(c22fe6c2) SHA1(fb8bf579f6bd413ae5ef49facf1d21125da52833) ) | |
| 3668 | ROM_LOAD( "7st.bin", 0x3000, 0x0800, CRC(9cd7869a) SHA1(5edccf4a1dff184ebbec8748216353805abff29d) ) | |
| 3669 | ROM_LOAD( "8st.bin", 0x3800, 0x0800, CRC(5e750ad3) SHA1(55f77564a9bb07d66c2f13ee1a4ff39c8029a383) ) | |
| 3670 | ||
| 3671 | ROM_REGION( 0x1000, "gfx1", 0 ) | |
| 3672 | ROM_LOAD( "11.bin", 0x0000, 0x0800, CRC(cddd8924) SHA1(340ed1d4da62388d49838db25f09a569a0e17dee) ) | |
| 3673 | ROM_LOAD( "12.bin", 0x0800, 0x0800, CRC(10cda095) SHA1(488def62d52296c7482b349c1aeaeaa1d45bad77) ) | |
| 3674 | ||
| 3675 | ROM_REGION( 0x1000, "gfx2", 0 ) | |
| 3676 | ROM_LOAD( "9.bin", 0x0000, 0x0800, CRC(6a2a8a0f) SHA1(1822c2f4c48740fee2d4e048410db5e846c8a2db) ) | |
| 3677 | ROM_LOAD( "10.bin", 0x0800, 0x0800, CRC(3563dfbe) SHA1(9056b618e19a40cc96d90f393c1c40a573497ca7) ) | |
| 3678 | ||
| 3679 | ROM_REGION( 0x0020, "proms", 0 ) /* from parent set */ | |
| 3680 | ROM_LOAD( "sk.bpr", 0x0000, 0x0020, BAD_DUMP CRC(bce79607) SHA1(49d60fde149240bcd025f721b0fbbbdbc549a42f) ) | |
| 3681 | ROM_END | |
| 3682 | ||
| 3644 | 3683 | ROM_START( pacmanbl ) /* Artic Multi-System */ |
| 3645 | 3684 | ROM_REGION( 0x10000, "maincpu", 0 ) |
| 3646 | 3685 | ROM_LOAD( "1", 0x0000, 0x0800, CRC(6718df42) SHA1(ee15c3f583d381fba4878f824f83d04479a0cee5) ) |
| r9427 | r9428 | |
| 5929 | 5968 | |
| 5930 | 5969 | |
| 5931 | 5970 | /* Artic Multi-System games - separate tile/sprite ROMs */ |
| 5932 | GAME( 1981, streakng, 0, pacmanbl, streakng, galaxian, ROT90, "Shoei", "Streaking", GAME_IMPERFECT_COLORS | GAME_SUPPORTS_SAVE ) | |
| 5971 | GAME( 1980, streakng, 0, pacmanbl, streakng, galaxian, ROT90, "Shoei", "Streaking (set 1)", GAME_IMPERFECT_COLORS | GAME_SUPPORTS_SAVE ) | |
| 5972 | GAME( 1980, streaknga,streakng, pacmanbl, streakng, galaxian, ROT90, "Shoei", "Streaking (set 2)", GAME_IMPERFECT_COLORS | GAME_SUPPORTS_SAVE ) | |
| 5933 | 5973 | GAME( 1981, pacmanbl, puckman, pacmanbl, pacmanbl, pacmanbl, ROT270, "bootleg", "Pac-Man (Galaxian hardware, set 1)", GAME_SUPPORTS_SAVE ) |
| 5934 | 5974 | GAME( 1981, pacmanbla,puckman, pacmanbl, pacmanbl, pacmanbl, ROT270, "bootleg", "Pac-Man (Galaxian hardware, set 2)", GAME_SUPPORTS_SAVE ) |
| 5935 | 5975 | GAME( 1981, phoenxp2, phoenix, galaxian, phoenxp2, batman2, ROT270, "bootleg", "Phoenix Part 2", GAME_SUPPORTS_SAVE ) |
| r9427 | r9428 | |
|---|---|---|
| 675 | 675 | static ADDRESS_MAP_START( aristmk4_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 676 | 676 | AM_RANGE(0x0000, 0x07ff) AM_RAM AM_BASE(&mkiv_vram) // video ram - chips U49 / U50 |
| 677 | 677 | AM_RANGE(0x0800, 0x17ff) AM_RAM |
| 678 | AM_RANGE(0x1800, 0x1801) AM_DEVREADWRITE("crtc", mc6845_register_r, mc6845_register_w) | |
| 678 | AM_RANGE(0x1800, 0x1800) AM_DEVWRITE("crtc", mc6845_address_w) | |
| 679 | AM_RANGE(0x1801, 0x1801) AM_DEVREADWRITE("crtc", mc6845_register_r, mc6845_register_w) | |
| 679 | 680 | AM_RANGE(0x1c00, 0x1cff) AM_WRITE(mk4_printer_w) |
| 680 | 681 | AM_RANGE(0x1900, 0x19ff) AM_READ(mk4_printer_r) |
| 681 | 682 | AM_RANGE(0x2000, 0x3fff) AM_ROM // graphics rom map |
| r9427 | r9428 | |
|---|---|---|
| 57 | 57 | |
| 58 | 58 | #include "emu.h" |
| 59 | 59 | #include "cpu/m68000/m68000.h" |
| 60 | #include "deprecat.h" | |
| 61 | 60 | #include "sound/okim6295.h" |
| 62 | 61 | |
| 63 | 62 | static tilemap_t *tx_tilemap,*bg_tilemap; |
| r9427 | r9428 | |
| 555 | 554 | GFXDECODE_ENTRY( "gfx3", 0, tilelayout, 0x1800, 256 ) |
| 556 | 555 | GFXDECODE_END |
| 557 | 556 | |
| 558 | static | |
| 557 | static | |
| 559 | 558 | { |
| 560 | switch ( cpu_getiloops(device) ) | |
| 561 | { | |
| 562 | case 0: cpu_set_input_line(device, 3, HOLD_LINE); | |
| 563 | case 1: cpu_set_input_line(device, 2, HOLD_LINE); | |
| 564 | } | |
| 559 | int scanline = param; | |
| 560 | ||
| 561 | if(scanline == 240) // vblank-out irq | |
| 562 | cputag_set_input_line(timer.machine, "maincpu", 2, HOLD_LINE); | |
| 563 | ||
| 564 | if(scanline == 0) // vblank-in irq? (update palette and layers) | |
| 565 | cputag_set_input_line(timer.machine, "maincpu", 3, HOLD_LINE); | |
| 565 | 566 | } |
| 566 | 567 | |
| 567 | 568 | static MACHINE_CONFIG_START( acommand, driver_device ) |
| r9427 | r9428 | |
| 569 | 570 | /* basic machine hardware */ |
| 570 | 571 | MDRV_CPU_ADD("maincpu",M68000,12000000) |
| 571 | 572 | MDRV_CPU_PROGRAM_MAP(acommand_map) |
| 572 | MDRV_ | |
| 573 | MDRV_TIMER_ | |
| 573 | 574 | |
| 574 | 575 | /* video hardware */ |
| 575 | 576 | MDRV_SCREEN_ADD("screen", RASTER) |
| r9427 | r9428 | |
|---|---|---|
| 231 | 231 | H1 (CPU) 1994 837-10389 315-5800 315-5801 315-5802 |
| 232 | 232 | H1 (Video) 1994 837-9621 315-5803 315-5864 |
| 233 | 233 | |
| 234 | ||
| 235 | NOTE: While the hardware and title screen might list 1994 as a copyright, MAME uses 1995 due to the | |
| 236 | abudance of evidence in trade journals and even it's own service manuals showing the year as 1995. | |
| 237 | ||
| 238 | References: | |
| 239 | Arcade game magazine called 'Gamest' show released on 04.28.1995 | |
| 240 | VGL (Ultimate Video Game List published by AMP group) - year is printed as '94(4.95)' | |
| 241 | Sega Arcade History (published by Enterbrain) is '1995/4'. | |
| 242 | ||
| 243 | ||
| 234 | 244 | ******************************************************************************************************/ |
| 235 | 245 | |
| 246 | ||
| 236 | 247 | #include "emu.h" |
| 237 | 248 | #include "debugger.h" |
| 238 | 249 | #include "cpu/sh2/sh2.h" |
| r9427 | r9428 | |
|---|---|---|
| 5259 | 5259 | ROM_LOAD_OPTIONAL( "bf17ex.id", 0x00, 0x20, CRC(38bd8ec4) SHA1(4e6b85348f2fa821934f7666f77ba0f016e200ec) ) |
| 5260 | 5260 | ROM_END |
| 5261 | 5261 | |
| 5262 | /* Devil Island */ | |
| 5263 | ROM_START( dvisland ) | |
| 5264 | ROM_REGION( 0x80000, "maincpu", 0 ) /* Z80 Code */ | |
| 5265 | ROM_LOAD( "did14r.bin", 0x00000, 0x80000, CRC(28c3a7eb) SHA1(5389338ef42e05542e3ff052b2bbc918cf619874) ) | |
| 5266 | ||
| 5267 | ROM_REGION( 0x040000, "oki", ROMREGION_ERASE00 ) /* Samples */ | |
| 5268 | ROM_LOAD( "dirom2.bin", 0x00000, 0x40000, CRC(9fddeea4) SHA1(6651b70011798a2e58a468b57323da344bd4b2b6) ) | |
| 5269 | ||
| 5270 | ROM_REGION( 0x100000, "gfx1", 0 ) | |
| 5271 | ROM_LOAD16_BYTE( "dirom3.bin", 0x00000, 0x80000, CRC(a61036ce) SHA1(d125899ae7d672f258cd383949fffc73bf232ffd) ) | |
| 5272 | ROM_LOAD16_BYTE( "dirom4.bin", 0x00001, 0x80000, CRC(4b34ea74) SHA1(9564f65f48354f589e291fc505e187ae8a3b0d71) ) | |
| 5273 | ||
| 5274 | ROM_REGION( 0x100000, "gfx2", 0 ) | |
| 5275 | ROM_LOAD16_BYTE( "dirom5.bin", 0x00000, 0x80000, CRC(041eb83f) SHA1(d50784b52ac3b801cfd83adba9ced0f9eab39890) ) | |
| 5276 | ROM_LOAD16_BYTE( "dirom6.bin", 0x00001, 0x80000, CRC(291cbe5c) SHA1(fd15dceff0705c8c8d992e5047c7280247e21520) ) | |
| 5277 | ||
| 5278 | ROM_REGION( 0x20, "defaults", 0 ) /* default settings */ | |
| 5279 | ROM_LOAD_OPTIONAL( "di24re.id", 0x00, 0x20, CRC(d69c8ee5) SHA1(122c196fe03817b5c507339c7c64d6ee7ae12bad) ) | |
| 5280 | ROM_END | |
| 5281 | ||
| 5282 | ROM_START( dvislando ) | |
| 5283 | ROM_REGION( 0x80000, "maincpu", 0 ) /* Z80 Code */ | |
| 5284 | ROM_LOAD( "did10r.bin", 0x00000, 0x80000, CRC(cfd9f256) SHA1(a7786c47094f8ace2d83bc4d6f1cf4b4367d13ca) ) | |
| 5285 | ||
| 5286 | ROM_REGION( 0x040000, "oki", ROMREGION_ERASE00 ) /* Samples */ | |
| 5287 | ROM_LOAD( "dirom2.bin", 0x00000, 0x40000, CRC(9fddeea4) SHA1(6651b70011798a2e58a468b57323da344bd4b2b6) ) | |
| 5288 | ||
| 5289 | ROM_REGION( 0x100000, "gfx1", 0 ) | |
| 5290 | ROM_LOAD16_BYTE( "dirom3.bin", 0x00000, 0x80000, CRC(a61036ce) SHA1(d125899ae7d672f258cd383949fffc73bf232ffd) ) | |
| 5291 | ROM_LOAD16_BYTE( "dirom4.bin", 0x00001, 0x80000, CRC(4b34ea74) SHA1(9564f65f48354f589e291fc505e187ae8a3b0d71) ) | |
| 5292 | ||
| 5293 | ROM_REGION( 0x100000, "gfx2", 0 ) | |
| 5294 | ROM_LOAD16_BYTE( "dirom5.bin", 0x00000, 0x80000, CRC(041eb83f) SHA1(d50784b52ac3b801cfd83adba9ced0f9eab39890) ) | |
| 5295 | ROM_LOAD16_BYTE( "dirom6.bin", 0x00001, 0x80000, CRC(291cbe5c) SHA1(fd15dceff0705c8c8d992e5047c7280247e21520) ) | |
| 5296 | ||
| 5297 | ROM_REGION( 0x20, "defaults", 0 ) /* default settings */ | |
| 5298 | ROM_LOAD_OPTIONAL( "di20re.id", 0x00, 0x20, CRC(8b70dfe9) SHA1(080e9797c766f116e794d6ba48bd38a922da740e) ) | |
| 5299 | ROM_END | |
| 5300 | ||
| 5262 | 5301 | /* Around The World */ |
| 5263 | 5302 | ROM_START( atworld ) |
| 5264 | 5303 | ROM_REGION( 0x80000, "maincpu", 0 ) /* Z80 Code */ |
| r9427 | r9428 | |
| 5318 | 5357 | ROM_LOAD_OPTIONAL( "fcs40r1.id", 0x00, 0x20, CRC(b3638cdb) SHA1(283824c57f3f62f6e2b505f6e13b100a7d7f33af) ) |
| 5319 | 5358 | ROM_END |
| 5320 | 5359 | |
| 5321 | ROM_START( dvisland ) | |
| 5322 | ROM_REGION( 0x80000, "maincpu", 0 ) /* Z80 Code */ | |
| 5323 | ROM_LOAD( "did14r.bin", 0x00000, 0x80000, CRC(28c3a7eb) SHA1(5389338ef42e05542e3ff052b2bbc918cf619874) ) | |
| 5324 | ||
| 5325 | ROM_REGION( 0x040000, "oki", ROMREGION_ERASE00 ) /* Samples */ | |
| 5326 | ROM_LOAD( "dirom2.bin", 0x00000, 0x40000, NO_DUMP ) | |
| 5327 | ||
| 5328 | ROM_REGION( 0x100000, "gfx1", 0 ) | |
| 5329 | ROM_LOAD16_BYTE( "dirom3.bin", 0x00000, 0x80000, NO_DUMP ) | |
| 5330 | ROM_LOAD16_BYTE( "dirom4.bin", 0x00001, 0x80000, NO_DUMP ) | |
| 5331 | ||
| 5332 | ROM_REGION( 0x100000, "gfx2", 0 ) | |
| 5333 | ROM_LOAD16_BYTE( "dirom5.bin", 0x00000, 0x80000, NO_DUMP ) | |
| 5334 | ROM_LOAD16_BYTE( "dirom6.bin", 0x00001, 0x80000, NO_DUMP ) | |
| 5335 | ||
| 5336 | ROM_REGION( 0x20, "defaults", 0 ) /* default settings */ | |
| 5337 | ROM_LOAD_OPTIONAL( "di24re.id", 0x00, 0x20, CRC(d69c8ee5) SHA1(122c196fe03817b5c507339c7c64d6ee7ae12bad) ) | |
| 5338 | ROM_END | |
| 5339 | ||
| 5340 | 5360 | ROM_START( funriver ) |
| 5341 | 5361 | ROM_REGION( 0x80000, "maincpu", 0 ) /* Z80 Code */ |
| 5342 | 5362 | ROM_LOAD( "frd14r.bin", 0x00000, 0x80000, CRC(03ffabcc) SHA1(0e65be88dc4158f77082e5b50836197dd0e397da) ) |
| r9427 | r9428 | |
| 5899 | 5919 | GAME( 2006, bugfeverv2, bugfever, sfbonus, amcoe1_reels3, bugfeverv2, ROT0, "Amcoe", "Bugs Fever (Version 1.7E Dual)", 0) |
| 5900 | 5920 | GAME( 2006, bugfevero, bugfever, sfbonus, amcoe1_reels3, bugfever, ROT0, "Amcoe", "Bugs Fever (Version 1.6R CGA)", 0) |
| 5901 | 5921 | |
| 5922 | GAME( 2006, dvisland, 0, sfbonus, amcoe1_reels3, dvisland, ROT0, "Amcoe", "Devil Island (Version 1.4R CGA)", 0) | |
| 5923 | GAME( 2006, dvislando, dvisland, sfbonus, amcoe1_reels3, dvisland, ROT0, "Amcoe", "Devil Island (Version 1.0R CGA)", 0) | |
| 5924 | ||
| 5902 | 5925 | GAME( 2007, atworld, 0, sfbonus, amcoe1_reels3, atworld, ROT0, "Amcoe", "Around The World (Version 1.3E CGA)", 0) /* Year according to Amcoe web site */ |
| 5903 | 5926 | GAME( 2007, atworldd1, atworld, sfbonus, amcoe1_reels3, atworldd, ROT0, "Amcoe", "Around The World (Version 1.3R CGA)", 0) /* Year according to Amcoe web site */ |
| 5904 | 5927 | |
| r9427 | r9428 | |
| 5906 | 5929 | GAME( 2005, funriver, 0, sfbonus, amcoe1_reels3, funriver, ROT0, "Amcoe", "Fun River (set 1)", GAME_NOT_WORKING) |
| 5907 | 5930 | GAME( 2005, funriverv, funriver, sfbonus, amcoe1_reels3, funriverv, ROT0, "Amcoe", "Fun River (set 2)", GAME_NOT_WORKING) |
| 5908 | 5931 | GAME( 2006, version4, 0, sfbonus, amcoe1_reels3, version4, ROT0, "Amcoe", "Version 4 (Version 4.2R)", GAME_NOT_WORKING) |
| 5909 | GAME( 2006, dvisland, 0, sfbonus, amcoe1_reels3, dvisland, ROT0, "Amcoe", "Devil Island", GAME_NOT_WORKING) | |
| 5910 | 5932 | GAME( 200?, spooky, 0, sfbonus, amcoe1_reels3, spooky, ROT0, "Amcoe", "Spooky Night (Version 2.0.4)", GAME_NOT_WORKING) /* After Around The World */ |
| 5911 | 5933 | GAME( 200?, fbdeluxe, 0, sfbonus, amcoe1_reels3, fbdeluxe, ROT0, "Amcoe", "Fruit Bonus Deluxe (Version 1.0.7)", GAME_NOT_WORKING) /* After Around The World */ |
| 5912 | 5934 |
| r9427 | r9428 | |
|---|---|---|
| 2681 | 2681 | |
| 2682 | 2682 | current_fifo_read_pos++; |
| 2683 | 2683 | |
| 2684 | // | |
| 2684 | // printf("reading FIFO!\n"); | |
| 2685 | 2685 | |
| 2686 | 2686 | if (current_fifo_readblock == fifo_block_a && !fifo_block_a_full) |
| 2687 | 2687 | printf("Fifo block a isn't filled!\n"); |
| r9427 | r9428 | |
| 2741 | 2741 | dreq_src_addr[offset&1] = ((offset&1) == 0) ? (data & 0xff) : (data & 0xfffe); |
| 2742 | 2742 | |
| 2743 | 2743 | //if((dreq_src_addr[0]<<16)|dreq_src_addr[1]) |
| 2744 | // | |
| 2744 | // printf("DREQ set SRC = %08x\n",(dreq_src_addr[0]<<16)|dreq_src_addr[1]); | |
| 2745 | 2745 | |
| 2746 | 2746 | break; |
| 2747 | 2747 | |
| r9427 | r9428 | |
| 2756 | 2756 | dreq_dst_addr[offset&1] = ((offset&1) == 0) ? (data & 0xff) : (data & 0xffff); |
| 2757 | 2757 | |
| 2758 | 2758 | //if((dreq_dst_addr[0]<<16)|dreq_dst_addr[1]) |
| 2759 | // | |
| 2759 | // printf("DREQ set DST = %08x\n",(dreq_dst_addr[0]<<16)|dreq_dst_addr[1]); | |
| 2760 | 2760 | |
| 2761 | 2761 | break; |
| 2762 | 2762 | |
| r9427 | r9428 | |
| 2769 | 2769 | |
| 2770 | 2770 | dreq_size = data & 0xfffc; |
| 2771 | 2771 | |
| 2772 | // if(dreq_size) | |
| 2773 | // printf("DREQ set SIZE = %04x\n",dreq_size); | |
| 2772 | // if(dreq_size) | |
| 2773 | // printf("DREQ set SIZE = %04x\n",dreq_size); | |
| 2774 | 2774 | |
| 2775 | 2775 | break; |
| 2776 | 2776 | |
| r9427 | r9428 | |
| 3208 | 3208 | |
| 3209 | 3209 | |
| 3210 | 3210 | |
| 3211 | // | |
| 3211 | // printf("_32x_68k_a15180_r (a15180) %04x\n",mem_mask); | |
| 3212 | 3212 | |
| 3213 | 3213 | // read needs authorization too I think, undefined behavior otherwise |
| 3214 | 3214 | switch (offset) |
| r9427 | r9428 | |
| 3382 | 3382 | |
| 3383 | 3383 | case 0x0a/2: |
| 3384 | 3384 | // bit 0 is the framebuffer select, change is delayed until vblank; |
| 3385 | // | |
| 3385 | // _32x_a1518a_reg = (_32x_a1518a_reg & 0xfffe); | |
| 3386 | 3386 | if (ACCESSING_BITS_0_7) |
| 3387 | 3387 | { |
| 3388 | 3388 | _32x_fb_swap = data & 1; |
| r9427 | r9428 | |
| 4070 | 4070 | static READ16_HANDLER( segacd_sub_memory_mode_r ) |
| 4071 | 4071 | { |
| 4072 | 4072 | return (segacd_ram_writeprotect_bits << 8) | |
| 4073 | | |
| 4073 | | |
| 4074 | 4074 | (segacd_memory_priority_mode << 3) | |
| 4075 | 4075 | (segacd_ram_mode << 2) | |
| 4076 | 4076 | ((segacd_dmna) << 1) | |
| r9427 | r9428 | |
| 4097 | 4097 | { |
| 4098 | 4098 | if (segacd_dmna) |
| 4099 | 4099 | { |
| 4100 | // printf("sub ret\n"); | |
| 4101 | // segacd_ret = 1; | |
| 4102 | // segacd_dmna = 0; | |
| 4100 | // printf("sub ret\n"); | |
| 4101 | // segacd_ret = 1; | |
| 4102 | // segacd_dmna = 0; | |
| 4103 | 4103 | timer_adjust_oneshot(segacd_dmna_ret_timer, ATTOTIME_IN_USEC(100), 0); |
| 4104 | 4104 | } |
| 4105 | 4105 | } |
| r9427 | r9428 | |
| 4494 | 4494 | |
| 4495 | 4495 | static READ16_HANDLER( scd_hint_vector_r ) |
| 4496 | 4496 | { |
| 4497 | // | |
| 4497 | // printf("read HINT offset %d\n", offset); | |
| 4498 | 4498 | |
| 4499 | 4499 | switch (offset&1) |
| 4500 | 4500 | { |
| r9427 | r9428 | |
| 4545 | 4545 | /* |
| 4546 | 4546 | static const gfx_layout sega_8x8_layout = |
| 4547 | 4547 | { |
| 4548 | 8,8, | |
| 4549 | SEGACD_NUM_TILES16, | |
| 4550 | 4, | |
| 4551 | { 0,1,2,3 }, | |
| 4552 | { 8,12,0,4,24,28,16,20 }, | |
| 4553 | { 0*32, 1*32, 2*32, 3*32, 4*32, 5*32, 6*32, 7*32 }, | |
| 4554 | 8*32 | |
| 4548 | 8,8, | |
| 4549 | SEGACD_NUM_TILES16, | |
| 4550 | 4, | |
| 4551 | { 0,1,2,3 }, | |
| 4552 | { 8,12,0,4,24,28,16,20 }, | |
| 4553 | { 0*32, 1*32, 2*32, 3*32, 4*32, 5*32, 6*32, 7*32 }, | |
| 4554 | 8*32 | |
| 4555 | 4555 | }; |
| 4556 | 4556 | */ |
| 4557 | 4557 | |
| r9427 | r9428 | |
| 4606 | 4606 | |
| 4607 | 4607 | #define _32x32_SEQUENCE_2 \ |
| 4608 | 4608 | { 0*32, 1*32, 2*32, 3*32, 4*32, 5*32, 6*32, 7*32, \ |
| 4609 | 8*32, 9*32, 10*32, 11*32, 12*32, 13*32, 14*32, 15*32, \ | |
| 4610 | 16*32,17*32,18*32,19*32,20*32,21*32,22*32,23*32, \ | |
| 4609 | 8*32, 9*32, 10*32, 11*32, 12*32, 13*32, 14*32, 15*32, \ | |
| 4610 | 16*32,17*32,18*32,19*32,20*32,21*32,22*32,23*32, \ | |
| 4611 | 4611 | 24*32,25*32, 26*32, 27*32, 28*32, 29*32, 30*32, 31*32}, \ |
| 4612 | 4612 | |
| 4613 | 4613 | #define _32x32_SEQUENCE_2_FLIP \ |
| r9427 | r9428 | |
| 5063 | 5063 | |
| 5064 | 5064 | /* as a temporary measure we use the MAME tilemaps, this is hideously inefficient as we have to mark the active one as |
| 5065 | 5065 | dirty before each operation due to the RAM based tiles. For the larger tilemaps this means we have to re-render a 4096x4096 |
| 5066 | bitmap to the tilemap cache on each blit operation just to copy the few needed tiles out of it, needless to say, this is SLOW. | |
| 5067 | Eventually the tilemaps will be replaced with a get_pixel function which will perform all the needed lookups on a per-pixel | |
| 5068 | basis instead of re-rendering the whole thing */ | |
| 5066 | bitmap to the tilemap cache on each blit operation just to copy the few needed tiles out of it, needless to say, this is SLOW. | |
| 5067 | Eventually the tilemaps will be replaced with a get_pixel function which will perform all the needed lookups on a per-pixel | |
| 5068 | basis instead of re-rendering the whole thing */ | |
| 5069 | 5069 | segacd_stampmap[0] = tilemap_create(machine, get_stampmap_16x16_1x1_tile_info, tilemap_scan_rows, 16, 16, 16, 16); |
| 5070 | 5070 | segacd_stampmap[1] = tilemap_create(machine, get_stampmap_32x32_1x1_tile_info, tilemap_scan_rows, 32, 32, 8, 8); |
| 5071 | 5071 | segacd_stampmap[2] = tilemap_create(machine, get_stampmap_16x16_16x16_tile_info, tilemap_scan_rows, 16, 16, 256, 256); // 128kb! |
| r9427 | r9428 | |
| 5534 | 5534 | INLINE UINT8 read_pixel_from_stampmap( running_machine* machine, bitmap_t* srcbitmap, int x, int y) |
| 5535 | 5535 | { |
| 5536 | 5536 | /* |
| 5537 | if (!srcbitmap) | |
| 5538 | { | |
| 5539 | return mame_rand(machine); | |
| 5540 | } | |
| 5537 | if (!srcbitmap) | |
| 5538 | { | |
| 5539 | return mame_rand(machine); | |
| 5540 | } | |
| 5541 | 5541 | |
| 5542 | if (x >= srcbitmap->width) return 0; | |
| 5543 | if (y >= srcbitmap->height) return 0; | |
| 5542 | if (x >= srcbitmap->width) return 0; | |
| 5543 | if (y >= srcbitmap->height) return 0; | |
| 5544 | 5544 | |
| 5545 | ||
| 5545 | UINT16* cacheptr = BITMAP_ADDR16( srcbitmap, y, x); | |
| 5546 | 5546 | |
| 5547 | ||
| 5547 | return cacheptr[0] & 0xf; | |
| 5548 | 5548 | */ |
| 5549 | 5549 | |
| 5550 | 5550 | switch (segacd_get_active_stampmap_tilemap()&3) |
| r9427 | r9428 | |
| 5820 | 5820 | |
| 5821 | 5821 | AM_RANGE(0xff8004 ,0xff8005) AM_READWRITE(segacd_cdc_mode_address_r, segacd_cdc_mode_address_w) |
| 5822 | 5822 | AM_RANGE(0xff8006 ,0xff8007) AM_READWRITE(segacd_cdc_data_r, segacd_cdc_data_w) |
| 5823 | // AM_RANGE(0xff8008, 0xff8009) // CDC Host Data | |
| 5824 | // AM_RANGE(0xff800a, 0xff800b) // CDC DMA Address | |
| 5825 | // AM_RANGE(0xff800c, 0xff800d) // Stopwatch timer | |
| 5823 | // AM_RANGE(0xff8008, 0xff8009) // CDC Host Data | |
| 5824 | // AM_RANGE(0xff800a, 0xff800b) // CDC DMA Address | |
| 5825 | // AM_RANGE(0xff800c, 0xff800d) // Stopwatch timer | |
| 5826 | 5826 | AM_RANGE(0xff800e ,0xff800f) AM_READWRITE(segacd_comms_flags_r, segacd_comms_flags_subcpu_w) |
| 5827 | 5827 | AM_RANGE(0xff8010 ,0xff801f) AM_READWRITE(segacd_comms_sub_part1_r, segacd_comms_sub_part1_w) |
| 5828 | 5828 | AM_RANGE(0xff8020 ,0xff802f) AM_READWRITE(segacd_comms_sub_part2_r, segacd_comms_sub_part2_w) |
| r9427 | r9428 | |
| 5832 | 5832 | AM_RANGE(0xff8036, 0xff8037) AM_READWRITE(segacd_cdd_ctrl_r,segacd_cdd_ctrl_w) |
| 5833 | 5833 | AM_RANGE(0xff8038, 0xff8041) AM_READ8(segacd_cdd_rx_r,0xffff) |
| 5834 | 5834 | AM_RANGE(0xff8042, 0xff804b) AM_WRITE8(segacd_cdd_tx_w,0xffff) |
| 5835 | // AM_RANGE(0xff804c, 0xff804d) // Font Color | |
| 5836 | // AM_RANGE(0xff804e, 0xff804f) // Font bit | |
| 5837 | // AM_RANGE(0xff8050, 0xff8057) // Font data (read only) | |
| 5835 | // AM_RANGE(0xff804c, 0xff804d) // Font Color | |
| 5836 | // AM_RANGE(0xff804e, 0xff804f) // Font bit | |
| 5837 | // AM_RANGE(0xff8050, 0xff8057) // Font data (read only) | |
| 5838 | 5838 | AM_RANGE(0xff8058, 0xff8059) AM_READWRITE(segacd_stampsize_r, segacd_stampsize_w) // Stamp size |
| 5839 | 5839 | AM_RANGE(0xff805a, 0xff805b) AM_READWRITE(segacd_stampmap_base_address_r, segacd_stampmap_base_address_w) // Stamp map base address |
| 5840 | 5840 | AM_RANGE(0xff805c, 0xff805d) AM_READWRITE(segacd_imagebuffer_vcell_size_r, segacd_imagebuffer_vcell_size_w)// Image buffer V cell size |
| r9427 | r9428 | |
| 5843 | 5843 | AM_RANGE(0xff8062, 0xff8063) AM_READWRITE(segacd_imagebuffer_hdot_size_r, segacd_imagebuffer_hdot_size_w) // Image buffer H dot size |
| 5844 | 5844 | AM_RANGE(0xff8064, 0xff8065) AM_READWRITE(segacd_imagebuffer_vdot_size_r, segacd_imagebuffer_vdot_size_w ) // Image buffer V dot size |
| 5845 | 5845 | AM_RANGE(0xff8066, 0xff8067) AM_WRITE(segacd_trace_vector_base_address_w)// Trace vector base address |
| 5846 | // | |
| 5846 | // AM_RANGE(0xff8068, 0xff8069) // Subcode address | |
| 5847 | 5847 | |
| 5848 | // AM_RANGE(0xff8100, 0xff817f) // Subcode buffer area | |
| 5849 | // AM_RANGE(0xff8180, 0xff81ff) // mirror of subcode buffer area | |
| 5848 | // AM_RANGE(0xff8100, 0xff817f) // Subcode buffer area | |
| 5849 | // AM_RANGE(0xff8180, 0xff81ff) // mirror of subcode buffer area | |
| 5850 | 5850 | |
| 5851 | 5851 | ADDRESS_MAP_END |
| 5852 | 5852 |
| r9427 | r9428 | |
|---|---|---|
| 191 | 191 | scc68070_register_globals(machine, &state->scc68070_regs); |
| 192 | 192 | } |
| 193 | 193 | |
| 194 | static | |
| 194 | static MACHINE | |
| 195 | 195 | { |
| 196 | cdi_state *state = machine->driver_data<cdi_state>(); | |
| 197 | UINT16 *src = (UINT16*)memory_region(machine, "maincpu"); | |
| 198 | UINT16 *dst = state->planea; | |
| 199 | //running_device *cdrom_dev = machine->device("cdrom"); | |
| 200 | memcpy(dst, src, 0x8); | |
| 201 | ||
| 202 | scc68070_init(machine, &state->scc68070_regs); | |
| 203 | ||
| 204 | machine->device("maincpu")->reset(); | |
| 205 | ||
| 206 | state->dmadac[0] = machine->device<dmadac_sound_device>("dac1"); | |
| 207 | state->dmadac[1] = machine->device<dmadac_sound_device>("dac2"); | |
| 208 | } | |
| 209 | ||
| 210 | static MACHINE_RESET( quizrd12 ) | |
| 211 | { | |
| 212 | MACHINE_RESET_CALL( cdi ); | |
| 213 | ||
| 196 | 214 | scc68070_set_quizard_mcu_value(machine, 0x021f); |
| 197 | 215 | scc68070_set_quizard_mcu_ack(machine, 0x5a); |
| 198 | 216 | } |
| 199 | 217 | |
| 200 | static | |
| 218 | static MACHINE | |
| 201 | 219 | { |
| 220 | MACHINE_RESET_CALL( cdi ); | |
| 221 | ||
| 202 | 222 | scc68070_set_quizard_mcu_value(machine, 0x021f); |
| 203 | 223 | scc68070_set_quizard_mcu_ack(machine, 0x5a); |
| 204 | 224 | } |
| 205 | 225 | |
| 206 | static | |
| 226 | static MACHINE | |
| 207 | 227 | { |
| 228 | MACHINE_RESET_CALL( cdi ); | |
| 229 | ||
| 208 | 230 | // 0x2b1: Italian |
| 209 | 231 | // 0x001: French |
| 210 | 232 | // 0x188: German |
| 211 | 233 | |
| 212 | 234 | scc68070_set_quizard_mcu_value(machine, 0x188); |
| 213 | ||
| 214 | 235 | scc68070_set_quizard_mcu_ack(machine, 0x59); |
| 215 | 236 | } |
| 216 | 237 | |
| 217 | static | |
| 238 | static MACHINE | |
| 218 | 239 | { |
| 240 | MACHINE_RESET_CALL( cdi ); | |
| 241 | ||
| 219 | 242 | scc68070_set_quizard_mcu_value(machine, 0x00ae); |
| 220 | 243 | scc68070_set_quizard_mcu_ack(machine, 0x58); |
| 221 | 244 | } |
| 222 | 245 | |
| 223 | static | |
| 246 | static MACHINE | |
| 224 | 247 | { |
| 248 | MACHINE_RESET_CALL( cdi ); | |
| 249 | ||
| 250 | //scc68070_set_quizard_mcu_value(machine, 0x0139); | |
| 225 | 251 | scc68070_set_quizard_mcu_value(machine, 0x011f); |
| 226 | 252 | scc68070_set_quizard_mcu_ack(machine, 0x57); |
| 227 | 253 | } |
| 228 | 254 | |
| 229 | static | |
| 255 | static MACHINE | |
| 230 | 256 | { |
| 257 | MACHINE_RESET_CALL( cdi ); | |
| 258 | ||
| 231 | 259 | scc68070_set_quizard_mcu_value(machine, 0x011f); |
| 232 | 260 | scc68070_set_quizard_mcu_ack(machine, 0x57); |
| 233 | 261 | } |
| 234 | 262 | |
| 235 | static MACHINE_RESET( cdi ) | |
| 236 | { | |
| 237 | cdi_state *state = machine->driver_data<cdi_state>(); | |
| 238 | UINT16 *src = (UINT16*)memory_region(machine, "maincpu"); | |
| 239 | UINT16 *dst = state->planea; | |
| 240 | //running_device *cdrom_dev = machine->device("cdrom"); | |
| 241 | memcpy(dst, src, 0x8); | |
| 242 | ||
| 243 | scc68070_init(machine, &state->scc68070_regs); | |
| 244 | ||
| 245 | machine->device("maincpu")->reset(); | |
| 246 | ||
| 247 | state->dmadac[0] = machine->device<dmadac_sound_device>("dac1"); | |
| 248 | state->dmadac[1] = machine->device<dmadac_sound_device>("dac2"); | |
| 249 | } | |
| 250 | ||
| 251 | 263 | /************************* |
| 252 | 264 | * Machine Drivers * |
| 253 | 265 | *************************/ |
| r9427 | r9428 | |
| 256 | 268 | |
| 257 | 269 | MDRV_CPU_ADD("maincpu", SCC68070, CLOCK_A/2) |
| 258 | 270 | MDRV_CPU_PROGRAM_MAP(cdimono1_mem) |
| 271 | MDRV_CPU_VBLANK_INT("screen", scc68070_mcu_frame) | |
| 259 | 272 | |
| 260 | 273 | MDRV_SCREEN_ADD("screen", RASTER) |
| 261 | 274 | MDRV_SCREEN_REFRESH_RATE(60) |
| r9427 | r9428 | |
| 278 | 291 | MDRV_VIDEO_START(cdimono1) |
| 279 | 292 | MDRV_VIDEO_UPDATE(cdimono1) |
| 280 | 293 | |
| 281 | MDRV_MACHINE_RESET(cdi) | |
| 282 | 294 | MDRV_MACHINE_START(cdi) |
| 283 | 295 | |
| 284 | 296 | MDRV_CDICDIC_ADD( "cdic" ) |
| r9427 | r9428 | |
| 300 | 312 | MDRV_MK48T08_ADD( "mk48t08" ) |
| 301 | 313 | MACHINE_CONFIG_END |
| 302 | 314 | |
| 315 | static MACHINE_CONFIG_DERIVED( quizrd12, cdi ) | |
| 316 | MDRV_MACHINE_RESET( quizrd12 ) | |
| 317 | MACHINE_CONFIG_END | |
| 318 | ||
| 319 | static MACHINE_CONFIG_DERIVED( quizrd17, cdi ) | |
| 320 | MDRV_MACHINE_RESET( quizrd17 ) | |
| 321 | MACHINE_CONFIG_END | |
| 322 | ||
| 323 | static MACHINE_CONFIG_DERIVED( quizrd22, cdi ) | |
| 324 | MDRV_MACHINE_RESET( quizrd22 ) | |
| 325 | MACHINE_CONFIG_END | |
| 326 | ||
| 327 | static MACHINE_CONFIG_DERIVED( quizrd32, cdi ) | |
| 328 | MDRV_MACHINE_RESET( quizrd32 ) | |
| 329 | MACHINE_CONFIG_END | |
| 330 | ||
| 331 | static MACHINE_CONFIG_DERIVED( quizrr41, cdi ) | |
| 332 | MDRV_MACHINE_RESET( quizrr41 ) | |
| 333 | MACHINE_CONFIG_END | |
| 334 | ||
| 335 | static MACHINE_CONFIG_DERIVED( quizrr42, cdi ) | |
| 336 | MDRV_MACHINE_RESET( quizrr42 ) | |
| 337 | MACHINE_CONFIG_END | |
| 338 | ||
| 303 | 339 | /************************* |
| 304 | 340 | * Rom Load * |
| 305 | 341 | *************************/ |
| r9427 | r9428 | |
| 404 | 440 | *************************/ |
| 405 | 441 | |
| 406 | 442 | // BIOS |
| 407 | GAME( 1991, cdi, 0, cdi, | |
| 443 | GAME( 1991, cdi, 0, cdi, | |
| 408 | 444 | |
| 409 | 445 | // Working |
| 410 | GAME( 1995, quizrd12, cdi, cdi, cdi, quizrd12, ROT0, "TAB Austria", "Quizard 1.2", GAME_IMPERFECT_SOUND | GAME_UNEMULATED_PROTECTION ) | |
| 411 | GAME( 1995, quizrd17, cdi, cdi, cdi, quizrd17, ROT0, "TAB Austria", "Quizard 1.7", GAME_IMPERFECT_SOUND | GAME_UNEMULATED_PROTECTION ) | |
| 412 | GAME( 1995, quizrd22, cdi, cdi, cdi, quizrd22, ROT0, "TAB Austria", "Quizard 2.2", GAME_IMPERFECT_SOUND | GAME_UNEMULATED_PROTECTION ) | |
| 446 | GAME( 1995, quizrd12, cdi, quizrd12, cdi, 0, ROT0, "TAB Austria", "Quizard 1.2", GAME_IMPERFECT_SOUND | GAME_UNEMULATED_PROTECTION ) | |
| 447 | GAME( 1995, quizrd17, cdi, quizrd17, cdi, 0, ROT0, "TAB Austria", "Quizard 1.7", GAME_IMPERFECT_SOUND | GAME_UNEMULATED_PROTECTION ) | |
| 448 | GAME( 1995, quizrd22, cdi, quizrd22, cdi, 0, ROT0, "TAB Austria", "Quizard 2.2", GAME_IMPERFECT_SOUND | GAME_UNEMULATED_PROTECTION ) | |
| 413 | 449 | |
| 414 | 450 | // Partially working |
| 415 | GAME( 1996, quizard, cdi, cdi, cdi, quizrd32, ROT0, "TAB Austria", "Quizard 3.2", GAME_NOT_WORKING | GAME_IMPERFECT_SOUND | GAME_UNEMULATED_PROTECTION ) | |
| 416 | GAME( 1998, quizrr41, cdi, cdi, cdi, quizrr41, ROT0, "TAB Austria", "Quizard Rainbow 4.1", GAME_NOT_WORKING | GAME_IMPERFECT_SOUND | GAME_UNEMULATED_PROTECTION ) | |
| 417 | GAME( 1998, quizrr42, cdi, cdi, cdi, quizrr42, ROT0, "TAB Austria", "Quizard Rainbow 4.2", GAME_NOT_WORKING | GAME_IMPERFECT_SOUND | GAME_UNEMULATED_PROTECTION ) | |
| 451 | GAME( 1996, quizard, cdi, quizrd32, cdi, 0, ROT0, "TAB Austria", "Quizard 3.2", GAME_NOT_WORKING | GAME_IMPERFECT_SOUND | GAME_UNEMULATED_PROTECTION ) | |
| 452 | GAME( 1998, quizrr41, cdi, quizrr41, cdi, 0, ROT0, "TAB Austria", "Quizard Rainbow 4.1", GAME_NOT_WORKING | GAME_IMPERFECT_SOUND | GAME_UNEMULATED_PROTECTION ) | |
| 453 | GAME( 1998, quizrr42, cdi, quizrr42, cdi, 0, ROT0, "TAB Austria", "Quizard Rainbow 4.2", GAME_NOT_WORKING | GAME_IMPERFECT_SOUND | GAME_UNEMULATED_PROTECTION ) |
| r0 | r9428 | |
|---|---|---|
| 1 | /* | |
| 2 | Magical Touch by Micro MFG | |
| 3 | ||
| 4 | Preliminary driver by Mariusz Wojcieszek | |
| 5 | ||
| 6 | Big daughter card | |
| 7 | silkscreend 2296 | |
| 8 | COMPONENT SIDE | |
| 9 | EPROM/IO GAME BOARD | |
| 10 | JNS-0001 REV-C | |
| 11 | ||
| 12 | sticker on back | |
| 13 | Warranty Void If Removed | |
| 14 | Date: 07-30-1996 | |
| 15 | SER# MTC-COM-170065 | |
| 16 | ||
| 17 | .u20 27c801 stickered MTOUCH | |
| 18 | ROM-0 | |
| 19 | U20 | |
| 20 | 041296 | |
| 21 | MICRO | |
| 22 | MFG. | |
| 23 | COPYRIGHT (C) | |
| 24 | ||
| 25 | .u21 27c801 stickered MTOUCH | |
| 26 | ROM-1 | |
| 27 | U21 | |
| 28 | 041296 | |
| 29 | MICRO | |
| 30 | MFG. | |
| 31 | COPYRIGHT (C) | |
| 32 | ||
| 33 | .u22 27c801 stickered MTOUCH | |
| 34 | ROM-2 | |
| 35 | U22 | |
| 36 | 041296 | |
| 37 | MICRO | |
| 38 | MFG. | |
| 39 | COPYRIGHT (C) | |
| 40 | ||
| 41 | .u7 ds1225y-150 read as 2764 | |
| 42 | ||
| 43 | .u8 tibpal16l8-15 blue dot on it checksum was 0 | |
| 44 | ||
| 45 | .u4 gal20v8b | |
| 46 | ||
| 47 | 1.8432 MHz crystal | |
| 48 | 18.00 Mhz Crystal | |
| 49 | ns16450n | |
| 50 | es488f d465 wf62225 | |
| 51 | ||
| 52 | ||
| 53 | motherboard | |
| 54 | .u13 27c512 stickered Warranty Void If Removed | |
| 55 | Date: 07-30-1996 | |
| 56 | SER# MTC-MBD-170065 | |
| 57 | ||
| 58 | am386dx-40 ng80386dx-40 | |
| 59 | ali m1429 a1 9504 ts6 ab3519 | |
| 60 | ali m1431 a2 9503 ts6ab0511b | |
| 61 | jetkey v5.0 fastest keyboard bios | |
| 62 | ||
| 63 | video card | |
| 64 | .u6 - unknown chip type stickered Warranty Void If Removed | |
| 65 | Date: 07-30-1996 | |
| 66 | SER# MTC-VGA-170065 | |
| 67 | silkscreend Trident Ver. D4.01E | |
| 68 | (c)'95 Trident Microsystems | |
| 69 | (C)'90 Phoenix Technologies | |
| 70 | *605C61W6ANJDH009 * = a triangle character | |
| 71 | ||
| 72 | */ | |
| 73 | ||
| 74 | #include "emu.h" | |
| 75 | #include "cpu/i386/i386.h" | |
| 76 | #include "machine/pic8259.h" | |
| 77 | #include "machine/mc146818.h" | |
| 78 | #include "machine/pcshare.h" | |
| 79 | #include "machine/ins8250.h" | |
| 80 | #include "machine/microtch.h" | |
| 81 | #include "video/pc_vga.h" | |
| 82 | #include "video/pc_video.h" | |
| 83 | ||
| 84 | /************************************* | |
| 85 | * | |
| 86 | * Microtouch <-> ins8250 interface | |
| 87 | * | |
| 88 | *************************************/ | |
| 89 | ||
| 90 | static void magtouch_microtouch_tx_callback(running_machine *machine, UINT8 data) | |
| 91 | { | |
| 92 | ins8250_receive(machine->device("ns16450_0"), data); | |
| 93 | }; | |
| 94 | ||
| 95 | static INS8250_TRANSMIT( magtouch_com_transmit ) | |
| 96 | { | |
| 97 | UINT8 data8 = data; | |
| 98 | microtouch_rx(1, &data8); | |
| 99 | } | |
| 100 | ||
| 101 | static INS8250_INTERRUPT( at_com_interrupt_1 ) | |
| 102 | { | |
| 103 | pic8259_ir4_w(device->machine->device("pic8259_1"), state); | |
| 104 | } | |
| 105 | ||
| 106 | static const ins8250_interface magtouch_com0_interface = | |
| 107 | { | |
| 108 | 1843200, | |
| 109 | at_com_interrupt_1, | |
| 110 | magtouch_com_transmit, | |
| 111 | NULL, | |
| 112 | NULL | |
| 113 | }; | |
| 114 | ||
| 115 | /************************************* | |
| 116 | * | |
| 117 | * ROM banking | |
| 118 | * | |
| 119 | *************************************/ | |
| 120 | ||
| 121 | static READ8_HANDLER(magtouch_io_r) | |
| 122 | { | |
| 123 | switch(offset) | |
| 124 | { | |
| 125 | case 1: | |
| 126 | return input_port_read(space->machine, "IN0"); | |
| 127 | default: | |
| 128 | return 0; | |
| 129 | } | |
| 130 | } | |
| 131 | ||
| 132 | static WRITE8_HANDLER(magtouch_io_w) | |
| 133 | { | |
| 134 | switch(offset) | |
| 135 | { | |
| 136 | case 6: | |
| 137 | memory_set_bank(space->machine, "rombank", data & 0x7f ); | |
| 138 | break; | |
| 139 | } | |
| 140 | } | |
| 141 | ||
| 142 | static ADDRESS_MAP_START( magtouch_map, ADDRESS_SPACE_PROGRAM, 32 ) | |
| 143 | AM_RANGE(0x00000000, 0x0009ffff) AM_RAM | |
| 144 | AM_RANGE(0x000a0000, 0x000bffff) AM_RAM | |
| 145 | AM_RANGE(0x000c0000, 0x000c7fff) AM_ROM AM_REGION("video_bios", 0) | |
| 146 | AM_RANGE(0x000d8000, 0x000dffff) AM_ROMBANK("rombank") | |
| 147 | AM_RANGE(0x000f0000, 0x000fffff) AM_RAM AM_REGION("bios", 0 ) | |
| 148 | AM_RANGE(0x00100000, 0x0027ffff) AM_ROM AM_REGION("game_prg", 0) | |
| 149 | AM_RANGE(0xffff0000, 0xffffffff) AM_ROM AM_REGION("bios", 0 ) | |
| 150 | ADDRESS_MAP_END | |
| 151 | ||
| 152 | static ADDRESS_MAP_START( magtouch_io, ADDRESS_SPACE_IO, 32 ) | |
| 153 | AM_IMPORT_FROM(pcat32_io_common) | |
| 154 | AM_RANGE(0x02e0, 0x02e7) AM_READWRITE8(magtouch_io_r, magtouch_io_w, 0xffffffff) | |
| 155 | AM_RANGE(0x03f8, 0x03ff) AM_DEVREADWRITE8("ns16450_0", ins8250_r, ins8250_w, 0xffffffff) | |
| 156 | ADDRESS_MAP_END | |
| 157 | ||
| 158 | static INPUT_PORTS_START( magtouch ) | |
| 159 | PORT_INCLUDE(microtouch) | |
| 160 | ||
| 161 | PORT_START("IN0") | |
| 162 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("Clear") PORT_CODE(KEYCODE_C) | |
| 163 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_SERVICE) | |
| 164 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_COIN1) PORT_IMPULSE(1) | |
| 165 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_COIN2) PORT_IMPULSE(1) | |
| 166 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_COIN3) PORT_IMPULSE(1) | |
| 167 | INPUT_PORTS_END | |
| 168 | ||
| 169 | static void magtouch_set_keyb_int(running_machine *machine, int state) | |
| 170 | { | |
| 171 | pic8259_ir1_w(machine->device("pic8259_1"), state); | |
| 172 | } | |
| 173 | ||
| 174 | static const struct pc_vga_interface vga_interface = | |
| 175 | { | |
| 176 | NULL, | |
| 177 | NULL, | |
| 178 | NULL, | |
| 179 | ADDRESS_SPACE_IO, | |
| 180 | 0x0000 | |
| 181 | }; | |
| 182 | ||
| 183 | static MACHINE_START( magtouch ) | |
| 184 | { | |
| 185 | cpu_set_irq_callback(machine->device("maincpu"), pcat_irq_callback); | |
| 186 | ||
| 187 | init_pc_common(machine, PCCOMMON_KEYBOARD_AT, magtouch_set_keyb_int); | |
| 188 | ||
| 189 | memory_configure_bank(machine, "rombank", 0, 0x80, memory_region(machine, "game_prg"), 0x8000 ); | |
| 190 | memory_set_bank(machine, "rombank", 0); | |
| 191 | ||
| 192 | microtouch_init(machine, magtouch_microtouch_tx_callback, NULL); | |
| 193 | } | |
| 194 | ||
| 195 | static MACHINE_CONFIG_START( magtouch, driver_device ) | |
| 196 | /* basic machine hardware */ | |
| 197 | MDRV_CPU_ADD("maincpu", I386, 14318180*2) /* I386 ?? Mhz */ | |
| 198 | MDRV_CPU_PROGRAM_MAP(magtouch_map) | |
| 199 | MDRV_CPU_IO_MAP(magtouch_io) | |
| 200 | ||
| 201 | /* video hardware */ | |
| 202 | MDRV_FRAGMENT_ADD( pcvideo_vga ) | |
| 203 | ||
| 204 | MDRV_SCREEN_MODIFY("screen") | |
| 205 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 206 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ | |
| 207 | ||
| 208 | MDRV_MACHINE_START(magtouch) | |
| 209 | MDRV_MC146818_ADD( "rtc", MC146818_STANDARD ) | |
| 210 | ||
| 211 | // MDRV_FRAGMENT_ADD( at_kbdc8042 ) | |
| 212 | MDRV_FRAGMENT_ADD( pcat_common ) | |
| 213 | MDRV_NS16450_ADD( "ns16450_0", magtouch_com0_interface ) | |
| 214 | ||
| 215 | MACHINE_CONFIG_END | |
| 216 | ||
| 217 | ||
| 218 | ROM_START(magtouch) | |
| 219 | ROM_REGION32_LE(0x10000, "bios", 0) /* motherboard bios */ | |
| 220 | ROM_LOAD("mtouch.u13", 0x00000, 0x10000, CRC(e74fb144) SHA1(abc99e84832c30606374da542fd94f0fbc8cbaa6) ) | |
| 221 | ||
| 222 | ROM_REGION(0x08000, "video_bios", 0) | |
| 223 | ROM_LOAD16_BYTE("vga1-bios-ver-b-1.00-07.u8", 0x00000, 0x04000, CRC(a40551d6) SHA1(db38190f06e4af2c2d59ae310e65883bb16cd3d6)) | |
| 224 | ROM_CONTINUE( 0x00001, 0x04000 ) | |
| 225 | ||
| 226 | ROM_REGION(0x400000, "game_prg", 0) /* proper game */ | |
| 227 | ROM_LOAD("mtouch.u20", 0x000000,0x100000, CRC(fb7b529b) SHA1(ecf8792ce7b6b2f59c2178dc1524c3830a4b4ebc) ) | |
| 228 | ROM_LOAD("mtouch.u21", 0x100000,0x100000, CRC(af1491a6) SHA1(2d09506a3368fd64b1081017c58065635be5a62f) ) | |
| 229 | ROM_LOAD("mtouch.u22", 0x200000,0x100000, CRC(da39c860) SHA1(7648e063ec68575abd808d5dea933f292197a2c2) ) | |
| 230 | ROM_END | |
| 231 | ||
| 232 | static DRIVER_INIT(magtouch) | |
| 233 | { | |
| 234 | pc_vga_init(machine, &vga_interface, NULL); | |
| 235 | } | |
| 236 | ||
| 237 | GAME( 1995, magtouch, 0, magtouch, magtouch, magtouch, ROT0, "Micro Manufacturing", "Magical Touch", GAME_NOT_WORKING | GAME_NO_SOUND ) |
| r9427 | r9428 | |
|---|---|---|
| 217 | 217 | */ |
| 218 | 218 | |
| 219 | 219 | #include "emu.h" |
| 220 | #include "deprecat.h" | |
| 221 | 220 | #include "cpu/z80/z80.h" |
| 222 | 221 | #include "cpu/m6805/m6805.h" |
| 223 | 222 | #include "sound/ay8910.h" |
| r9427 | r9428 | |
| 1128 | 1127 | |
| 1129 | 1128 | MDRV_CPU_ADD("audiocpu",Z80,8000000/2) /* OK */ |
| 1130 | 1129 | MDRV_CPU_PROGRAM_MAP(sound_map) |
| 1131 | MDRV_CPU_ | |
| 1130 | MDRV_CPU_PERIODIC_INT | |
| 1132 | 1131 | |
| 1133 | 1132 | MDRV_CPU_ADD("mcu",M68705,18432000/6) /* OK */ |
| 1134 | 1133 | MDRV_CPU_PROGRAM_MAP(mcu_map) |
| r9427 | r9428 | |
| 1185 | 1184 | |
| 1186 | 1185 | MDRV_CPU_ADD("audiocpu",Z80,8000000/2) |
| 1187 | 1186 | MDRV_CPU_PROGRAM_MAP(sound_map) |
| 1188 | MDRV_CPU_ | |
| 1187 | MDRV_CPU_PERIODIC_INT | |
| 1189 | 1188 | |
| 1190 | 1189 | // MDRV_CPU_ADD("mcu",M68705,18432000/6) |
| 1191 | 1190 | // MDRV_CPU_PROGRAM_MAP(mcu_map) |
| r9427 | r9428 | |
|---|---|---|
| 29 | 29 | */ |
| 30 | 30 | |
| 31 | 31 | #include "emu.h" |
| 32 | #include "deprecat.h" | |
| 33 | 32 | #include "cpu/z80/z80.h" |
| 34 | 33 | #include "sound/2203intf.h" |
| 35 | 34 | #include "includes/1943.h" |
| r9427 | r9428 | |
| 266 | 265 | |
| 267 | 266 | MDRV_CPU_ADD("audiocpu", Z80, XTAL_24MHz/8) /* verified on pcb */ |
| 268 | 267 | MDRV_CPU_PROGRAM_MAP(sound_map) |
| 269 | MDRV_CPU_ | |
| 268 | MDRV_CPU_PERIODIC_INT | |
| 270 | 269 | |
| 271 | 270 | MDRV_MACHINE_RESET(1943) |
| 272 | 271 |
| r9427 | r9428 | |
|---|---|---|
| 345 | 345 | |
| 346 | 346 | bp 6dce onward looks bogus, but it's probably the way it's intended to be |
| 347 | 347 | |
| 348 | M50458 charset is checked at 1382, a word checksum is provided at offsets 0xffe-0xfff of the given ROM | |
| 349 | ||
| 348 | 350 | */ |
| 349 | 351 | |
| 350 | 352 | static READ8_HANDLER( nss_eeprom_r ) |
| r9427 | r9428 | |
| 372 | 374 | { |
| 373 | 375 | UINT8 *gfx_rom = memory_region(space->machine, "m50458_gfx"); |
| 374 | 376 | |
| 375 | return gfx_rom[offset & 0x | |
| 377 | return gfx_rom[offset & 0xfff]; | |
| 376 | 378 | } |
| 377 | 379 | else |
| 378 | 380 | { |
| 379 | 381 | UINT8 *gfx_ram = memory_region(space->machine, "m50458_vram"); |
| 380 | 382 | |
| 381 | return gfx_ram[offset & 0x | |
| 383 | return gfx_ram[offset & 0xfff]; | |
| 382 | 384 | } |
| 383 | 385 | |
| 384 | 386 | return 0; |
| r9427 | r9428 | |
| 392 | 394 | { |
| 393 | 395 | UINT8 *gfx_ram = memory_region(space->machine, "m50458_vram"); |
| 394 | 396 | |
| 395 | gfx_ram[offset & 0x | |
| 397 | gfx_ram[offset & 0xfff] = data; | |
| 396 | 398 | } |
| 397 | 399 | } |
| 398 | 400 | |
| r9427 | r9428 | |
| 401 | 403 | AM_RANGE(0x0000, 0x7fff) AM_ROMBANK("bank1") |
| 402 | 404 | AM_RANGE(0x8000, 0x87ff) AM_RAM |
| 403 | 405 | AM_RANGE(0x8800, 0x8fff) AM_RAM // vram perhaps? |
| 404 | AM_RANGE(0x9000, 0x9 | |
| 406 | AM_RANGE(0x9000, 0x9 | |
| 405 | 407 | AM_RANGE(0xa000, 0xa000) AM_READ(nss_eeprom_r) |
| 406 | 408 | AM_RANGE(0xe000, 0xe000) AM_WRITE(nss_eeprom_w) |
| 407 | 409 | AM_RANGE(0xc000, 0xdfff) AM_MIRROR(0x2000) AM_RAM AM_REGION("ibios_rom", 0x6000) |
| r9427 | r9428 | |
| 450 | 452 | static WRITE8_HANDLER( port80_w ) |
| 451 | 453 | { |
| 452 | 454 | /* |
| 453 | ---- | |
| 455 | ---- | |
| 454 | 456 | ---- --x- see port 0x02 note |
| 455 | 457 | ---- ---x BIOS bankswitch |
| 456 | 458 | */ |
| 457 | 459 | |
| 458 | 460 | memory_set_bank(space->machine, "bank1", data & 1); |
| 459 | m50458_rom_bank = data & | |
| 461 | m50458_rom_bank = data & 4; | |
| 460 | 462 | } |
| 461 | 463 | |
| 462 | 464 | static WRITE8_HANDLER( port82_w ) // EEPROM2? |
| r9427 | r9428 | |
| 609 | 611 | #endif |
| 610 | 612 | INPUT_PORTS_END |
| 611 | 613 | |
| 614 | static const gfx_layout nss_char_layout_16x18 = | |
| 615 | { | |
| 616 | 16,18, | |
| 617 | RGN_FRAC(1,1), | |
| 618 | 1, | |
| 619 | { 0 }, | |
| 620 | { 0, 1, 2, 3, 4, 5, 6, 7,8,9,10,11,12,13,14,15 }, | |
| 621 | { 0*16, 1*16, 2*16, 3*16, 4*16, 5*16, 6*16, 7*16,8*16, 9*16, 10*16, 11*16, 12*16, 13*16, 14*16, 15*16, 16*16,17*16 }, | |
| 622 | 16*18 | |
| 623 | }; | |
| 624 | ||
| 625 | static const gfx_layout nss_char_layout_16x16 = | |
| 626 | { | |
| 627 | 16,16, | |
| 628 | RGN_FRAC(1,1), | |
| 629 | 1, | |
| 630 | { 0 }, | |
| 631 | { 0, 1, 2, 3, 4, 5, 6, 7,8,9,10,11,12,13,14,15 }, | |
| 632 | { 0*16, 1*16, 2*16, 3*16, 4*16, 5*16, 6*16, 7*16,8*16, 9*16, 10*16, 11*16, 12*16, 13*16, 14*16, 15*16 }, | |
| 633 | 16*16 | |
| 634 | }; | |
| 635 | ||
| 636 | ||
| 637 | /* decoded for debugging purpose, this will be nuked in the end... */ | |
| 638 | static GFXDECODE_START( nss ) | |
| 639 | GFXDECODE_ENTRY( "chargen", 0x00000, nss_char_layout_16x18, 0, 1 ) | |
| 640 | GFXDECODE_ENTRY( "m50458_gfx", 0x00000, nss_char_layout_16x16, 0, 1 ) | |
| 641 | GFXDECODE_END | |
| 642 | ||
| 612 | 643 | static MACHINE_CONFIG_START( snes, snes_state ) |
| 613 | 644 | |
| 614 | 645 | /* basic machine hardware */ |
| r9427 | r9428 | |
| 646 | 677 | MDRV_CPU_VBLANK_INT("screen", nmi_line_pulse) |
| 647 | 678 | // MDRV_CPU_FLAGS(CPU_DISABLE) |
| 648 | 679 | |
| 680 | MDRV_GFXDECODE( nss ) | |
| 681 | MDRV_PALETTE_LENGTH(2) | |
| 649 | 682 | MDRV_MACHINE_START( nss ) |
| 650 | 683 | MACHINE_CONFIG_END |
| 651 | 684 | |
| r9427 | r9428 | |
| 663 | 696 | ROM_REGION(0x20000, "bios", 0) /* Bios CPU (what is it?) */ \ |
| 664 | 697 | ROM_LOAD("nss-c.dat" , 0x10000, 0x8000, CRC(a8e202b3) SHA1(b7afcfe4f5cf15df53452dc04be81929ced1efb2) ) /* bios */ \ |
| 665 | 698 | ROM_LOAD("nss-ic14.02", 0x18000, 0x8000, CRC(e06cb58f) SHA1(62f507e91a2797919a78d627af53f029c7d81477) ) /* bios */ \ |
| 666 | ROM_REGION( 0x800, "m50458_gfx", ROMREGION_ERASEFF ) \ | |
| 667 | ROM_LOAD("m50458_char", 0x000, 0x800, NO_DUMP ) \ | |
| 668 | ROM_REGION( 0x800, "m50458_vram", ROMREGION_ERASE00 ) \ | |
| 699 | ROM_REGION( 0x1200, "chargen", ROMREGION_ERASEFF ) \ | |
| 700 | ROM_LOAD("m50458_char.bin", 0x0000, 0x1200, BAD_DUMP CRC(011cc342) SHA1(d5b9f32d6e251b4b25945267d7c68c099bd83e96) ) \ | |
| 701 | ROM_REGION( 0x1000, "m50458_gfx", ROMREGION_ERASEFF ) \ | |
| 702 | ROM_LOAD("m50458_char_mod.bin", 0x0000, 0x1000, BAD_DUMP CRC(8c4326ef) SHA1(21a63c5245ff7f3f70cb45e217b3045b19d0d799) ) \ | |
| 703 | ROM_REGION( 0x1000, "m50458_vram", ROMREGION_ERASE00 ) \ | |
| 669 | 704 | |
| 705 | ||
| 706 | ||
| 670 | 707 | ROM_START( nss ) |
| 671 | 708 | NSS_BIOS |
| 672 | 709 | ROM_REGION( 0x100000, "user3", ROMREGION_ERASEFF ) |
| r9427 | r9428 | |
|---|---|---|
| 1 | #define ADDRESS_MAP_MODERN | |
| 2 | ||
| 1 | 3 | #include "emu.h" |
| 2 | 4 | #include "cpu/cosmac/cosmac.h" |
| 3 | 5 | #include "cpu/cop400/cop400.h" |
| r9427 | r9428 | |
| 9 | 11 | |
| 10 | 12 | /* CDP1802 Interface */ |
| 11 | 13 | |
| 12 | ||
| 14 | ||
| 13 | 15 | { |
| 14 | cidelsa_state *state = device->machine->driver_data<cidelsa_state>(); | |
| 15 | ||
| 16 | return state->reset; | |
| 16 | return m_reset; | |
| 17 | 17 | } |
| 18 | 18 | |
| 19 | ||
| 19 | ||
| 20 | 20 | { |
| 21 | cidelsa_state *driver_state = device->machine->driver_data<cidelsa_state>(); | |
| 22 | ||
| 23 | driver_state->cdp1802_q = state; | |
| 21 | m_cdp1802_q = state; | |
| 24 | 22 | } |
| 25 | 23 | |
| 26 | 24 | static COSMAC_INTERFACE( cidelsa_cdp1802_config ) |
| 27 | 25 | { |
| 28 | 26 | DEVCB_LINE_VCC, |
| 29 | DEVCB_LINE(clear_r), | |
| 27 | DEVCB_DRIVER_LINE_MEMBER(cidelsa_state, clear_r), | |
| 30 | 28 | DEVCB_NULL, |
| 31 | 29 | DEVCB_NULL, |
| 32 | 30 | DEVCB_NULL, |
| 33 | 31 | DEVCB_NULL, |
| 34 | DEVCB_LINE(cidelsa_q_w), | |
| 32 | DEVCB_DRIVER_LINE_MEMBER(cidelsa_state, q_w), | |
| 35 | 33 | DEVCB_NULL, |
| 36 | 34 | DEVCB_NULL, |
| 37 | 35 | NULL, |
| r9427 | r9428 | |
| 41 | 39 | |
| 42 | 40 | /* Sound Interface */ |
| 43 | 41 | |
| 44 | ||
| 42 | ||
| 45 | 43 | { |
| 46 | 44 | /* |
| 47 | 45 | |
| r9427 | r9428 | |
| 56 | 54 | |
| 57 | 55 | int bank = BIT(data, 3); |
| 58 | 56 | |
| 59 | memory_set_bank( | |
| 57 | memory_set_bank(&m_ | |
| 60 | 58 | } |
| 61 | 59 | |
| 62 | ||
| 60 | ||
| 63 | 61 | { |
| 64 | cidelsa_state *state = device->machine->driver_data<cidelsa_state>(); | |
| 65 | ||
| 66 | 62 | /* |
| 67 | 63 | |
| 68 | 64 | G1 G0 description |
| r9427 | r9428 | |
| 77 | 73 | switch (data) |
| 78 | 74 | { |
| 79 | 75 | case 0x01: |
| 80 | ay8910_data_w( | |
| 76 | ay8910_data_w(m_psg | |
| 81 | 77 | break; |
| 82 | 78 | |
| 83 | 79 | case 0x02: |
| 84 | | |
| 80 | m_ | |
| 85 | 81 | break; |
| 86 | 82 | |
| 87 | 83 | case 0x03: |
| 88 | ay8910_address_w( | |
| 84 | ay8910_address_w(m_psg | |
| 89 | 85 | break; |
| 90 | 86 | } |
| 91 | 87 | } |
| 92 | 88 | |
| 93 | ||
| 89 | ||
| 94 | 90 | { |
| 95 | cidelsa_state *state = space->machine->driver_data<cidelsa_state>(); | |
| 96 | ||
| 97 | return ~(state->draco_sound) & 0x07; | |
| 91 | return ~(m_draco_sound) & 0x07; | |
| 98 | 92 | } |
| 99 | 93 | |
| 100 | ||
| 94 | ||
| 101 | 95 | { |
| 102 | cidelsa_state *state = space->machine->driver_data<cidelsa_state>(); | |
| 103 | ||
| 104 | return state->draco_ay_latch; | |
| 96 | return m_draco_ay_latch; | |
| 105 | 97 | } |
| 106 | 98 | |
| 107 | ||
| 99 | ||
| 108 | 100 | { |
| 109 | cidelsa_state *state = space->machine->driver_data<cidelsa_state>(); | |
| 110 | ||
| 111 | state->draco_ay_latch = data; | |
| 101 | m_draco_ay_latch = data; | |
| 112 | 102 | } |
| 113 | 103 | |
| 114 | 104 | /* Read/Write Handlers */ |
| 115 | 105 | |
| 116 | ||
| 106 | ||
| 117 | 107 | { |
| 118 | 108 | /* |
| 119 | 109 | bit description |
| r9427 | r9428 | |
| 131 | 121 | |
| 132 | 122 | /* CDP1852 Interfaces */ |
| 133 | 123 | |
| 134 | ||
| 124 | ||
| 135 | 125 | { |
| 136 | 126 | /* |
| 137 | 127 | bit description |
| r9427 | r9428 | |
| 146 | 136 | 7 CONT. M1 |
| 147 | 137 | */ |
| 148 | 138 | |
| 149 | set_led_status(space->machine, 0, data & 0x08); // 1P | |
| 150 | set_led_status(space->machine, 1, data & 0x10); // 2P | |
| 151 | set_led_status(space->machine, 2, data & 0x20); // FIRE | |
| 139 | set_led_status(&m_machine, 0, data & 0x08); // 1P | |
| 140 | set_led_status(&m_machine, 1, data & 0x10); // 2P | |
| 141 | set_led_status(&m_machine, 2, data & 0x20); // FIRE | |
| 152 | 142 | } |
| 153 | 143 | |
| 154 | ||
| 144 | ||
| 155 | 145 | { |
| 156 | 146 | /* |
| 157 | 147 | bit description |
| r9427 | r9428 | |
| 166 | 156 | 7 SONIDO C -> COP402 IN2 |
| 167 | 157 | */ |
| 168 | 158 | |
| 169 | cidelsa_state *state = space->machine->driver_data<cidelsa_state>(); | |
| 170 | ||
| 171 | state->draco_sound = (data & 0xe0) >> 5; | |
| 159 | m_draco_sound = (data & 0xe0) >> 5; | |
| 172 | 160 | } |
| 173 | 161 | |
| 174 | 162 | static CDP1852_INTERFACE( cidelsa_cdp1852_in0_intf ) |
| r9427 | r9428 | |
| 199 | 187 | { |
| 200 | 188 | CDP1852_MODE_OUTPUT, |
| 201 | 189 | DEVCB_NULL, |
| 202 | DEVCB_ | |
| 190 | DEVCB_DRIVE | |
| 203 | 191 | DEVCB_NULL |
| 204 | 192 | }; |
| 205 | 193 | |
| r9427 | r9428 | |
| 207 | 195 | { |
| 208 | 196 | CDP1852_MODE_OUTPUT, |
| 209 | 197 | DEVCB_NULL, |
| 210 | DEVCB_ | |
| 198 | DEVCB_DRIVE | |
| 211 | 199 | DEVCB_NULL |
| 212 | 200 | }; |
| 213 | 201 | |
| r9427 | r9428 | |
| 224 | 212 | |
| 225 | 213 | // Destroyer |
| 226 | 214 | |
| 227 | static ADDRESS_MAP_START( destryer_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 215 | static ADDRESS_MAP_START( destryer_map, ADDRESS_SPACE_PROGRAM, 8, cidelsa_state ) | |
| 228 | 216 | AM_RANGE(0x0000, 0x1fff) AM_ROM |
| 229 | 217 | AM_RANGE(0x2000, 0x20ff) AM_RAM AM_SHARE("nvram") |
| 230 | AM_RANGE(0xf400, 0xf7ff) AM_DEVREADWRITE(CDP1869_TAG, cdp1869_charram_r, cdp1869_charram_w) | |
| 231 | AM_RANGE(0xf800, 0xffff) AM_DEVREADWRITE(CDP1869_TAG, cdp1869_pageram_r, cdp1869_pageram_w) | |
| 218 | AM_RANGE(0xf400, 0xf7ff) AM_DEVREADWRITE(CDP1869_TAG, cdp1869_device, char_ram_r, char_ram_w) | |
| 219 | AM_RANGE(0xf800, 0xffff) AM_DEVREADWRITE(CDP1869_TAG, cdp1869_device, page_ram_r, page_ram_w) | |
| 232 | 220 | ADDRESS_MAP_END |
| 233 | 221 | |
| 234 | static ADDRESS_MAP_START( destryera_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 222 | static ADDRESS_MAP_START( destryera_map, ADDRESS_SPACE_PROGRAM, 8, cidelsa_state ) | |
| 235 | 223 | AM_RANGE(0x0000, 0x1fff) AM_ROM |
| 236 | 224 | AM_RANGE(0x3000, 0x30ff) AM_RAM AM_SHARE("nvram") |
| 237 | AM_RANGE(0xf400, 0xf7ff) AM_DEVREADWRITE(CDP1869_TAG, cdp1869_charram_r, cdp1869_charram_w) | |
| 238 | AM_RANGE(0xf800, 0xffff) AM_DEVREADWRITE(CDP1869_TAG, cdp1869_pageram_r, cdp1869_pageram_w) | |
| 225 | AM_RANGE(0xf400, 0xf7ff) AM_DEVREADWRITE(CDP1869_TAG, cdp1869_device, char_ram_r, char_ram_w) | |
| 226 | AM_RANGE(0xf800, 0xffff) AM_DEVREADWRITE(CDP1869_TAG, cdp1869_device, page_ram_r, page_ram_w) | |
| 239 | 227 | ADDRESS_MAP_END |
| 240 | 228 | |
| 241 | static ADDRESS_MAP_START( destryer_io_map, ADDRESS_SPACE_IO, 8 ) | |
| 229 | static ADDRESS_MAP_START( destryer_io_map, ADDRESS_SPACE_IO, 8, cidelsa_state ) | |
| 242 | 230 | AM_RANGE(0x01, 0x01) AM_READ_PORT("IN0") AM_WRITE(destryer_out1_w) |
| 243 | 231 | AM_RANGE(0x02, 0x02) AM_READ_PORT("IN1") |
| 244 | AM_RANGE(0x03, 0x03) AM_DEVWRITE(CDP1869_TAG, cdp1869_out3_w) | |
| 245 | AM_RANGE(0x04, 0x04) AM_DEVWRITE(CDP1869_TAG, cdp1869_out4_w) | |
| 246 | AM_RANGE(0x05, 0x05) AM_DEVWRITE(CDP1869_TAG, cdp1869_out5_w) | |
| 247 | AM_RANGE(0x06, 0x06) AM_DEVWRITE(CDP1869_TAG, cdp1869_out6_w) | |
| 248 | AM_RANGE(0x07, 0x07) AM_DEVWRITE(CDP1869_TAG, cdp1869_out7_w) | |
| 232 | AM_RANGE(0x03, 0x07) AM_WRITE(cdp1869_w) | |
| 249 | 233 | ADDRESS_MAP_END |
| 250 | 234 | |
| 251 | 235 | // Altair |
| 252 | 236 | |
| 253 | static ADDRESS_MAP_START( altair_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 237 | static ADDRESS_MAP_START( altair_map, ADDRESS_SPACE_PROGRAM, 8, cidelsa_state ) | |
| 254 | 238 | AM_RANGE(0x0000, 0x2fff) AM_ROM |
| 255 | 239 | AM_RANGE(0x3000, 0x30ff) AM_RAM AM_SHARE("nvram") |
| 256 | AM_RANGE(0xf400, 0xf7ff) AM_DEVREADWRITE(CDP1869_TAG, cdp1869_charram_r, cdp1869_charram_w) | |
| 257 | AM_RANGE(0xf800, 0xffff) AM_DEVREADWRITE(CDP1869_TAG, cdp1869_pageram_r, cdp1869_pageram_w) | |
| 240 | AM_RANGE(0xf400, 0xf7ff) AM_DEVREADWRITE(CDP1869_TAG, cdp1869_device, char_ram_r, char_ram_w) | |
| 241 | AM_RANGE(0xf800, 0xffff) AM_DEVREADWRITE(CDP1869_TAG, cdp1869_device, page_ram_r, page_ram_w) | |
| 258 | 242 | ADDRESS_MAP_END |
| 259 | 243 | |
| 260 | static ADDRESS_MAP_START( altair_io_map, ADDRESS_SPACE_IO, 8 ) | |
| 261 | AM_RANGE(0x01, 0x01) AM_DEVREAD("ic23", cdp1852_data_r) AM_DEVWRITE("ic26", cdp1852_data_w) | |
| 262 | AM_RANGE(0x02, 0x02) AM_DEVREAD("ic24", cdp1852_data_r) | |
| 263 | AM_RANGE(0x03, 0x03) AM_DEVWRITE(CDP1869_TAG, cdp1869_out3_w) | |
| 264 | AM_RANGE(0x04, 0x04) AM_DEVREAD("ic25", cdp1852_data_r) AM_DEVWRITE(CDP1869_TAG, cdp1869_out4_w) | |
| 265 | AM_RANGE(0x05, 0x05) AM_DEVWRITE(CDP1869_TAG, cdp1869_out5_w) | |
| 266 | AM_RANGE(0x06, 0x06) AM_DEVWRITE(CDP1869_TAG, cdp1869_out6_w) | |
| 267 | AM_RANGE(0x07, 0x07) AM_DEVWRITE(CDP1869_TAG, cdp1869_out7_w) | |
| 244 | static ADDRESS_MAP_START( altair_io_map, ADDRESS_SPACE_IO, 8, cidelsa_state ) | |
| 245 | AM_RANGE(0x01, 0x01) AM_DEVREAD_LEGACY("ic23", cdp1852_data_r) AM_DEVWRITE_LEGACY("ic26", cdp1852_data_w) | |
| 246 | AM_RANGE(0x02, 0x02) AM_DEVREAD_LEGACY("ic24", cdp1852_data_r) | |
| 247 | AM_RANGE(0x04, 0x04) AM_DEVREAD_LEGACY("ic25", cdp1852_data_r) | |
| 248 | AM_RANGE(0x03, 0x07) AM_WRITE(cdp1869_w) | |
| 268 | 249 | ADDRESS_MAP_END |
| 269 | 250 | |
| 270 | 251 | // Draco |
| 271 | 252 | |
| 272 | static ADDRESS_MAP_START( draco_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 253 | static ADDRESS_MAP_START( draco_map, ADDRESS_SPACE_PROGRAM, 8, cidelsa_state ) | |
| 273 | 254 | AM_RANGE(0x0000, 0x3fff) AM_ROM |
| 274 | 255 | AM_RANGE(0x8000, 0x83ff) AM_RAM AM_SHARE("nvram") |
| 275 | AM_RANGE(0xf400, 0xf7ff) AM_DEVREADWRITE(CDP1869_TAG, cdp1869_charram_r, cdp1869_charram_w) | |
| 276 | AM_RANGE(0xf800, 0xffff) AM_DEVREADWRITE(CDP1869_TAG, cdp1869_pageram_r, cdp1869_pageram_w) | |
| 256 | AM_RANGE(0xf400, 0xf7ff) AM_DEVREADWRITE(CDP1869_TAG, cdp1869_device, char_ram_r, char_ram_w) | |
| 257 | AM_RANGE(0xf800, 0xffff) AM_DEVREADWRITE(CDP1869_TAG, cdp1869_device, page_ram_r, page_ram_w) | |
| 277 | 258 | ADDRESS_MAP_END |
| 278 | 259 | |
| 279 | static ADDRESS_MAP_START( draco_io_map, ADDRESS_SPACE_IO, 8 ) | |
| 280 | AM_RANGE(0x01, 0x01) AM_DEVREAD("ic29", cdp1852_data_r) AM_DEVWRITE("ic32", cdp1852_data_w) | |
| 281 | AM_RANGE(0x02, 0x02) AM_DEVREAD("ic30", cdp1852_data_r) | |
| 282 | AM_RANGE(0x03, 0x03) AM_DEVWRITE(CDP1869_TAG, cdp1869_out3_w) | |
| 283 | AM_RANGE(0x04, 0x04) AM_DEVREAD("ic31", cdp1852_data_r) AM_DEVWRITE(CDP1869_TAG, cdp1869_out4_w) | |
| 284 | AM_RANGE(0x05, 0x05) AM_DEVWRITE(CDP1869_TAG, cdp1869_out5_w) | |
| 285 | AM_RANGE(0x06, 0x06) AM_DEVWRITE(CDP1869_TAG, cdp1869_out6_w) | |
| 286 | AM_RANGE(0x07, 0x07) AM_DEVWRITE(CDP1869_TAG, cdp1869_out7_w) | |
| 260 | static ADDRESS_MAP_START( draco_io_map, ADDRESS_SPACE_IO, 8, cidelsa_state ) | |
| 261 | AM_RANGE(0x01, 0x01) AM_DEVREAD_LEGACY("ic29", cdp1852_data_r) AM_DEVWRITE_LEGACY("ic32", cdp1852_data_w) | |
| 262 | AM_RANGE(0x02, 0x02) AM_DEVREAD_LEGACY("ic30", cdp1852_data_r) | |
| 263 | AM_RANGE(0x04, 0x04) AM_DEVREAD_LEGACY("ic31", cdp1852_data_r) | |
| 264 | AM_RANGE(0x03, 0x07) AM_WRITE(cdp1869_w) | |
| 287 | 265 | ADDRESS_MAP_END |
| 288 | 266 | |
| 289 | static ADDRESS_MAP_START( draco_sound_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 267 | static ADDRESS_MAP_START( draco_sound_map, ADDRESS_SPACE_PROGRAM, 8, cidelsa_state ) | |
| 290 | 268 | AM_RANGE(0x000, 0x3ff) AM_ROMBANK("bank1") |
| 291 | 269 | ADDRESS_MAP_END |
| 292 | 270 | |
| 293 | static ADDRESS_MAP_START( draco_sound_io_map, ADDRESS_SPACE_IO, 8 ) | |
| 271 | static ADDRESS_MAP_START( draco_sound_io_map, ADDRESS_SPACE_IO, 8, cidelsa_state ) | |
| 294 | 272 | AM_RANGE(COP400_PORT_D, COP400_PORT_D) AM_WRITE(draco_sound_bankswitch_w) |
| 295 | AM_RANGE(COP400_PORT_G, COP400_PORT_G) AM_ | |
| 273 | AM_RANGE(COP400_PORT_G, COP400_PORT_G) AM_ | |
| 296 | 274 | AM_RANGE(COP400_PORT_L, COP400_PORT_L) AM_READWRITE(draco_sound_ay8910_r, draco_sound_ay8910_w) |
| 297 | 275 | AM_RANGE(COP400_PORT_IN, COP400_PORT_IN) AM_READ(draco_sound_in_r) |
| 298 | 276 | AM_RANGE(COP400_PORT_SIO, COP400_PORT_SIO) AM_NOP |
| r9427 | r9428 | |
| 305 | 283 | { |
| 306 | 284 | cidelsa_state *state = field->port->machine->driver_data<cidelsa_state>(); |
| 307 | 285 | |
| 308 | return state->cdp1869_pcb; | |
| 286 | return state->m_cdp1869_pcb; | |
| 309 | 287 | } |
| 310 | 288 | |
| 311 | 289 | static INPUT_CHANGED( ef_w ) |
| r9427 | r9428 | |
| 461 | 439 | { |
| 462 | 440 | cidelsa_state *state = machine->driver_data<cidelsa_state>(); |
| 463 | 441 | |
| 464 | state->reset = 1; | |
| 442 | state->m_reset = 1; | |
| 465 | 443 | } |
| 466 | 444 | |
| 467 | 445 | static MACHINE_START( cidelsa ) |
| 468 | 446 | { |
| 469 | 447 | cidelsa_state *state = machine->driver_data<cidelsa_state>(); |
| 470 | 448 | |
| 471 | /* find devices */ | |
| 472 | state->cdp1802 = machine->device(CDP1802_TAG); | |
| 473 | ||
| 474 | 449 | /* register for state saving */ |
| 475 | state_save_register_global(machine, state->reset); | |
| 450 | state_save_register_global(machine, state->m_reset); | |
| 476 | 451 | } |
| 477 | 452 | |
| 478 | 453 | static MACHINE_START( draco ) |
| r9427 | r9428 | |
| 486 | 461 | memory_set_bank(machine, "bank1", 0); |
| 487 | 462 | |
| 488 | 463 | /* register for state saving */ |
| 489 | state_save_register_global(machine, state->draco_sound); | |
| 490 | state_save_register_global(machine, state->draco_ay_latch); | |
| 464 | state_save_register_global(machine, state->m_draco_sound); | |
| 465 | state_save_register_global(machine, state->m_draco_ay_latch); | |
| 491 | 466 | } |
| 492 | 467 | |
| 493 | 468 | /* Machine Reset */ |
| 494 | 469 | |
| 495 | ||
| 470 | vo | |
| 496 | 471 | { |
| 497 | cidelsa_state *state = machine->driver_data<cidelsa_state>(); | |
| 498 | ||
| 499 | 472 | /* reset the CPU */ |
| 500 | state->reset = 0; | |
| 501 | timer_set(machine, ATTOTIME_IN_MSEC(200), NULL, 0, set_cpu_mode); | |
| 473 | m_reset = 0; | |
| 474 | timer_set(&m_machine, ATTOTIME_IN_MSEC(200), NULL, 0, set_cpu_mode); | |
| 502 | 475 | } |
| 503 | 476 | |
| 504 | 477 | /* Machine Drivers */ |
| r9427 | r9428 | |
| 512 | 485 | MDRV_NVRAM_ADD_0FILL("nvram") |
| 513 | 486 | |
| 514 | 487 | MDRV_MACHINE_START(cidelsa) |
| 515 | MDRV_MACHINE_RESET(cidelsa) | |
| 516 | 488 | |
| 517 | 489 | /* sound and video hardware */ |
| 518 | 490 | MDRV_FRAGMENT_ADD(destryer_video) |
| r9427 | r9428 | |
| 527 | 499 | MDRV_NVRAM_ADD_0FILL("nvram") |
| 528 | 500 | |
| 529 | 501 | MDRV_MACHINE_START(cidelsa) |
| 530 | MDRV_MACHINE_RESET(cidelsa) | |
| 531 | 502 | |
| 532 | 503 | /* sound and video hardware */ |
| 533 | 504 | MDRV_FRAGMENT_ADD(destryer_video) |
| r9427 | r9428 | |
| 542 | 513 | MDRV_NVRAM_ADD_0FILL("nvram") |
| 543 | 514 | |
| 544 | 515 | MDRV_MACHINE_START(cidelsa) |
| 545 | MDRV_MACHINE_RESET(cidelsa) | |
| 546 | 516 | |
| 547 | 517 | /* input/output hardware */ |
| 548 | 518 | MDRV_CDP1852_ADD("ic23", CDP1852_CLOCK_HIGH, cidelsa_cdp1852_in0_intf) /* clock is really tied to CDP1869 CMSEL (pin 37) */ |
| r9427 | r9428 | |
| 563 | 533 | MDRV_NVRAM_ADD_0FILL("nvram") |
| 564 | 534 | |
| 565 | 535 | MDRV_MACHINE_START(draco) |
| 566 | MDRV_MACHINE_RESET(cidelsa) | |
| 567 | 536 | |
| 568 | 537 | MDRV_CPU_ADD(COP402N_TAG, COP402, DRACO_SND_CHR1) |
| 569 | 538 | MDRV_CPU_PROGRAM_MAP(draco_sound_map) |
| r9427 | r9428 | |
|---|---|---|
| 59 | 59 | - Hacha Mecha Fighter: (BTANB) the bomb graphics are pretty weird when the game is in |
| 60 | 60 | japanese mode,but it's like this on the original game,it's just a japanese write for |
| 61 | 61 | "bomb" word (I presume) |
| 62 | - (PCB owners): Measure pixel clock / vblank duration for all of these games. | |
| 62 | 63 | |
| 63 | 64 | ---- |
| 64 | 65 | |
| r9427 | r9428 | |
| 142 | 143 | #include "cpu/z80/z80.h" |
| 143 | 144 | #include "cpu/tlcs90/tlcs90.h" |
| 144 | 145 | #include "cpu/m68000/m68000.h" |
| 145 | #include "deprecat.h" | |
| 146 | 146 | #include "audio/seibu.h" |
| 147 | 147 | #include "sound/2203intf.h" |
| 148 | 148 | #include "sound/okim6295.h" |
| r9427 | r9428 | |
| 1322 | 1322 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW1:4") // "Play Type" |
| 1323 | 1323 | PORT_DIPSETTING( 0x0008, DEF_STR( Upright ) ) // "Uplight" ! |
| 1324 | 1324 | PORT_DIPSETTING( 0x0000, DEF_STR( Cocktail ) ) // "Table" |
| 1325 | PORT_SERVICE_DIPLOC( 0x10, IP_ACTIVE_ | |
| 1325 | PORT_SERVICE_DIPLOC( 0x10, IP_ACTIVE_HIGH, "SW1:5" ) // "Test Mode" | |
| 1326 | 1326 | PORT_DIPNAME( 0x0060, 0x0000, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:6,7") |
| 1327 | 1327 | PORT_DIPSETTING( 0x0060, DEF_STR( Easy ) ) // "Level 1 |
| 1328 | 1328 | PORT_DIPSETTING( 0x0000, DEF_STR( Normal ) ) // "Level 2 |
| r9427 | r9428 | |
| 3517 | 3517 | ym2203_irqhandler |
| 3518 | 3518 | }; |
| 3519 | 3519 | |
| 3520 | static | |
| 3520 | static | |
| 3521 | 3521 | { |
| 3522 | if (cpu_getiloops(device) == 0) cpu_set_input_line(device, 4, HOLD_LINE); | |
| 3523 | else cpu_set_input_line(device, 2, HOLD_LINE); | |
| 3522 | int scanline = param; | |
| 3523 | ||
| 3524 | if(scanline == 240) // vblank-out irq | |
| 3525 | cputag_set_input_line(timer.machine, "maincpu", 4, HOLD_LINE); | |
| 3526 | ||
| 3527 | /* This is either vblank-in or sprite dma irq complete, Vandyke definitely relies that irq fires at scanline ~0 instead of 112 (as per previous | |
| 3528 | cpu_getiloops() implementation), mostly noticeable with sword collisions and related attract mode behaviour. */ | |
| 3529 | if(scanline == 0) | |
| 3530 | cputag_set_input_line(timer.machine, "maincpu", 2, HOLD_LINE); | |
| 3524 | 3531 | } |
| 3525 | 3532 | |
| 3533 | /* bee-oh board, almost certainly it has different timings */ | |
| 3534 | static TIMER_DEVICE_CALLBACK( manybloc_scanline ) | |
| 3535 | { | |
| 3536 | int scanline = param; | |
| 3537 | ||
| 3538 | if(scanline == 248) // vblank-out irq | |
| 3539 | cputag_set_input_line(timer.machine, "maincpu", 4, HOLD_LINE); | |
| 3540 | ||
| 3541 | /* This is either vblank-in or sprite dma irq complete */ | |
| 3542 | if(scanline == 0) | |
| 3543 | cputag_set_input_line(timer.machine, "maincpu", 2, HOLD_LINE); | |
| 3544 | } | |
| 3545 | ||
| 3546 | ||
| 3526 | 3547 | static const nmk112_interface nmk16_nmk112_intf = |
| 3527 | 3548 | { |
| 3528 | 3549 | "oki1", "oki2", 0 |
| r9427 | r9428 | |
| 3533 | 3554 | /* basic machine hardware */ |
| 3534 | 3555 | MDRV_CPU_ADD("maincpu", M68000, 10000000) /* 10 MHz */ |
| 3535 | 3556 | MDRV_CPU_PROGRAM_MAP(tharrier_map) |
| 3536 | MDRV_CPU_VBLANK_INT_HACK(nmk_interrupt,2) | |
| 3537 | 3557 | MDRV_CPU_PERIODIC_INT(irq1_line_hold,112)/* ???????? */ |
| 3558 | MDRV_TIMER_ADD_SCANLINE("scantimer", nmk16_scanline, "screen", 0, 1) | |
| 3538 | 3559 | |
| 3539 | 3560 | MDRV_CPU_ADD("audiocpu", Z80, 3000000) |
| 3540 | 3561 | MDRV_CPU_PROGRAM_MAP(tharrier_sound_map) |
| r9427 | r9428 | |
| 3579 | 3600 | /* basic machine hardware */ |
| 3580 | 3601 | MDRV_CPU_ADD("maincpu", M68000, 10000000) /* 10? MHz - check */ |
| 3581 | 3602 | MDRV_CPU_PROGRAM_MAP(manybloc_map) |
| 3582 | MDRV_CPU_VBLANK_INT_HACK(nmk_interrupt,2) | |
| 3583 | 3603 | MDRV_CPU_PERIODIC_INT(irq1_line_hold,56)/* this needs to equal the framerate on this, rather than being double it .. */ |
| 3604 | MDRV_TIMER_ADD_SCANLINE("scantimer", manybloc_scanline, "screen", 0, 1) | |
| 3584 | 3605 | |
| 3585 | 3606 | MDRV_CPU_ADD("audiocpu", Z80, 3000000) |
| 3586 | 3607 | MDRV_CPU_PROGRAM_MAP(tharrier_sound_map) |
| r9427 | r9428 | |
| 3623 | 3644 | /* basic machine hardware */ |
| 3624 | 3645 | MDRV_CPU_ADD("maincpu", M68000, 10000000) /* 10 MHz ? */ |
| 3625 | 3646 | MDRV_CPU_PROGRAM_MAP(mustang_map) |
| 3626 | MDRV_CPU_VBLANK_INT_HACK(nmk_interrupt,2) | |
| 3627 | 3647 | MDRV_CPU_PERIODIC_INT(irq1_line_hold,112)/* ???????? */ |
| 3648 | MDRV_TIMER_ADD_SCANLINE("scantimer", nmk16_scanline, "screen", 0, 1) | |
| 3628 | 3649 | |
| 3629 | 3650 | MDRV_MACHINE_RESET(NMK004) |
| 3630 | 3651 | |
| r9427 | r9428 | |
| 3666 | 3687 | /* basic machine hardware */ |
| 3667 | 3688 | MDRV_CPU_ADD("maincpu", M68000, 10000000) /* 10 MHz ? */ |
| 3668 | 3689 | MDRV_CPU_PROGRAM_MAP(mustangb_map) |
| 3669 | MDRV_CPU_VBLANK_INT_HACK(nmk_interrupt,2) | |
| 3670 | 3690 | MDRV_CPU_PERIODIC_INT(irq1_line_hold,112)/* ???????? */ |
| 3691 | MDRV_TIMER_ADD_SCANLINE("scantimer", nmk16_scanline, "screen", 0, 1) | |
| 3671 | 3692 | |
| 3672 | 3693 | SEIBU_SOUND_SYSTEM_CPU(14318180/4) |
| 3673 | 3694 | |
| r9427 | r9428 | |
| 3701 | 3722 | /* basic machine hardware */ |
| 3702 | 3723 | MDRV_CPU_ADD("maincpu", M68000, BIOSHIP_CRYSTAL1 ) /* 10.0 MHz (verified) */ |
| 3703 | 3724 | MDRV_CPU_PROGRAM_MAP(bioship_map) |
| 3704 | MDRV_CPU_VBLANK_INT_HACK(nmk_interrupt,2) | |
| 3705 | 3725 | MDRV_CPU_PERIODIC_INT(irq1_line_hold,100)/* 112 breaks the title screen */ |
| 3726 | MDRV_TIMER_ADD_SCANLINE("scantimer", nmk16_scanline, "screen", 0, 1) | |
| 3706 | 3727 | |
| 3707 | 3728 | MDRV_MACHINE_RESET(NMK004) |
| 3708 | 3729 | |
| r9427 | r9428 | |
| 3743 | 3764 | /* basic machine hardware */ |
| 3744 | 3765 | MDRV_CPU_ADD("maincpu", M68000, XTAL_10MHz) /* 68000p12 running at 10Mhz, verified on pcb */ |
| 3745 | 3766 | MDRV_CPU_PROGRAM_MAP(vandyke_map) |
| 3746 | MDRV_CPU_VBLANK_INT_HACK(nmk_interrupt,2) | |
| 3747 | 3767 | MDRV_CPU_PERIODIC_INT(irq1_line_hold,112)/* ???????? */ |
| 3768 | MDRV_TIMER_ADD_SCANLINE("scantimer", nmk16_scanline, "screen", 0, 1) | |
| 3748 | 3769 | |
| 3749 | 3770 | MDRV_MACHINE_RESET(NMK004) |
| 3750 | 3771 | |
| r9427 | r9428 | |
| 3785 | 3806 | /* basic machine hardware */ |
| 3786 | 3807 | MDRV_CPU_ADD("maincpu", M68000, 10000000) /* 10 MHz ? */ |
| 3787 | 3808 | MDRV_CPU_PROGRAM_MAP(vandykeb_map) |
| 3788 | MDRV_CPU_VBLANK_INT_HACK(nmk_interrupt,2) | |
| 3789 | 3809 | MDRV_CPU_PERIODIC_INT(irq1_line_hold,112)/* ???????? */ |
| 3810 | MDRV_TIMER_ADD_SCANLINE("scantimer", nmk16_scanline, "screen", 0, 1) | |
| 3790 | 3811 | |
| 3791 | 3812 | MDRV_CPU_ADD("mcu", PIC16C57, 12000000) /* 3MHz */ |
| 3792 | 3813 | MDRV_DEVICE_DISABLE() |
| r9427 | r9428 | |
| 3820 | 3841 | /* basic machine hardware */ |
| 3821 | 3842 | MDRV_CPU_ADD("maincpu", M68000, 10000000) /* 10 MHz (verified on pcb) */ |
| 3822 | 3843 | MDRV_CPU_PROGRAM_MAP(acrobatm_map) |
| 3823 | MDRV_CPU_VBLANK_INT_HACK(nmk_interrupt,2) | |
| 3824 | 3844 | MDRV_CPU_PERIODIC_INT(irq1_line_hold,112)/* ???????? */ |
| 3845 | MDRV_TIMER_ADD_SCANLINE("scantimer", nmk16_scanline, "screen", 0, 1) | |
| 3825 | 3846 | |
| 3826 | 3847 | MDRV_MACHINE_RESET(NMK004) |
| 3827 | 3848 | |
| r9427 | r9428 | |
| 3864 | 3885 | MDRV_CPU_ADD("maincpu", M68000, 10000000) |
| 3865 | 3886 | MDRV_CPU_PROGRAM_MAP(tdragonb_map) |
| 3866 | 3887 | //MDRV_CPU_VBLANK_INT("screen", irq4_line_hold) |
| 3867 | MDRV_CPU_VBLANK_INT_HACK(nmk_interrupt,2) | |
| 3868 | 3888 | MDRV_CPU_PERIODIC_INT(irq1_line_hold,112)/* ?? drives music */ |
| 3889 | MDRV_TIMER_ADD_SCANLINE("scantimer", nmk16_scanline, "screen", 0, 1) | |
| 3869 | 3890 | |
| 3870 | 3891 | SEIBU_SOUND_SYSTEM_CPU(14318180/4) |
| 3871 | 3892 | |
| r9427 | r9428 | |
| 3895 | 3916 | /* basic machine hardware */ |
| 3896 | 3917 | MDRV_CPU_ADD("maincpu", M68000, XTAL_8MHz) /* verified on pcb */ |
| 3897 | 3918 | MDRV_CPU_PROGRAM_MAP(tdragon_map) |
| 3898 | MDRV_CPU_VBLANK_INT_HACK(nmk_interrupt,2) | |
| 3899 | 3919 | //MDRV_CPU_VBLANK_INT("screen", irq4_line_hold) |
| 3900 | 3920 | MDRV_CPU_PERIODIC_INT(irq1_line_hold,112)/* ?? drives music */ |
| 3921 | MDRV_TIMER_ADD_SCANLINE("scantimer", nmk16_scanline, "screen", 0, 1) | |
| 3901 | 3922 | |
| 3902 | 3923 | MDRV_MACHINE_RESET(NMK004) |
| 3903 | 3924 | |
| r9427 | r9428 | |
| 3974 | 3995 | /* basic machine hardware */ |
| 3975 | 3996 | MDRV_CPU_ADD("maincpu", M68000, 12000000) /* 12 MHz ? */ |
| 3976 | 3997 | MDRV_CPU_PROGRAM_MAP(strahl_map) |
| 3977 | MDRV_CPU_VBLANK_INT_HACK(nmk_interrupt,2) | |
| 3978 | 3998 | MDRV_CPU_PERIODIC_INT(irq1_line_hold,112)/* ???????? */ |
| 3999 | MDRV_TIMER_ADD_SCANLINE("scantimer", nmk16_scanline, "screen", 0, 1) | |
| 3979 | 4000 | |
| 3980 | 4001 | MDRV_MACHINE_RESET(NMK004) |
| 3981 | 4002 | |
| r9427 | r9428 | |
| 4819 | 4840 | /* basic machine hardware */ |
| 4820 | 4841 | MDRV_CPU_ADD("maincpu", M68000,XTAL_12MHz) /* 68000p10 running at 12mhz, verified on pcb */ |
| 4821 | 4842 | MDRV_CPU_PROGRAM_MAP(afega) |
| 4822 | MDRV_ | |
| 4843 | MDRV_TIMER_ | |
| 4823 | 4844 | |
| 4824 | 4845 | MDRV_CPU_ADD("audiocpu", Z80, XTAL_4MHz) /* verified on pcb */ |
| 4825 | 4846 | MDRV_CPU_PROGRAM_MAP(afega_sound_cpu) |
| r9427 | r9428 | |
| 4900 | 4921 | /* basic machine hardware */ |
| 4901 | 4922 | MDRV_CPU_ADD("maincpu", M68000,12000000) |
| 4902 | 4923 | MDRV_CPU_PROGRAM_MAP(afega) |
| 4903 | MDRV_ | |
| 4924 | MDRV_TIMER_ | |
| 4904 | 4925 | |
| 4905 | 4926 | MDRV_CPU_ADD("audiocpu", Z80,4000000) |
| 4906 | 4927 | MDRV_CPU_PROGRAM_MAP(firehawk_sound_cpu) |
| r9427 | r9428 | |
| 4935 | 4956 | /* basic machine hardware */ |
| 4936 | 4957 | MDRV_CPU_ADD("maincpu", M68000,12000000) |
| 4937 | 4958 | MDRV_CPU_PROGRAM_MAP(twinactn_map) |
| 4938 | MDRV_CPU_VBLANK_INT_HACK(nmk_interrupt,2) | |
| 4939 | 4959 | MDRV_CPU_PERIODIC_INT(irq1_line_hold,112)/* ???????? */ |
| 4960 | MDRV_TIMER_ADD_SCANLINE("scantimer", nmk16_scanline, "screen", 0, 1) | |
| 4940 | 4961 | |
| 4941 | 4962 | MDRV_CPU_ADD("audiocpu", Z80, 4000000) |
| 4942 | 4963 | MDRV_CPU_PROGRAM_MAP(twinactn_sound_cpu) |
| r9427 | r9428 | |
|---|---|---|
| 42 | 42 | #define _WIN32_WINNT 0x0501 |
| 43 | 43 | |
| 44 | 44 | #ifdef _MSC_VER |
| 45 | #include <assert.h> | |
| 45 | 46 | #include <malloc.h> |
| 46 | 47 | #define alloca _alloca |
| 47 | 48 | #define round(x) floor((x) + 0.5) |
| r9427 | r9428 | |
|---|---|---|
| 254 | 254 | static HANDLE watchdog_exit_event; |
| 255 | 255 | static HANDLE watchdog_thread; |
| 256 | 256 | |
| 257 | static running_machine *g_current_machine; | |
| 257 | 258 | |
| 259 | ||
| 258 | 260 | #ifndef MESS |
| 259 | 261 | static const TCHAR helpfile[] = TEXT("docs\\windows.txt"); |
| 260 | 262 | #else |
| r9427 | r9428 | |
| 278 | 280 | //************************************************************************** |
| 279 | 281 | |
| 280 | 282 | static void osd_exit(running_machine &machine); |
| 281 | ||
| 283 | static BOOL WINAPI control_handler(DWORD type); | |
| 282 | 284 | static int is_double_click_start(int argc); |
| 283 | 285 | static DWORD WINAPI watchdog_thread_entry(LPVOID lpParameter); |
| 284 | 286 | static LONG WINAPI exception_filter(struct _EXCEPTION_POINTERS *info); |
| r9427 | r9428 | |
| 390 | 392 | // initialize common controls |
| 391 | 393 | InitCommonControls(); |
| 392 | 394 | |
| 395 | // set a handler to catch ctrl-c | |
| 396 | SetConsoleCtrlHandler(control_handler, TRUE); | |
| 397 | ||
| 393 | 398 | // allocate symbols |
| 394 | 399 | symbol_manager local_symbols(argv[0]); |
| 395 | 400 | symbols = &local_symbols; |
| r9427 | r9428 | |
| 422 | 427 | |
| 423 | 428 | |
| 424 | 429 | //============================================================ |
| 430 | // control_handler | |
| 431 | //============================================================ | |
| 432 | ||
| 433 | static BOOL WINAPI control_handler(DWORD type) | |
| 434 | { | |
| 435 | // indicate to the user that we detected something | |
| 436 | switch (type) | |
| 437 | { | |
| 438 | case CTRL_C_EVENT: fprintf(stderr, "Caught Ctrl+C"); break; | |
| 439 | case CTRL_BREAK_EVENT: fprintf(stderr, "Caught Ctrl+break"); break; | |
| 440 | case CTRL_CLOSE_EVENT: fprintf(stderr, "Caught console close"); break; | |
| 441 | case CTRL_LOGOFF_EVENT: fprintf(stderr, "Caught logoff"); break; | |
| 442 | case CTRL_SHUTDOWN_EVENT: fprintf(stderr, "Caught shutdown"); break; | |
| 443 | default: fprintf(stderr, "Caught unexpected console event"); break; | |
| 444 | } | |
| 445 | ||
| 446 | // if we don't have a machine yet, or if we are handling ctrl+c/ctrl+break, | |
| 447 | // just terminate hard, without throwing or handling any atexit stuff | |
| 448 | if (g_current_machine == NULL || type == CTRL_C_EVENT || type == CTRL_BREAK_EVENT) | |
| 449 | { | |
| 450 | fprintf(stderr, ", exiting\n"); | |
| 451 | TerminateProcess(GetCurrentProcess(), MAMERR_FATALERROR); | |
| 452 | } | |
| 453 | ||
| 454 | // all other situations attempt to do a clean exit | |
| 455 | else | |
| 456 | { | |
| 457 | fprintf(stderr, ", exit requested\n"); | |
| 458 | g_current_machine->schedule_exit(); | |
| 459 | } | |
| 460 | ||
| 461 | // in all cases we handled it | |
| 462 | return TRUE; | |
| 463 | } | |
| 464 | ||
| 465 | ||
| 466 | //============================================================ | |
| 425 | 467 | // winui_output_error |
| 426 | 468 | //============================================================ |
| 427 | 469 | |
| r9427 | r9428 | |
| 544 | 586 | profiler = global_alloc(sampling_profiler(1000, profile - 1)); |
| 545 | 587 | profiler->start(); |
| 546 | 588 | } |
| 589 | ||
| 590 | // note the existence of a machine | |
| 591 | g_current_machine = machine; | |
| 547 | 592 | } |
| 548 | 593 | |
| 549 | 594 | |
| r9427 | r9428 | |
| 553 | 598 | |
| 554 | 599 | static void osd_exit(running_machine &machine) |
| 555 | 600 | { |
| 601 | // no longer have a machine | |
| 602 | g_current_machine = NULL; | |
| 603 | ||
| 556 | 604 | // take down the watchdog thread if it exists |
| 557 | 605 | if (watchdog_thread != NULL) |
| 558 | 606 | { |
| r9427 | r9428 | |
|---|---|---|
| 276 | 276 | |
| 277 | 277 | |
| 278 | 278 | #------------------------------------------------- |
| 279 | # RCA CDP1802 | |
| 280 | #------------------------------------------------- | |
| 281 | ||
| 282 | ifneq ($(filter CDP1802,$(CPUS)),) | |
| 283 | OBJDIRS += $(CPUOBJ)/cdp1802 | |
| 284 | CPUOBJS += $(CPUOBJ)/cdp1802/cdp1802.o | |
| 285 | DASMOBJS += $(CPUOBJ)/cdp1802/1802dasm.o | |
| 286 | endif | |
| 287 | ||
| 288 | $(CPUOBJ)/cdp1802/cdp1802.o: $(CPUSRC)/cdp1802/cdp1802.c \ | |
| 289 | $(CPUSRC)/cdp1802/cdp1802.h | |
| 290 | ||
| 291 | ||
| 292 | ||
| 293 | #------------------------------------------------- | |
| 294 | 279 | # RCA COSMAC |
| 295 | 280 | #------------------------------------------------- |
| 296 | 281 |
| r9427 | r9428 | |
|---|---|---|
| 72 | 72 | if (address >= (0x0000<<1) && address <= (0x07ff<<1)) |
| 73 | 73 | { |
| 74 | 74 | dsp56k_core* cpustate = get_safe_token(direct.space().cpu); |
| 75 | direct.explicit_configure(0x0000<<1, 0x07ff<<1, 0x07ff<<1, cpustate->program_ram); | |
| 75 | direct.explicit_configure(0x0000<<1, 0x07ff<<1, (0x07ff<<1) | 1, cpustate->program_ram); | |
| 76 | 76 | return ~0; |
| 77 | 77 | } |
| 78 | 78 |
| r9427 | r9428 | |
|---|---|---|
| 14 | 14 | |
| 15 | 15 | /* |
| 16 | 16 | |
| 17 | ||
| 17 | TODO: | |
| 18 | 18 | |
| 19 | - debugger cursor is not on R(P) | |
| 20 | - divide clock by 8 | |
| 21 | - min cycles -> 2 and 3 | |
| 19 | - debugger cursor is not on R(P) | |
| 20 | - divide clock by 8 | |
| 21 | - min cycles -> 2 and 3 | |
| 22 | 22 | |
| 23 | 23 | */ |
| 24 | 24 | |
| r9427 | r9428 | |
| 47 | 47 | COSMAC_STATE_CODE_S1_EXECUTE, // COSMAC_STATE_1_RESET |
| 48 | 48 | COSMAC_STATE_CODE_S1_EXECUTE, // COSMAC_STATE_1_INIT |
| 49 | 49 | COSMAC_STATE_CODE_S1_EXECUTE, // COSMAC_STATE_1_EXECUTE |
| 50 | COSMAC_STATE_CODE_S2_DMA, | |
| 50 | COSMAC_STATE_CODE_S2_DMA, | |
| 51 | 51 | COSMAC_STATE_CODE_S2_DMA, // COSMAC_STATE_2_DMA_OUT |
| 52 | 52 | COSMAC_STATE_CODE_S3_INTERRUPT // COSMAC_STATE_3_INT |
| 53 | 53 | }; |
| r9427 | r9428 | |
| 109 | 109 | &cosmac_device::dec, &cosmac_device::dec, &cosmac_device::dec, &cosmac_device::dec, |
| 110 | 110 | |
| 111 | 111 | &cosmac_device::br, &cosmac_device::bq, &cosmac_device::bz, &cosmac_device::bdf, |
| 112 | &cosmac_device::b, &cosmac_device::b, &cosmac_device::b, &cosmac_device::b, | |
| 112 | &cosmac_device::b, &cosmac_device::b, &cosmac_device::b, &cosmac_device::b, | |
| 113 | 113 | &cosmac_device::nbr, &cosmac_device::bnq, &cosmac_device::bnz, &cosmac_device::bnf, |
| 114 | &cosmac_device::bn, &cosmac_device::bn, &cosmac_device::bn, &cosmac_device::bn, | |
| 114 | &cosmac_device::bn, &cosmac_device::bn, &cosmac_device::bn, &cosmac_device::bn, | |
| 115 | 115 | |
| 116 | 116 | &cosmac_device::lda, &cosmac_device::lda, &cosmac_device::lda, &cosmac_device::lda, |
| 117 | 117 | &cosmac_device::lda, &cosmac_device::lda, &cosmac_device::lda, &cosmac_device::lda, |
| r9427 | r9428 | |
| 169 | 169 | &cosmac_device::sex, &cosmac_device::sex, &cosmac_device::sex, &cosmac_device::sex, |
| 170 | 170 | |
| 171 | 171 | &cosmac_device::ldx, &cosmac_device::_or, &cosmac_device::_and, &cosmac_device::_xor, |
| 172 | &cosmac_device::add, &cosmac_device::sd, &cosmac_device::shr, &cosmac_device::sm, | |
| 172 | &cosmac_device::add, &cosmac_device::sd, &cosmac_device::shr, &cosmac_device::sm, | |
| 173 | 173 | &cosmac_device::ldi, &cosmac_device::ori, &cosmac_device::ani, &cosmac_device::xri, |
| 174 | 174 | &cosmac_device::adi, &cosmac_device::sdi, &cosmac_device::shl, &cosmac_device::smi |
| 175 | 175 | }; |
| r9427 | r9428 | |
| 360 | 360 | // register our state for the debugger |
| 361 | 361 | state_add(STATE_GENPC, "GENPC", R[P]).noshow(); |
| 362 | 362 | state_add(STATE_GENFLAGS, "GENFLAGS", m_flagsio).mask(0x7).callimport().callexport().noshow().formatstr("%3s"); |
| 363 | ||
| 363 | ||
| 364 | 364 | state_add(COSMAC_P, "P", m_p).mask(0xf); |
| 365 | 365 | state_add(COSMAC_X, "X", m_x).mask(0xf); |
| 366 | 366 | state_add(COSMAC_D, "D", m_d); |
| 367 | 367 | state_add(COSMAC_B, "B", m_b); |
| 368 | 368 | state_add(COSMAC_T, "T", m_t); |
| 369 | ||
| 369 | ||
| 370 | 370 | state_add(COSMAC_I, "I", m_i).mask(0xf); |
| 371 | 371 | state_add(COSMAC_N, "N", m_n).mask(0xf); |
| 372 | ||
| 372 | ||
| 373 | 373 | astring tempstr; |
| 374 | 374 | for (int regnum = 0; regnum < 16; regnum++) |
| 375 | 375 | state_add(COSMAC_R0 + regnum, tempstr.format("R%x", regnum), m_r[regnum]); |
| r9427 | r9428 | |
| 427 | 427 | void cosmac_device::device_reset() |
| 428 | 428 | { |
| 429 | 429 | } |
| 430 | ||
| 431 | 430 | |
| 431 | ||
| 432 | 432 | //------------------------------------------------- |
| 433 | 433 | // state_import - import state into the device, |
| 434 | 434 | // after it has been set |
| r9427 | r9428 | |
| 518 | 518 | |
| 519 | 519 | |
| 520 | 520 | //------------------------------------------------- |
| 521 | // read_io_byte - read an I/O byte at the given | |
| 521 | // read_io_byte - read an I/O byte at the given | |
| 522 | 522 | // address |
| 523 | 523 | //------------------------------------------------- |
| 524 | 524 | |
| r9427 | r9428 | |
| 539 | 539 | |
| 540 | 540 | |
| 541 | 541 | //------------------------------------------------- |
| 542 | // write_io_byte - write an I/O byte at the given | |
| 542 | // write_io_byte - write an I/O byte at the given | |
| 543 | 543 | // address |
| 544 | 544 | //------------------------------------------------- |
| 545 | 545 | |
| r9427 | r9428 | |
| 565 | 565 | } |
| 566 | 566 | |
| 567 | 567 | //------------------------------------------------- |
| 568 | // execute_set_input - | |
| 568 | // execute_set_input - | |
| 569 | 569 | //------------------------------------------------- |
| 570 | 570 | |
| 571 | 571 | void cosmac_device::execute_set_input(int inputnum, int state) |
| r9427 | r9428 | |
| 595 | 595 | |
| 596 | 596 | |
| 597 | 597 | //------------------------------------------------- |
| 598 | // execute_run - | |
| 598 | // execute_run - | |
| 599 | 599 | //------------------------------------------------- |
| 600 | 600 | |
| 601 | 601 | void cosmac_device::execute_run() |
| r9427 | r9428 | |
| 676 | 676 | inline void cosmac_device::run() |
| 677 | 677 | { |
| 678 | 678 | output_state_code(); |
| 679 | ||
| 679 | ||
| 680 | 680 | switch (m_state) |
| 681 | 681 | { |
| 682 | 682 | case COSMAC_STATE_0_FETCH: |
| r9427 | r9428 | |
| 1129 | 1129 | void cosmac_device::lsq() { long_skip(Q); } |
| 1130 | 1130 | void cosmac_device::lsnq() { long_skip(!Q); } |
| 1131 | 1131 | void cosmac_device::lsie() { long_skip(IE); } |
| 1132 | ||
| 1132 | ||
| 1133 | 1133 | // control instructions opcode handlers |
| 1134 | 1134 | void cosmac_device::idl() { /* idle */ } |
| 1135 | 1135 | void cosmac_device::nop() { m_icount -= CLOCKS_EXECUTE; } |
| r9427 | r9428 | |
|---|---|---|
| 29 | 29 | Vss 20 |_____________| 21 _EF4 |
| 30 | 30 | |
| 31 | 31 | |
| 32 | ||
| 32 | Type Internal ROM Internal RAM Timer Pin 16 (*) | |
| 33 | 33 | ------------------------------------------------------------------ |
| 34 | CDP1802 none none no Vcc | |
| 35 | CDP1803 ? ? ? ? | |
| 36 | CDP1804 2 KB 64 bytes yes ? | |
| 37 | CDP1805 none 64 bytes yes _ME | |
| 38 | CDP1806 none none yes Vdd | |
| 39 | ||
| 34 | CDP1802 none none no Vcc | |
| 35 | CDP1803 ? ? ? ? | |
| 36 | CDP1804 2 KB 64 bytes yes ? | |
| 37 | CDP1805 none 64 bytes yes _ME | |
| 38 | CDP1806 none none yes Vdd | |
| 39 | ||
| 40 | 40 | **********************************************************************/ |
| 41 | 41 | |
| 42 | 42 | #pragma once |
| r9427 | r9428 | |
| 319 | 319 | void lsq(); |
| 320 | 320 | void lsnq(); |
| 321 | 321 | void lsie(); |
| 322 | ||
| 322 | ||
| 323 | 323 | // control instructions opcode handlers |
| 324 | 324 | void idl(); |
| 325 | 325 | void nop(); |
| r9427 | r9428 | |
| 346 | 346 | cosmac_out_sc_func m_out_sc_func; |
| 347 | 347 | devcb_resolved_write_line m_out_tpa_func; |
| 348 | 348 | devcb_resolved_write_line m_out_tpb_func; |
| 349 | ||
| 349 | ||
| 350 | 350 | // control modes |
| 351 | 351 | enum _cosmac_mode |
| 352 | 352 | { |
| r9427 | r9428 | |
|---|---|---|
| 1255 | 1255 | |
| 1256 | 1256 | /* determine if the template has an index; if not, we always use the same name */ |
| 1257 | 1257 | if (snapstr.find(0, "%i") == -1) |
| 1258 | | |
| 1258 | fname | |
| 1259 | 1259 | |
| 1260 | 1260 | /* otherwise, we scan for the next available filename */ |
| 1261 | 1261 | else |
| r9427 | r9428 | |
| 1611 | 1611 | for (screen = screen_first(*machine); screen != NULL; screen = screen_next(screen)) |
| 1612 | 1612 | if (index-- == 0) |
| 1613 | 1613 | break; |
| 1614 | ||
| 1614 | ||
| 1615 | 1615 | /* find the first view with this screen and this screen only */ |
| 1616 | 1616 | for (viewindex = 0; ; viewindex++) |
| 1617 | 1617 | { |
| r9427 | r9428 | |
| 2095 | 2095 | void screen_device::reset_origin(int beamy, int beamx) |
| 2096 | 2096 | { |
| 2097 | 2097 | // compute the effective VBLANK start/end times |
| 2098 | m_vblank_end_time = attotime_sub_attoseconds(timer_get_time(machine), beamy * m_scantime + beamx * m_pixeltime); | |
| 2098 | attotime curtime = timer_get_time(machine); | |
| 2099 | m_vblank_end_time = attotime_sub_attoseconds(curtime, beamy * m_scantime + beamx * m_pixeltime); | |
| 2099 | 2100 | m_vblank_start_time = attotime_sub_attoseconds(m_vblank_end_time, m_vblank_period); |
| 2100 | 2101 | |
| 2101 | // re-adjust the scanline 0 and VBLANK timers | |
| 2102 | timer_adjust_oneshot(m_scanline0_timer, time_until_pos(0), 0); | |
| 2103 | timer_adjust_oneshot(m_vblank_begin_timer, time_until_vblank_start(), 0); | |
| 2102 | // if we are resetting relative to (0,0) == VBLANK end, call the | |
| 2103 | // scanline 0 timer by hand now; otherwise, adjust it for the future | |
| 2104 | if (beamy == 0 && beamx == 0) | |
| 2105 | scanline0_callback(); | |
| 2106 | else | |
| 2107 | timer_adjust_oneshot(m_scanline0_timer, time_until_pos(0), 0); | |
| 2108 | ||
| 2109 | // if we are resetting relative to (visarea.max_y + 1, 0) == VBLANK start, | |
| 2110 | // call the VBLANK start timer now; otherwise, adjust it for the future | |
| 2111 | if (beamy == m_visarea.max_y + 1 && beamx == 0) | |
| 2112 | vblank_begin_callback(); | |
| 2113 | else | |
| 2114 | timer_adjust_oneshot(m_vblank_begin_timer, time_until_vblank_start(), 0); | |
| 2104 | 2115 | } |
| 2105 | 2116 | |
| 2106 | 2117 |
| r9427 | r9428 | |
|---|---|---|
| 441 | 441 | if (name == NULL) |
| 442 | 442 | throw emu_fatalerror("All layout elements must have a name!\n"); |
| 443 | 443 | m_name = name; |
| 444 | ||
| 444 | ||
| 445 | 445 | // get the default state |
| 446 | 446 | m_defstate = xml_get_attribute_int_with_subst(machine, elemnode, "defstate", -1); |
| 447 | 447 | |
| r9427 | r9428 | |
| 474 | 474 | if (newcomp.m_type == component::CTYPE_DOTMATRIX) |
| 475 | 475 | m_maxstate = 255; |
| 476 | 476 | } |
| 477 | ||
| 477 | ||
| 478 | 478 | // determine the scale/offset for normalization |
| 479 | 479 | float xoffs = bounds.x0; |
| 480 | 480 | float yoffs = bounds.y0; |
| r9427 | r9428 | |
| 526 | 526 | |
| 527 | 527 | |
| 528 | 528 | //------------------------------------------------- |
| 529 | // element_scale - scale an element by rendering | |
| 530 | // all the components at the appropriate | |
| 529 | // element_scale - scale an element by rendering | |
| 530 | // all the components at the appropriate | |
| 531 | 531 | // resolution |
| 532 | 532 | //------------------------------------------------- |
| 533 | 533 | |
| r9427 | r9428 | |
| 718 | 718 | case CTYPE_DOTMATRIX: |
| 719 | 719 | draw_dotmatrix(dest, bounds, state); |
| 720 | 720 | break; |
| 721 | ||
| 721 | ||
| 722 | 722 | default: |
| 723 | 723 | throw emu_fatalerror("Unknown component type requested draw()"); |
| 724 | 724 | } |
| r9427 | r9428 | |
| 726 | 726 | |
| 727 | 727 | |
| 728 | 728 | //------------------------------------------------- |
| 729 | // draw_rect - draw a rectangle in the specified | |
| 729 | // draw_rect - draw a rectangle in the specified | |
| 730 | 730 | // color |
| 731 | 731 | //------------------------------------------------- |
| 732 | 732 | |
| r9427 | r9428 | |
| 762 | 762 | |
| 763 | 763 | |
| 764 | 764 | //------------------------------------------------- |
| 765 | // draw_disk - draw an ellipse in the specified | |
| 765 | // draw_disk - draw an ellipse in the specified | |
| 766 | 766 | // color |
| 767 | 767 | //------------------------------------------------- |
| 768 | 768 | |
| r9427 | r9428 | |
| 888 | 888 | |
| 889 | 889 | |
| 890 | 890 | //------------------------------------------------- |
| 891 | // load_bitmap - load a PNG file with artwork for | |
| 891 | // load_bitmap - load a PNG file with artwork for | |
| 892 | 892 | // a component |
| 893 | 893 | //------------------------------------------------- |
| 894 | 894 | |
| r9427 | r9428 | |
| 1083 | 1083 | |
| 1084 | 1084 | |
| 1085 | 1085 | //------------------------------------------------- |
| 1086 | // draw_led14segsc - draw a 14-segment LCD with | |
| 1086 | // draw_led14segsc - draw a 14-segment LCD with | |
| 1087 | 1087 | // semicolon (2 extra segments) |
| 1088 | 1088 | //------------------------------------------------- |
| 1089 | 1089 | |
| r9427 | r9428 | |
| 1309 | 1309 | |
| 1310 | 1310 | |
| 1311 | 1311 | //------------------------------------------------- |
| 1312 | // draw_led16segsc - draw a 16-segment LCD with | |
| 1312 | // draw_led16segsc - draw a 16-segment LCD with | |
| 1313 | 1313 | // semicolon (2 extra segments) |
| 1314 | 1314 | //------------------------------------------------- |
| 1315 | 1315 | |
| r9427 | r9428 | |
| 1432 | 1432 | |
| 1433 | 1433 | |
| 1434 | 1434 | //------------------------------------------------- |
| 1435 | // draw_dotmatrix - draw a row of 8 dots for a | |
| 1435 | // draw_dotmatrix - draw a row of 8 dots for a | |
| 1436 | 1436 | // dotmatrix |
| 1437 | 1437 | //------------------------------------------------- |
| 1438 | 1438 | |
| r9427 | r9428 | |
| 1553 | 1553 | |
| 1554 | 1554 | //------------------------------------------------- |
| 1555 | 1555 | // draw_segment_diagonal_2 - draw a diagonal |
| 1556 | // LED segment that looks like this: | |
| 1556 | // LED segment that looks like this: | |
| 1557 | 1557 | //------------------------------------------------- |
| 1558 | 1558 | |
| 1559 | 1559 | void layout_element::component::draw_segment_diagonal_2(bitmap_t &dest, int minx, int maxx, int miny, int maxy, int width, rgb_t color) |
| r9427 | r9428 | |
| 1722 | 1722 | |
| 1723 | 1723 | |
| 1724 | 1724 | //------------------------------------------------- |
| 1725 | // recompute - recompute the bounds and aspect | |
| 1725 | // recompute - recompute the bounds and aspect | |
| 1726 | 1726 | // ratio of a view and all of its contained items |
| 1727 | 1727 | //------------------------------------------------- |
| 1728 | 1728 | |
| r9427 | r9428 | |
| 1895 | 1895 | int layout_view::item::state() const |
| 1896 | 1896 | { |
| 1897 | 1897 | int state = 0; |
| 1898 | ||
| 1898 | ||
| 1899 | 1899 | assert(m_element != NULL); |
| 1900 | ||
| 1900 | ||
| 1901 | 1901 | // if configured to an output, fetch the output value |
| 1902 | 1902 | if (m_output_name[0] != 0) |
| 1903 | 1903 | state = output_get_value(m_output_name); |
| 1904 | ||
| 1904 | ||
| 1905 | 1905 | // if configured to an input, fetch the input value |
| 1906 | 1906 | else if (m_input_tag[0] != 0) |
| 1907 | 1907 | { |
| r9427 | r9428 | |
|---|---|---|
| 71 | 71 | class layout_element |
| 72 | 72 | { |
| 73 | 73 | friend class simple_list<layout_element>; |
| 74 | ||
| 74 | ||
| 75 | 75 | public: |
| 76 | 76 | // construction/destruction |
| 77 | 77 | layout_element(running_machine &machine, xml_data_node &elemnode, const char *dirname); |
| 78 | 78 | virtual ~layout_element(); |
| 79 | 79 | |
| 80 | // getters | |
| 80 | // getters | |
| 81 | 81 | layout_element *next() const { return m_next; } |
| 82 | 82 | const char *name() const { return m_name; } |
| 83 | 83 | running_machine &machine() const { return m_machine; } |
| r9427 | r9428 | |
| 91 | 91 | { |
| 92 | 92 | friend class layout_element; |
| 93 | 93 | friend class simple_list<component>; |
| 94 | ||
| 94 | ||
| 95 | 95 | public: |
| 96 | 96 | // construction/destruction |
| 97 | 97 | component(running_machine &machine, xml_data_node &compnode, const char *dirname); |
| r9427 | r9428 | |
| 100 | 100 | // getters |
| 101 | 101 | component *next() const { return m_next; } |
| 102 | 102 | const render_bounds &bounds() const { return m_bounds; } |
| 103 | ||
| 103 | ||
| 104 | 104 | // operations |
| 105 | 105 | void draw(running_machine &machine, bitmap_t &dest, const rectangle &bounds, int state); |
| 106 | 106 | |
| r9427 | r9428 | |
| 121 | 121 | CTYPE_DOTMATRIX, |
| 122 | 122 | CTYPE_MAX |
| 123 | 123 | }; |
| 124 | ||
| 124 | ||
| 125 | 125 | // helpers |
| 126 | 126 | void draw_rect(bitmap_t &dest, const rectangle &bounds); |
| 127 | 127 | void draw_disk(bitmap_t &dest, const rectangle &bounds); |
| r9427 | r9428 | |
| 163 | 163 | public: |
| 164 | 164 | texture(); |
| 165 | 165 | ~texture(); |
| 166 | ||
| 166 | ||
| 167 | 167 | layout_element * m_element; // pointer back to the element |
| 168 | 168 | render_texture * m_texture; // texture for this state |
| 169 | 169 | int m_state; // associated state number |
| r9427 | r9428 | |
| 212 | 212 | render_container *screen_container(running_machine &machine) const { return (m_screen != NULL) ? &m_screen->container() : NULL; } |
| 213 | 213 | bool has_input() const { return bool(m_input_tag); } |
| 214 | 214 | const char *input_tag_and_mask(UINT32 &mask) const { mask = m_input_mask; return m_input_tag; } |
| 215 | ||
| 215 | ||
| 216 | 216 | // fetch state based on configured source |
| 217 | 217 | int state() const; |
| 218 | 218 | |
| r9427 | r9428 | |
| 229 | 229 | render_bounds m_rawbounds; // raw (original) bounds of the item |
| 230 | 230 | render_color m_color; // color of the item |
| 231 | 231 | }; |
| 232 | ||
| 232 | ||
| 233 | 233 | // construction/destruction |
| 234 | 234 | layout_view(running_machine &machine, xml_data_node &viewnode, simple_list<layout_element> &elemlist); |
| 235 | 235 | virtual ~layout_view(); |
| r9427 | r9428 | |
| 241 | 241 | const render_screen_list &screens() const { return m_screens; } |
| 242 | 242 | bool layer_enabled(item_layer layer) const { return m_layenabled[layer]; } |
| 243 | 243 | |
| 244 | // | |
| 244 | // | |
| 245 | 245 | bool has_art() const { return (m_backdrop_list.count() + m_overlay_list.count() + m_bezel_list.count() != 0); } |
| 246 | 246 | float effective_aspect(render_layer_config config) const { return (config.zoom_to_screen() && m_screens.count() != 0) ? m_scraspect : m_aspect; } |
| 247 | 247 | |
| r9427 | r9428 | |
| 254 | 254 | astring m_name; // name of the layout |
| 255 | 255 | float m_aspect; // X/Y of the layout |
| 256 | 256 | float m_scraspect; // X/Y of the screen areas |
| 257 | render_screen_list | |
| 257 | render_screen_list | |
| 258 | 258 | render_bounds m_bounds; // computed bounds of the view |
| 259 | 259 | render_bounds m_scrbounds; // computed bounds of the screens within the view |
| 260 | 260 | render_bounds m_expbounds; // explicit bounds of the view |
| 261 | 261 | bool m_layenabled[ITEM_LAYER_MAX]; // is this layer enabled? |
| 262 | simple_list<item> m_backdrop_list; // list of backdrop items | |
| 263 | simple_list<item> m_screen_list; // list of screen items | |
| 264 | simple_list<item> m_overlay_list; // list of overlay items | |
| 265 | simple_list<item> m_bezel_list; // list of bezel items | |
| 262 | simple_list<item> m_backdrop_list; // list of backdrop items | |
| 263 | simple_list<item> m_screen_list; // list of screen items | |
| 264 | simple_list<item> m_overlay_list; // list of overlay items | |
| 265 | simple_list<item> m_bezel_list; // list of bezel items | |
| 266 | 266 | }; |
| 267 | 267 | |
| 268 | 268 | |
| r9427 | r9428 | |
| 272 | 272 | class layout_file |
| 273 | 273 | { |
| 274 | 274 | friend class simple_list<layout_file>; |
| 275 | ||
| 275 | ||
| 276 | 276 | public: |
| 277 | 277 | // construction/destruction |
| 278 | 278 | layout_file(running_machine &machine, xml_data_node &rootnode, const char *dirname); |
| r9427 | r9428 | |
|---|---|---|
| 465 | 465 | m_scheduler.eat_all_cycles(); |
| 466 | 466 | |
| 467 | 467 | // if we're autosaving on exit, schedule a save as well |
| 468 | if (options_get_bool(&m_options, OPTION_AUTOSAVE) && (m_game.flags & GAME_SUPPORTS_SAVE)) | |
| 468 | if (options_get_bool(&m_options, OPTION_AUTOSAVE) && (m_game.flags & GAME_SUPPORTS_SAVE) && attotime_compare(timer_get_time(this), attotime_zero) > 0) | |
| 469 | 469 | schedule_save("auto"); |
| 470 | 470 | } |
| 471 | 471 |
| r9427 | r9428 | |
|---|---|---|
| 1 | 1 | /********************************************************************** |
| 2 | 2 | |
| 3 | ||
| 3 | RCA CDP1869/1870/1876 Video Interface System (VIS) emulation | |
| 4 | 4 | |
| 5 | 5 | Copyright MESS Team. |
| 6 | 6 | Visit http://mamedev.org for licensing and usage restrictions. |
| r9427 | r9428 | |
| 23 | 23 | |
| 24 | 24 | |
| 25 | 25 | //************************************************************************** |
| 26 | // | |
| 26 | // MACROS / CONSTANTS | |
| 27 | 27 | //************************************************************************** |
| 28 | 28 | |
| 29 | 29 | #define LOG 0 |
| r9427 | r9428 | |
| 157 | 157 | |
| 158 | 158 | |
| 159 | 159 | //------------------------------------------------- |
| 160 | // read_page_ram_byte - read a page RAM byte at | |
| 160 | // read_page_ram_byte - read a page RAM byte at | |
| 161 | 161 | // the given address |
| 162 | 162 | //------------------------------------------------- |
| 163 | 163 | |
| r9427 | r9428 | |
| 168 | 168 | |
| 169 | 169 | |
| 170 | 170 | //------------------------------------------------- |
| 171 | // write_page_ram_byte - write a page RAM byte at | |
| 171 | // write_page_ram_byte - write a page RAM byte at | |
| 172 | 172 | // the given address |
| 173 | 173 | //------------------------------------------------- |
| 174 | 174 | |
| r9427 | r9428 | |
| 179 | 179 | |
| 180 | 180 | |
| 181 | 181 | //------------------------------------------------- |
| 182 | // read_char_ram_byte - read a char RAM byte at | |
| 182 | // read_char_ram_byte - read a char RAM byte at | |
| 183 | 183 | // the given address |
| 184 | 184 | //------------------------------------------------- |
| 185 | 185 | |
| r9427 | r9428 | |
| 197 | 197 | |
| 198 | 198 | |
| 199 | 199 | //------------------------------------------------- |
| 200 | // write_char_ram_byte - write a char RAM byte at | |
| 200 | // write_char_ram_byte - write a char RAM byte at | |
| 201 | 201 | // the given address |
| 202 | 202 | //------------------------------------------------- |
| 203 | 203 | |
| r9427 | r9428 | |
| 228 | 228 | |
| 229 | 229 | |
| 230 | 230 | //------------------------------------------------- |
| 231 | // update_prd_changed_timer - | |
| 231 | // update_prd_changed_timer - | |
| 232 | 232 | //------------------------------------------------- |
| 233 | 233 | |
| 234 | 234 | inline void cdp1869_device::update_prd_changed_timer() |
| r9427 | r9428 | |
| 294 | 294 | |
| 295 | 295 | |
| 296 | 296 | //------------------------------------------------- |
| 297 | // | |
| 297 | // get_lines - get number of character lines | |
| 298 | 298 | //------------------------------------------------- |
| 299 | 299 | |
| 300 | 300 | inline int cdp1869_device::get_lines() |
| r9427 | r9428 | |
| 315 | 315 | |
| 316 | 316 | |
| 317 | 317 | //------------------------------------------------- |
| 318 | // | |
| 318 | // get_pmemsize - get page memory size | |
| 319 | 319 | //------------------------------------------------- |
| 320 | 320 | |
| 321 | 321 | inline UINT16 cdp1869_device::get_pmemsize(int cols, int rows) |
| r9427 | r9428 | |
| 330 | 330 | |
| 331 | 331 | |
| 332 | 332 | //------------------------------------------------- |
| 333 | // | |
| 333 | // get_pma - get page memory address | |
| 334 | 334 | //------------------------------------------------- |
| 335 | 335 | |
| 336 | 336 | inline UINT16 cdp1869_device::get_pma() |
| r9427 | r9428 | |
| 347 | 347 | |
| 348 | 348 | |
| 349 | 349 | //------------------------------------------------- |
| 350 | // | |
| 350 | // get_pen - get pen for color bits | |
| 351 | 351 | //------------------------------------------------- |
| 352 | 352 | |
| 353 | 353 | inline int cdp1869_device::get_pen(int ccb0, int ccb1, int pcb) |
| r9427 | r9428 | |
| 581 | 581 | |
| 582 | 582 | |
| 583 | 583 | //------------------------------------------------- |
| 584 | // | |
| 584 | // draw_line - draw character line | |
| 585 | 585 | //------------------------------------------------- |
| 586 | 586 | |
| 587 | 587 | void cdp1869_device::draw_line(bitmap_t *bitmap, const rectangle *rect, int x, int y, UINT8 data, int color) |
| r9427 | r9428 | |
| 625 | 625 | |
| 626 | 626 | |
| 627 | 627 | //------------------------------------------------- |
| 628 | // | |
| 628 | // draw_char - draw character | |
| 629 | 629 | //------------------------------------------------- |
| 630 | 630 | |
| 631 | 631 | void cdp1869_device::draw_char(bitmap_t *bitmap, const rectangle *rect, int x, int y, UINT16 pma) |
| r9427 | r9428 | |
| 1011 | 1011 | int y = sy * height; |
| 1012 | 1012 | |
| 1013 | 1013 | draw_char(bitmap, &screen_rect, x, y, addr); |
| 1014 | ||
| 1014 | ||
| 1015 | 1015 | addr++; |
| 1016 | 1016 | |
| 1017 | 1017 | if (addr == pmemsize) addr = 0; |
| r9427 | r9428 | |
|---|---|---|
| 1 | 1 | /********************************************************************** |
| 2 | 2 | |
| 3 | ||
| 3 | RCA CDP1869/1870/1876 Video Interface System (VIS) emulation | |
| 4 | 4 | |
| 5 | 5 | Copyright MESS Team. |
| 6 | 6 | Visit http://mamedev.org for licensing and usage restrictions. |
| r9427 | r9428 | |
| 84 | 84 | |
| 85 | 85 | |
| 86 | 86 | //************************************************************************** |
| 87 | // | |
| 87 | // MACROS / CONSTANTS | |
| 88 | 88 | //************************************************************************** |
| 89 | 89 | |
| 90 | 90 | #define CDP1869_DOT_CLK_PAL (float)XTAL_5_626MHz |
| r9427 | r9428 | |
| 170 | 170 | |
| 171 | 171 | |
| 172 | 172 | //************************************************************************** |
| 173 | // | |
| 173 | // TYPE DEFINITIONS | |
| 174 | 174 | //************************************************************************** |
| 175 | 175 | |
| 176 | 176 | typedef UINT8 (*cdp1869_char_ram_read_func)(running_device *device, UINT16 pma, UINT8 cma, UINT8 pmd); |
| r9427 | r9428 | |
|---|---|---|
| 4526 | 4526 | #define DISCRETE_555_VCO1_CV(NODE,RESET,VIN,CTRLV,OPTIONS) { NODE, DSD_555_VCO1 , 3, { RESET,VIN,CTRLV }, { RESET,VIN,CTRLV }, OPTIONS, "DISCRETE_555_VCO1_CV" }, |
| 4527 | 4527 | #define DISCRETE_566(NODE,VMOD,R,C,VPOS,VNEG,VCHARGE,OPTIONS) { NODE, DSD_566 , 7, { VMOD,R,C,NODE_NC,NODE_NC,VCHARGE,NODE_NC }, { VMOD,R,C,VPOS,VNEG,VCHARGE,OPTIONS }, NULL, "DISCRETE_566" }, |
| 4528 | 4528 | #define DISCRETE_74LS624(NODE,VMOD,VRNG,C,OUTTYPE) { NODE, DSD_LS624 , 4, { VMOD,NODE_NC,NODE_NC,NODE_NC }, { VMOD,VRNG,C,OUTTYPE }, NULL, "DISCRETE_74LS624" }, |
| 4529 | #define DISCRETE_74LS629(NODE,ENAB,VMOD,VRNG,C,R_FREQ_IN,OUTTYPE) | |
| 4529 | #define DISCRETE_74LS629(NODE,ENAB,VMOD,VRNG,C,R_FREQ_IN,C_FREQ_IN,OUTTYPE) | |
| 4530 | 4530 | |
| 4531 | 4531 | /* NOP */ |
| 4532 | 4532 | #define DISCRETE_NOP(NODE) { NODE, DSS_NOP , 0, { 0 }, { 0 }, NULL, "DISCRETE_NOP" }, |
| r9427 | r9428 | |
|---|---|---|
| 14 | 14 | * DSD_555_CC - NE555 Constant Current VCO |
| 15 | 15 | * DSD_555_VCO1 - Op-Amp linear ramp based 555 VCO |
| 16 | 16 | * DSD_566 - NE566 Simulation |
| 17 | * DSD_LS624 | |
| 18 | * DSD_LS629 | |
| 17 | 19 | * |
| 18 | 20 | ************************************************************************ |
| 19 | 21 | * |
| r9427 | r9428 | |
| 135 | 137 | |
| 136 | 138 | struct dsd_ls629_context |
| 137 | 139 | { |
| 138 | double v_bias; | |
| 139 | double v_cap; | |
| 140 | double v_peak; | |
| 141 | double v_threshold; | |
| 142 | double k_vmod_to_i; | |
| 140 | double exponent; | |
| 141 | double t_used; | |
| 142 | double vmod_scale; | |
| 143 | double v_cap_freq_in; | |
| 143 | 144 | int flip_flop; |
| 145 | int has_freq_in_cap; | |
| 144 | 146 | int out_type; |
| 145 | 147 | }; |
| 146 | 148 | |
| r9427 | r9428 | |
| 1813 | 1815 | #define DSD_LS629__VRNG DISCRETE_INPUT(2) |
| 1814 | 1816 | #define DSD_LS629__C DISCRETE_INPUT(3) |
| 1815 | 1817 | #define DSD_LS629__R_FREQ_IN DISCRETE_INPUT(4) |
| 1816 | #define DSD_LS629__OUTTYPE DISCRETE_INPUT(5) | |
| 1818 | #define DSD_LS629__C_FREQ_IN DISCRETE_INPUT(5) | |
| 1819 | #define DSD_LS629__OUTTYPE DISCRETE_INPUT(6) | |
| 1817 | 1820 | |
| 1818 | 1821 | #define LS624_R_EXT 600.0 /* as specified in data sheet */ |
| 1819 | 1822 | #define LS624_OUT_HIGH 4.5 /* measured */ |
| 1820 | #define LS624_FREQ_R_IN RES_K(9 | |
| 1823 | #define LS624_FREQ_R_IN RES_K(90) /* measured & 70K + 20k per data sheet */ | |
| 1821 | 1824 | |
| 1822 | 1825 | /* |
| 1823 | 1826 | * The 74LS624 series are constant current based VCOs. The Freq Control voltage |
| r9427 | r9428 | |
| 1835 | 1838 | * The Range voltage adjusts the threshold voltage. The higher the Range voltage, |
| 1836 | 1839 | * the lower the threshold voltage, the longer the cap can charge, the lower the frequency. |
| 1837 | 1840 | * |
| 1841 | * In a perfect world it would work like this: | |
| 1838 | 1842 | * The current is based on the mysterious Rext mentioned in the data sheet. |
| 1839 | * I = (VfreqControl | |
| 1843 | * I = (VfreqControl | |
| 1840 | 1844 | * where Rext = 600 ohms or external Rext on a 74LS628 |
| 1841 | * The Freq Control has an input impedance of approximately | |
| 1845 | * The Freq Control has an input impedance of approximately 9 | |
| 1842 | 1846 | * connected to the Freq Control pin works as a voltage divider. |
| 1843 | * I = (VfreqControl | |
| 1847 | * I = (VfreqControl | |
| 1844 | 1848 | * That gives us a change in voltage on the cap of |
| 1845 | 1849 | * dV = I / sampleRate / C_inFarads |
| 1850 | * | |
| 1851 | * Unfortunately the chip does not behave linearly do to internal interactions, | |
| 1852 | * so I have just worked out the formula (using zunzun.com) of FreqControl and | |
| 1853 | * range to frequency out for a fixed cap value of 0.1uf. Other cap values can just | |
| 1854 | * scale from that. From the freq, we calculate the time of 1/2 cycle using 1/Freq/2. | |
| 1855 | * Then just use that to toggle a waveform. | |
| 1846 | 1856 | */ |
| 1847 | 1857 | |
| 1848 | /* The range to bias and threshold routines were created from testing a real chip. | |
| 1849 | * This data was entered into the function finder routine at www.zunzun.com | |
| 1850 | * to create the following 2 routines | |
| 1851 | */ | |
| 1852 | 1858 | |
| 1853 | double range_to_bias(double range) | |
| 1854 | { | |
| 1855 | /* Quadratic2D_model */ | |
| 1856 | double bias; | |
| 1857 | ||
| 1858 | // coefficients | |
| 1859 | const double a = 2.3107142857142846E+00; | |
| 1860 | const double b = -1.0714285714278806E-03; | |
| 1861 | const double c = -1.7857142857144002E-03; | |
| 1862 | ||
| 1863 | bias = a; | |
| 1864 | bias += b * range; | |
| 1865 | bias += c * pow(range, 2.0); | |
| 1866 | return bias; | |
| 1867 | } | |
| 1868 | ||
| 1869 | double range_to_threshold(double range) | |
| 1870 | { | |
| 1871 | /* Polyfunctional2D_model */ | |
| 1872 | double threshold; | |
| 1873 | ||
| 1874 | // coefficients | |
| 1875 | const double a = -1.6124587587173614E-01; | |
| 1876 | const double b = -1.3501987413150401E-01; | |
| 1877 | const double offset = 2.2550390868489893E+00; | |
| 1878 | ||
| 1879 | threshold = a * range; | |
| 1880 | threshold += b * exp(-1.0 * range); | |
| 1881 | threshold += offset; | |
| 1882 | return threshold; | |
| 1883 | } | |
| 1884 | ||
| 1885 | ||
| 1886 | 1859 | static DISCRETE_STEP(dsd_ls629) |
| 1887 | 1860 | { |
| 1888 | 1861 | struct dsd_ls629_context *context = (struct dsd_ls629_context *)node->context; |
| 1889 | 1862 | |
| 1890 | double i; /* Charging current created by Freq Control */ | |
| 1891 | double dt; /* change in time */ | |
| 1892 | 1863 | double x_time = 0; |
| 1893 | double v_cap; /* Current voltage on capacitor, before dt */ | |
| 1864 | double freq, t1; | |
| 1865 | double t_used = context->t_used; | |
| 1866 | double dt = node->info->sample_time;; | |
| 1867 | double vmod = DSD_LS629__VMOD; | |
| 1868 | double vmod_2, vmod_3, vmod_4; | |
| 1869 | double range = DSD_LS629__VRNG; | |
| 1894 | 1870 | int count_f = 0, count_r = 0; |
| 1895 | 1871 | |
| 1872 | /* coefficients */ | |
| 1873 | const double k1 = 1.9904769024796283E+03; | |
| 1874 | const double k2 = 1.2070059213983407E+03; | |
| 1875 | const double k3 = 1.3266985579561108E+03; | |
| 1876 | const double k4 = -1.5500979825922698E+02; | |
| 1877 | const double k5 = 2.8184536266938172E+00; | |
| 1878 | const double k6 = -2.3503421582744556E+02; | |
| 1879 | const double k7 = -3.3836786704527788E+02; | |
| 1880 | const double k8 = -1.3569136703258670E+02; | |
| 1881 | const double k9 = 2.9914575453819188E+00; | |
| 1882 | const double k10 = 1.6855569086173170E+00; | |
| 1883 | ||
| 1896 | 1884 | if (UNEXPECTED(DSD_LS629__ENABLE == 0)) |
| 1897 | 1885 | return; |
| 1898 | 1886 | |
| 1899 | dt = node->info->sample_time; /* Change in time */ | |
| 1900 | v_cap = context->v_cap; /* Set to voltage before change */ | |
| 1887 | /* scale due to input resistance */ | |
| 1888 | if ((EXPECTED(DSD_LS629__R_FREQ_IN > 0))) | |
| 1889 | vmod *= context->vmod_scale; | |
| 1901 | 1890 | |
| 1891 | /* apply cap if needed */ | |
| 1892 | if (context->has_freq_in_cap) | |
| 1893 | { | |
| 1894 | context->v_cap_freq_in += (vmod - context->v_cap_freq_in) * context->exponent; | |
| 1895 | vmod = context->v_cap_freq_in; | |
| 1896 | } | |
| 1902 | 1897 | |
| 1903 | /* Calculate charging current */ | |
| 1904 | i = DSD_LS629__VMOD * context->k_vmod_to_i; | |
| 1898 | /* Polyfunctional3D_model created by zunzun.com using sum of squared absolute error */ | |
| 1899 | vmod_2 = vmod * vmod; | |
| 1900 | vmod_3 = vmod_2 * vmod; | |
| 1901 | vmod_4 = vmod_3 * vmod; | |
| 1902 | freq = k1; | |
| 1903 | freq += k2 * vmod; | |
| 1904 | freq += k3 * vmod_2; | |
| 1905 | freq += k4 * vmod_3; | |
| 1906 | freq += k5 * vmod_4; | |
| 1907 | freq += k6 * range; | |
| 1908 | freq += k7 * range * vmod; | |
| 1909 | freq += k8 * range * vmod_2; | |
| 1910 | freq += k9 * range * vmod_3; | |
| 1911 | freq += k10 * range * vmod_4; | |
| 1905 | 1912 | |
| 1906 | /* Keep looping until all toggling in this time sample is used up. */ | |
| 1913 | freq *= CAP_U(0.1) / DSD_LS629__C; | |
| 1914 | ||
| 1915 | t1 = 0.5 / freq ; | |
| 1916 | t_used += node->info->sample_time; | |
| 1907 | 1917 | do |
| 1908 | 1918 | { |
| 1909 | /* Always Discharging */ | |
| 1910 | v_cap -= i * dt / DSD_LS629__C; | |
| 1911 | dt = 0; | |
| 1912 | ||
| 1913 | /* has it discharged past lower limit? */ | |
| 1914 | if (UNEXPECTED(v_cap < context->v_threshold)) | |
| 1919 | dt = 0; | |
| 1920 | if (t_used > t1) | |
| 1915 | 1921 | { |
| 1916 | 1922 | /* calculate the overshoot time */ |
| 1917 | dt = DSD_LS629__C * (context->v_threshold - v_cap) / i; | |
| 1918 | v_cap = context->v_peak; | |
| 1923 | t_used -= t1; | |
| 1919 | 1924 | context->flip_flop ^= 1; |
| 1920 | 1925 | if (context->flip_flop) |
| 1921 | 1926 | count_r++; |
| 1922 | 1927 | else |
| 1923 | 1928 | count_f++; |
| 1924 | x_time = dt; | |
| 1929 | /* fix up any frequency increase change errors */ | |
| 1930 | while(t_used > node->info->sample_time) | |
| 1931 | t_used -= node->info->sample_time; | |
| 1932 | x_time = t_used; | |
| 1933 | dt = t_used; | |
| 1925 | 1934 | } |
| 1926 | } | |
| 1935 | } | |
| 1927 | 1936 | |
| 1928 | context-> | |
| 1937 | context->t_used = t_used; | |
| 1929 | 1938 | |
| 1930 | 1939 | /* Convert last switch time to a ratio */ |
| 1931 | 1940 | x_time = x_time / node->info->sample_time; |
| r9427 | r9428 | |
| 1937 | 1946 | break; |
| 1938 | 1947 | case DISC_LS624_OUT_ENERGY: |
| 1939 | 1948 | if (x_time == 0) x_time = 1.0; |
| 1940 | node->output[0] | |
| 1949 | node->output[0] | |
| 1941 | 1950 | break; |
| 1942 | 1951 | case DISC_LS624_OUT_LOGIC: |
| 1943 | 1952 | node->output[0] = context->flip_flop; |
| r9427 | r9428 | |
| 1957 | 1966 | } |
| 1958 | 1967 | } |
| 1959 | 1968 | |
| 1960 | #define LS624_LOSS_FACTOR 0.92 | |
| 1961 | ||
| 1962 | 1969 | static DISCRETE_RESET(dsd_ls629) |
| 1963 | 1970 | { |
| 1964 | 1971 | struct dsd_ls629_context *context = (struct dsd_ls629_context *)node->context; |
| 1965 | 1972 | |
| 1966 | 1973 | context->out_type = (int)DSD_LS629__OUTTYPE; |
| 1967 | 1974 | |
| 1968 | context->v_bias = range_to_bias(DSD_LS629__VRNG); | |
| 1969 | context->v_cap = context->v_bias; | |
| 1970 | context->v_threshold = range_to_threshold(DSD_LS629__VRNG); | |
| 1971 | /* The voltage at the current charge pin after a state change */ | |
| 1972 | context->v_peak = context->v_bias * 2 - context->v_threshold; | |
| 1973 | 1975 | context->flip_flop = 0; |
| 1974 | /* precalulate the voltage to current formula */ | |
| 1975 | context->k_vmod_to_i = 1.0 / 5 * LS624_FREQ_R_IN / (DSD_LS629__R_FREQ_IN + LS624_FREQ_R_IN) / LS624_R_EXT; | |
| 1976 | context->k_vmod_to_i *= LS624_LOSS_FACTOR; | |
| 1976 | context->t_used = 0; | |
| 1977 | context->vmod_scale = RES_K(90) / (DSD_LS629__R_FREQ_IN + RES_K(90)); | |
| 1978 | if (DSD_LS629__C_FREQ_IN > 0) | |
| 1979 | { | |
| 1980 | context->has_freq_in_cap = 1; | |
| 1981 | context->exponent = RC_CHARGE_EXP(RES_2_PARALLEL(DSD_LS629__R_FREQ_IN, RES_K(90)) * DSD_LS629__C_FREQ_IN); | |
| 1982 | context->v_cap_freq_in = 0; | |
| 1983 | } | |
| 1984 | else | |
| 1985 | context->has_freq_in_cap = 0; | |
| 1977 | 1986 | |
| 1987 | ||
| 1978 | 1988 | node->output[0] = 0; |
| 1979 | 1989 | } |
| r9427 | r9428 | |
|---|---|---|
| 4 | 4 | |
| 5 | 5 | Apple Sound Chip (ASC) 344S0063 |
| 6 | 6 | Enhanced Apple Sound Chip (EASC) 343S1063 |
| 7 | ||
| 7 | ||
| 8 | 8 | Emulation by R. Belmont |
| 9 | 9 | |
| 10 | 10 | Registers: |
| r9427 | r9428 | |
| 101 | 101 | // LIVE DEVICE |
| 102 | 102 | //************************************************************************** |
| 103 | 103 | |
| 104 | // does nothing, this timer exists only to make MAME sync itself at our audio rate | |
| 105 | static TIMER_CALLBACK( sync_timer_cb ) | |
| 106 | { | |
| 107 | asc_device *pDevice = (asc_device *)ptr; | |
| 108 | ||
| 109 | stream_update(pDevice->m_stream); | |
| 110 | } | |
| 111 | ||
| 112 | 104 | //------------------------------------------------- |
| 113 | 105 | // asc_device - constructor |
| 114 | 106 | //------------------------------------------------- |
| r9427 | r9428 | |
| 133 | 125 | m_stream = stream_create(this, 0, 2, 22257, this, static_stream_generate); |
| 134 | 126 | |
| 135 | 127 | memset(m_regs, 0, sizeof(m_regs)); |
| 136 | ||
| 137 | m_sync_timer = timer_alloc(this->machine, sync_timer_cb, this); | |
| 138 | 128 | } |
| 139 | 129 | |
| 140 | 130 | |
| r9427 | r9428 | |
| 200 | 190 | m_fifo_a_rdptr &= 0x3ff; |
| 201 | 191 | m_fifo_cap_a--; |
| 202 | 192 | } |
| 203 | ||
| 193 | ||
| 204 | 194 | if (m_fifo_cap_b) |
| 205 | 195 | { |
| 206 | 196 | m_fifo_b_rdptr++; |
| r9427 | r9428 | |
| 208 | 198 | m_fifo_cap_b--; |
| 209 | 199 | } |
| 210 | 200 | |
| 211 | | |
| 201 | | |
| 212 | 202 | { |
| 213 | case ASC_TYPE_SONORA: | |
| 214 | if (m_fifo_cap_a < 0x200) | |
| 215 | { | |
| 216 | m_regs[R_FIFOSTAT-0x800] |= 0x4; // fifo less than half full | |
| 217 | m_regs[R_FIFOSTAT-0x800] |= 0x8; // just pass the damn test | |
| 218 | if (m_irq_cb) | |
| 203 | switch (m_chip_type) | |
| 204 | { | |
| 205 | case ASC_TYPE_SONORA: | |
| 206 | if (m_fifo_cap_a <= 0x200) | |
| 219 | 207 | { |
| 220 | m_irq_cb(this, 1); | |
| 208 | m_regs[R_FIFOSTAT-0x800] |= 0x4; // fifo less than half full | |
| 209 | m_regs[R_FIFOSTAT-0x800] |= 0x8; // just pass the damn test | |
| 210 | if (m_irq_cb) | |
| 211 | { | |
| 212 | m_irq_cb(this, 1); | |
| 213 | } | |
| 221 | 214 | } |
| 222 | } | |
| 223 | break; | |
| 215 | break; | |
| 224 | 216 | |
| 225 | default: | |
| 226 | if (m_fifo_cap_a == 0x1ff) | |
| 227 | { | |
| 228 | m_regs[R_FIFOSTAT-0x800] |= 1; // fifo A half-empty | |
| 229 | if ((m_irq_cb) && (m_fifo_cap_a)) | |
| 217 | default: | |
| 218 | if (m_fifo_cap_a <= 0x200) | |
| 230 | 219 | { |
| 231 | m_irq_cb(this, 1); | |
| 220 | m_regs[R_FIFOSTAT-0x800] |= 1; // fifo A half-empty | |
| 221 | if (m_irq_cb) | |
| 222 | { | |
| 223 | m_irq_cb(this, 1); | |
| 224 | } | |
| 232 | 225 | } |
| 233 | } | |
| 234 | 226 | |
| 235 | // don't update for non-(E)ASC | |
| 236 | if (m_fifo_cap_b == 0x1ff) | |
| 237 | { | |
| 238 | m_regs[R_FIFOSTAT-0x800] |= 4; // fifo B half-empty | |
| 239 | if ((m_irq_cb) && (m_fifo_cap_b)) | |
| 227 | // don't update for non-(E)ASC | |
| 228 | if (m_fifo_cap_b <= 0x200) | |
| 240 | 229 | { |
| 241 | m_irq_cb(this, 1); | |
| 230 | m_regs[R_FIFOSTAT-0x800] |= 4; // fifo B half-empty | |
| 231 | if (m_irq_cb) | |
| 232 | { | |
| 233 | m_irq_cb(this, 1); | |
| 234 | } | |
| 242 | 235 | } |
| 243 | } | |
| 244 | break; | |
| 236 | break; | |
| 237 | } | |
| 245 | 238 | } |
| 246 | 239 | |
| 247 | 240 | outL[i] = smpll * 64; |
| r9427 | r9428 | |
| 256 | 249 | INT8 smpl; |
| 257 | 250 | |
| 258 | 251 | mixL = mixR = 0; |
| 259 | ||
| 252 | ||
| 260 | 253 | // update channel pointers |
| 261 | 254 | for (ch = 0; ch < 4; ch++) |
| 262 | 255 | { |
| r9427 | r9428 | |
| 281 | 274 | } |
| 282 | 275 | break; |
| 283 | 276 | } |
| 284 | ||
| 285 | // printf("rdA %04x rdB %04x wrA %04x wrB %04x (capA %04x B %04x)\n", m_fifo_a_rdptr, m_fifo_b_rdptr, m_fifo_a_wrptr, m_fifo_b_wrptr, m_fifo_cap_a, m_fifo_cap_b); | |
| 286 | 277 | } |
| 287 | 278 | |
| 288 | 279 | //------------------------------------------------- |
| r9427 | r9428 | |
| 293 | 284 | { |
| 294 | 285 | UINT8 rv; |
| 295 | 286 | |
| 296 | // | |
| 287 | // printf("ASC: read at %x\n", offset); | |
| 297 | 288 | |
| 298 | 289 | // not sure what actually happens when the CPU reads the FIFO... |
| 299 | 290 | if (offset < 0x400) |
| r9427 | r9428 | |
| 370 | 361 | // reading this register clears all bits |
| 371 | 362 | m_regs[R_FIFOSTAT-0x800] = 0; |
| 372 | 363 | |
| 373 | // reading this clears interrupts | |
| 364 | // reading this clears interrupts? | |
| 374 | 365 | if (m_irq_cb) |
| 375 | 366 | { |
| 376 | 367 | m_irq_cb(this, 0); |
| r9427 | r9428 | |
| 425 | 416 | |
| 426 | 417 | void asc_device::write(UINT16 offset, UINT8 data) |
| 427 | 418 | { |
| 428 | // | |
| 419 | // printf("ASC: write %02x to %x\n", data, offset); | |
| 429 | 420 | |
| 430 | 421 | if (offset < 0x400) |
| 431 | 422 | { |
| r9427 | r9428 | |
| 434 | 425 | m_fifo_a[m_fifo_a_wrptr++] = data; |
| 435 | 426 | m_fifo_cap_a++; |
| 436 | 427 | |
| 437 | if (m_fifo_cap_a == 0x | |
| 428 | if (m_fifo_cap_a == 0x800) | |
| 438 | 429 | { |
| 439 | 430 | m_regs[R_FIFOSTAT-0x800] |= 2; // fifo A full |
| 440 | 431 | } |
| r9427 | r9428 | |
| 453 | 444 | m_fifo_b[m_fifo_b_wrptr++] = data; |
| 454 | 445 | m_fifo_cap_b++; |
| 455 | 446 | |
| 456 | if (m_fifo_cap_b == 0x | |
| 447 | if (m_fifo_cap_b == 0x800) | |
| 457 | 448 | { |
| 458 | 449 | m_regs[R_FIFOSTAT-0x800] |= 8; // fifo B full |
| 459 | 450 | } |
| 460 | 451 | |
| 461 | 452 | m_fifo_b_wrptr &= 0x3ff; |
| 462 | } | |
| 453 | } | |
| 463 | 454 | else |
| 464 | 455 | { |
| 465 | 456 | m_fifo_b[offset-0x400] = data; |
| r9427 | r9428 | |
| 467 | 458 | } |
| 468 | 459 | else |
| 469 | 460 | { |
| 470 | // | |
| 461 | // printf("ASC: %02x to %x (was %x)\n", data, offset, m_regs[offset-0x800]); | |
| 471 | 462 | |
| 472 | 463 | stream_update(m_stream); |
| 473 | 464 | switch (offset) |
| r9427 | r9428 | |
| 480 | 471 | m_fifo_a_rdptr = m_fifo_b_rdptr = 0; |
| 481 | 472 | m_fifo_a_wrptr = m_fifo_b_wrptr = 0; |
| 482 | 473 | m_fifo_cap_a = m_fifo_cap_b = 0; |
| 483 | ||
| 484 | if (data != 0) | |
| 485 | { | |
| 486 | timer_adjust_periodic(m_sync_timer, attotime_zero, 0, ATTOTIME_IN_HZ(22257/4)); | |
| 487 | } | |
| 488 | else | |
| 489 | { | |
| 490 | timer_adjust_oneshot(m_sync_timer, attotime_never, 0); | |
| 491 | } | |
| 492 | 474 | } |
| 493 | 475 | break; |
| 494 | 476 | |
| r9427 | r9428 | |
| 502 | 484 | break; |
| 503 | 485 | |
| 504 | 486 | case R_WTCONTROL: |
| 505 | // | |
| 487 | // printf("One-shot wavetable %02x\n", data); | |
| 506 | 488 | break; |
| 507 | 489 | |
| 508 | case 0x811: | |
| 490 | case 0x811: | |
| 509 | 491 | m_phase[0] &= 0x00ffff; |
| 510 | 492 | m_phase[0] |= data<<16; |
| 511 | 493 | break; |
| r9427 | r9428 | |
| 520 | 502 | m_phase[0] |= data; |
| 521 | 503 | break; |
| 522 | 504 | |
| 523 | case 0x815: | |
| 505 | case 0x815: | |
| 524 | 506 | m_incr[0] &= 0x00ffff; |
| 525 | 507 | m_incr[0] |= data<<16; |
| 526 | 508 | break; |
| r9427 | r9428 | |
| 535 | 517 | m_incr[0] |= data; |
| 536 | 518 | break; |
| 537 | 519 | |
| 538 | case 0x819: | |
| 520 | case 0x819: | |
| 539 | 521 | m_phase[1] &= 0x00ffff; |
| 540 | 522 | m_phase[1] |= data<<16; |
| 541 | 523 | break; |
| r9427 | r9428 | |
| 550 | 532 | m_phase[1] |= data; |
| 551 | 533 | break; |
| 552 | 534 | |
| 553 | case 0x81d: | |
| 535 | case 0x81d: | |
| 554 | 536 | m_incr[1] &= 0x00ffff; |
| 555 | 537 | m_incr[1] |= data<<16; |
| 556 | 538 | break; |
| r9427 | r9428 | |
| 565 | 547 | m_incr[1] |= data; |
| 566 | 548 | break; |
| 567 | 549 | |
| 568 | case 0x821: | |
| 550 | case 0x821: | |
| 569 | 551 | m_phase[2] &= 0x00ffff; |
| 570 | 552 | m_phase[2] |= data<<16; |
| 571 | 553 | break; |
| r9427 | r9428 | |
| 580 | 562 | m_phase[2] |= data; |
| 581 | 563 | break; |
| 582 | 564 | |
| 583 | case 0x825: | |
| 565 | case 0x825: | |
| 584 | 566 | m_incr[2] &= 0x00ffff; |
| 585 | 567 | m_incr[2] |= data<<16; |
| 586 | 568 | break; |
| r9427 | r9428 | |
| 595 | 577 | m_incr[2] |= data; |
| 596 | 578 | break; |
| 597 | 579 | |
| 598 | case 0x829: | |
| 580 | case 0x829: | |
| 599 | 581 | m_phase[3] &= 0x00ffff; |
| 600 | 582 | m_phase[3] |= data<<16; |
| 601 | 583 | break; |
| r9427 | r9428 | |
| 610 | 592 | m_phase[3] |= data; |
| 611 | 593 | break; |
| 612 | 594 | |
| 613 | case 0x82d: | |
| 595 | case 0x82d: | |
| 614 | 596 | m_incr[3] &= 0x00ffff; |
| 615 | 597 | m_incr[3] |= data<<16; |
| 616 | 598 | break; |
| r9427 | r9428 | |
|---|---|---|
| 99 | 99 | UINT8 read(UINT16 offset); |
| 100 | 100 | void write(UINT16 offset, UINT8 data); |
| 101 | 101 | |
| 102 | sound_stream *m_stream; | |
| 103 | ||
| 104 | 102 | protected: |
| 105 | 103 | enum |
| 106 | 104 | { |
| r9427 | r9428 | |
| 135 | 133 | |
| 136 | 134 | UINT8 m_chip_type; |
| 137 | 135 | void (*m_irq_cb)(running_device *device, int state); |
| 136 | sound_stream *m_stream; | |
| 138 | 137 | |
| 139 | 138 | UINT8 m_fifo_a[0x400]; |
| 140 | 139 | UINT8 m_fifo_b[0x400]; |
| r9427 | r9428 | |
| 146 | 145 | int m_fifo_a_rdptr, m_fifo_b_rdptr; |
| 147 | 146 | int m_fifo_a_wrptr, m_fifo_b_wrptr; |
| 148 | 147 | int m_fifo_cap_a, m_fifo_cap_b; |
| 149 | ||
| 150 | emu_timer *m_sync_timer; | |
| 151 | 148 | }; |
| 152 | 149 | |
| 153 | 150 |
| r9427 | r9428 | |
|---|---|---|
| 1232 | 1232 | { |
| 1233 | 1233 | float maxxscale = 1.0f, maxyscale = 1.0f; |
| 1234 | 1234 | int screens_considered = 0; |
| 1235 | ||
| 1235 | ||
| 1236 | 1236 | // early exit in case we are called between device teardown and render teardown |
| 1237 | 1237 | if (m_manager.machine().m_devicelist.count() == 0) |
| 1238 | 1238 | { |
| r9427 | r9428 | |
| 1584 | 1584 | file_error filerr = mame_fopen(SEARCHPATH_ARTWORK, fname, OPEN_FLAG_READ, &layoutfile); |
| 1585 | 1585 | if (filerr != FILERR_NONE) |
| 1586 | 1586 | return false; |
| 1587 | ||
| 1587 | ||
| 1588 | 1588 | // read the file |
| 1589 | 1589 | rootnode = xml_file_read(mame_core_file(layoutfile), NULL); |
| 1590 | 1590 | mame_fclose(layoutfile); |
| 1591 | 1591 | } |
| 1592 | ||
| 1592 | ||
| 1593 | 1593 | // if we didn't get a properly-formatted XML file, record a warning and exit |
| 1594 | 1594 | if (rootnode == NULL) |
| 1595 | 1595 | { |
| r9427 | r9428 | |
| 1599 | 1599 | mame_printf_warning("Improperly formatted XML string, ignorning"); |
| 1600 | 1600 | return false; |
| 1601 | 1601 | } |
| 1602 | ||
| 1602 | ||
| 1603 | 1603 | // parse and catch any errors |
| 1604 | 1604 | bool result = true; |
| 1605 | 1605 | try |
| r9427 | r9428 | |
|---|---|---|
| 239 | 239 | { |
| 240 | 240 | friend class simple_list<item>; |
| 241 | 241 | friend class render_screen_list; |
| 242 | ||
| 242 | ||
| 243 | 243 | public: |
| 244 | 244 | // construction/destruction |
| 245 | 245 | item(screen_device &screen) |
| r9427 | r9428 | |
| 262 | 262 | // operations |
| 263 | 263 | void add(screen_device &screen) { m_list.append(*pool_alloc(m_list.pool(), item(screen))); } |
| 264 | 264 | void reset() { m_list.reset(); } |
| 265 | ||
| 265 | ||
| 266 | 266 | // query |
| 267 | 267 | bool contains(screen_device &screen) const |
| 268 | 268 | { |
| r0 | r9428 | |
|---|---|---|
| 1 | /*************************************************************************** | |
| 2 | ||
| 3 | emudummy.c | |
| 4 | ||
| 5 | Dummy driver file that references CPU devices which are in turn | |
| 6 | referenced by devices in libemu.a. | |
| 7 | ||
| 8 | The reason we need this is due to link ordering issues with gcc | |
| 9 | if the actual drivers being linked don't reference these CPU | |
| 10 | devices. Since we link libcpu first, if libemu needs stuff from | |
| 11 | libcpu that wasn't previously referenced, it will fail the link. | |
| 12 | ||
| 13 | **************************************************************************** | |
| 14 | ||
| 15 | Copyright Aaron Giles | |
| 16 | All rights reserved. | |
| 17 | ||
| 18 | Redistribution and use in source and binary forms, with or without | |
| 19 | modification, are permitted provided that the following conditions are | |
| 20 | met: | |
| 21 | ||
| 22 | * Redistributions of source code must retain the above copyright | |
| 23 | notice, this list of conditions and the following disclaimer. | |
| 24 | * Redistributions in binary form must reproduce the above copyright | |
| 25 | notice, this list of conditions and the following disclaimer in | |
| 26 | the documentation and/or other materials provided with the | |
| 27 | distribution. | |
| 28 | * Neither the name 'MAME' nor the names of its contributors may be | |
| 29 | used to endorse or promote products derived from this software | |
| 30 | without specific prior written permission. | |
| 31 | ||
| 32 | THIS SOFTWARE IS PROVIDED BY AARON GILES ''AS IS'' AND ANY EXPRESS OR | |
| 33 | IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |
| 34 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |
| 35 | DISCLAIMED. IN NO EVENT SHALL AARON GILES BE LIABLE FOR ANY DIRECT, | |
| 36 | INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |
| 37 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | |
| 38 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
| 39 | HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | |
| 40 | STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | |
| 41 | IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | |
| 42 | POSSIBILITY OF SUCH DAMAGE. | |
| 43 | ||
| 44 | ***************************************************************************/ | |
| 45 | ||
| 46 | #include "emu.h" | |
| 47 | #include "cpu/mcs48/mcs48.h" | |
| 48 | #include "cpu/z80/z80.h" | |
| 49 | ||
| 50 | ||
| 51 | MACHINE_CONFIG_START( __dummy, driver_device ) | |
| 52 | MDRV_CPU_ADD("dummy1", I8049, 1000000) | |
| 53 | MDRV_CPU_ADD("dummy2", I8748, 1000000) | |
| 54 | MDRV_CPU_ADD("dummy3", Z80, 1000000) | |
| 55 | MACHINE_CONFIG_END | |
| 56 | ||
| 57 | ||
| 58 | ROM_START( __dummy ) | |
| 59 | ROM_REGION( 0x1000, "dummy1", ROMREGION_ERASEFF ) | |
| 60 | ROM_REGION( 0x1000, "dummy2", ROMREGION_ERASEFF ) | |
| 61 | ROM_REGION( 0x1000, "dummy3", ROMREGION_ERASEFF ) | |
| 62 | ROM_END | |
| 63 | ||
| 64 | ||
| 65 | GAME( 1900, __dummy, 0, __dummy, 0, 0, ROT0, "(none)", "Dummy", GAME_NO_SOUND ) | |
| 66 | ||
| 67 |
| r9427 | r9428 | |
|---|---|---|
| 374 | 374 | m_count(0) { } |
| 375 | 375 | |
| 376 | 376 | virtual ~simple_list() { reset(); } |
| 377 | ||
| 377 | ||
| 378 | 378 | resource_pool &pool() const { return m_pool; } |
| 379 | 379 | |
| 380 | 380 | T *first() const { return m_head; } |
| r9427 | r9428 | |
|---|---|---|
| 129 | 129 | CPUS += I8008 |
| 130 | 130 | CPUS += SCMP |
| 131 | 131 | #CPUS += MN10200 |
| 132 | CPUS += COSMAC | |
| 132 | 133 | CPUS += UNSP |
| 133 | CPUS += COSMAC | |
| 134 | 134 | |
| 135 | 135 | #------------------------------------------------- |
| 136 | 136 | # specify available sound cores; some of these are |
| 137 | 137 | # only for MAME and so aren't included |
| 138 | 138 | #------------------------------------------------- |
| 139 | 139 | |
| 140 | #SOUNDS += CUSTOM | |
| 141 | 140 | #SOUNDS += SAMPLES |
| 142 | 141 | SOUNDS += DAC |
| 143 | 142 | SOUNDS += DMADAC |
| r9427 | r9428 | |
| 234 | 233 | SOUNDS += MOS656X |
| 235 | 234 | #SOUNDS += S2636 |
| 236 | 235 | SOUNDS += ASC |
| 236 | #SOUNDS += CUSTOM | |
| 237 | 237 | SOUNDS += SOCRATES |
| 238 | 238 | SOUNDS += TMC0285 |
| 239 | 239 | SOUNDS += TMS5200 |
| r9427 | r9428 | |
|---|---|---|
| 45 | 45 | |
| 46 | 46 | DRVLIBS = \ |
| 47 | 47 | $(LDPOBJ)/ldpdriv.o \ |
| 48 | $(EMUDRIVERS)/emudummy.o \ | |
| 48 | 49 | $(LDPOBJ)/ldplayer.o \ |
| 49 | 50 | |
| 50 | 51 |
| r9427 | r9428 | |
|---|---|---|
| 100 | 100 | |
| 101 | 101 | Source Changes: |
| 102 | 102 | ---------------- |
| 103 | - The core is based on MAME 0.1 | |
| 103 | - The core is based on MAME 0.1 | |
| 104 | 104 | update to this core. [MAME team] |
| 105 | 105 | |
| 106 | 106 | - Fixed Z80-SIO and DMA to allow trs80m2 to boot CP/M and TRSDOS. [Curt Coder] |
| r9427 | r9428 | |
|---|---|---|
| 1 | 0.1 | |
| 1 | 0.140 | |
| 2 | 2 | ----- |
| 3 | 3 | |
| 4 | 4 | |
| 5 | 5 | MAMETesters Bugs Fixed |
| 6 | 6 | ---------------------- |
| 7 | - 03898: [Crash/Freeze] Atomiswave-based games in naomi.c: Game gets | |
| 8 | stuck in boot process. (Aaron Giles) | |
| 9 | - 03957: [Documentation] samsh5sp & clones: according to title, year | |
| 10 | is 2004 not 2003 (moa) | |
| 11 | - 03318: [Crash/Freeze] -burnin causes crash in vector games (Atari Ace) | |
| 12 | - 03777: [Multisession] a51site4: Hang after loading via internal UI | |
| 13 | (multisession) (Atari Ace) | |
| 7 | - 04091: [Misc.] simpbowl: NVRAM is not created correctly. | |
| 8 | (Aaron Giles) | |
| 9 | - 03770: [Interface] Setting 'snapname %g' does not allow snap to be | |
| 10 | saved with F12. (Aaron Giles) | |
| 11 | - 03835: [Compiling] Visual Studio compiler warning in | |
| 12 | src\mame\video\n64.c | |
| 13 | - 03937: [Misc.] Using CTRL-C to end MAME no longer works reliably | |
| 14 | (Aaron Giles) | |
| 15 | - 03915: [Interface] All sets using -autosave: "auto.sta" can | |
| 16 | mistakenly be erased (Aaron Giles) | |
| 17 | - 03930: [Compiling] LDPLAYER fails to link (Aaron Giles) | |
| 18 | - 04065: [Compiling] Default 'tiny' does not build (Aaron Giles) | |
| 19 | - 03074: [Sound] dkongjr and clones: Discrete audio output is lower | |
| 20 | pitched than normal (Derrick Renaud) | |
| 21 | - 04085: [Sound] All sets in seibuspi.c: sound issue | |
| 22 | - 04081: [Crash/Freeze] Games/drivers with no screen: When you exit | |
| 23 | MAME, you do not get control back (Aaron Giles) | |
| 24 | - 04059: [Graphics] qix, zookeep and clones: Player's character | |
| 25 | disappears during gameplay. (Aaron Giles) | |
| 26 | - 04080: [Crash/Freeze] [debug] Massive memory leaks + crash upon | |
| 27 | exit in debug build (Aaron Giles) | |
| 28 | - 03800: [Debugger] Many sets in snk.c: Viewing c000-c700 in debugger | |
| 29 | for "SUB" Z-80 causes memory corruption (MooglyGuy) | |
| 30 | - 04083: [Graphics] All sets in balsente.c: Black screen corruption | |
| 31 | (missing graphics) (MooglyGuy) | |
| 32 | - 04075: [Crash/Freeze] All sets in cps3.c: Black screen/Hang | |
| 33 | (Aaron Giles) | |
| 34 | - 04077: [Misc.] Crash when -effect is used (Aaron Giles) | |
| 35 | - 04078: [Crash/Freeze] mtrap + clones: Crash/Assert after OK | |
| 36 | (Aaron Giles) | |
| 37 | - 04076: [Misc.] Artwork cropping not working correctly (Aaron Giles) | |
| 14 | 38 | |
| 15 | 39 | |
| 16 | 40 | |
| 17 | 41 | Source Changes |
| 18 | 42 | -------------- |
| 19 | arm.c: Added big endian mode support to the LDRB and STRB | |
| 20 | instructions. [Wilbert Pol] | |
| 43 | - Considerably improved UART communications in the CD-i 68070 | |
| 44 | implementation, increasing Quizard stability as a result. [Harmony] | |
| 21 | 45 | |
| 22 | CPS-1 update [Team CPS-1]: | |
| 23 | * Added missing PALs as reference to most of remaining sets | |
| 24 | * Dumped and added TK24B1.1A to dynwar [Corrado Tomaselli] | |
| 25 | * Fixed LW-13.10D rom loading in forgottn to match real pcb | |
| 26 | * Identified, verified and documented a ton of pcbs, adding/fixing | |
| 27 | missing/wrong infos as ROMs labels and positions, B-Board, C-Board | |
| 28 | and CPSB IDs, PALs [Stefan Lindberg, Dlfrsilver, MKL] | |
| 29 | * Reordered all sets per release date in cps1.c and video\cps1.c | |
| 30 | * Updated games table in video\cps1.c and added some notes on PALs | |
| 31 | table | |
| 32 | * Minor cleanups | |
| 46 | Fixed use of the sign bits on the SegaCD Roz parameters, improves | |
| 47 | the SegaCD intro rotations etc. which now appear correct. Clamp Roz | |
| 48 | stuff to 24-bit, seems to fix the remaining issues with the Sega | |
| 49 | logos. [David Haywood] | |
| 33 | 50 | |
| 34 | djboy.c: Hooked up Beast MCU and removed simulation code. | |
| 35 | [Phil Bennett] | |
| 51 | Moved -effect implementation out of OSD code and into core since the | |
| 52 | implementations were identical across Windows/SDL and implemented in | |
| 53 | the core itself. [Aaron Giles] | |
| 36 | 54 | |
| 37 | arm.c: Fixed word reading from non-aligned address in big endian mode. | |
| 38 | [Wilbert Pol] | |
| 55 | More Clang fixes (verified OK with GCC) [Balrog] | |
| 39 | 56 | |
| 40 | skyfox.c: Corrected clocks and Vsync for the Sky Fox & Exerizer sets | |
| 41 | based on actual OSCs and measurements taken from a real PCB | |
| 42 | [Corrado Tomaselli] | |
| 57 | Correctly free textures when screen size dynamically changes. Fixes | |
| 58 | texture assert when exiting on a number of games. [Aaron Giles] | |
| 43 | 59 | |
| 44 | arm.c: Added a big endian version of the arm2/3/6 cpu core and cleaned | |
| 45 | up the little/big endian handling. [Wilbert Pol] | |
| 60 | Attempt to provide a correct M50458 char rom, used by the Nintendo | |
| 61 | Super System [Pat Dardenko, Angelo Salese] | |
| 46 | 62 | |
| 47 | djboy.c: Added DIP switch locations and corrected the vsync to 57.5Hz | |
| 48 | as per the readme info listed at the top of the driver. [Brian Troha] | |
| 63 | Re-worked Quizard MCU communications handling to be more easily | |
| 64 | expanded. [Harmony] | |
| 49 | 65 | |
| 50 | mediagx.c: Converted to use driver_data [Atari Ace] | |
| 66 | Convert rendlay objects into C++, reduce the number of unused textures | |
| 67 | allocated. [Aaron Giles] | |
| 51 | 68 | |
| 52 | Fix | |
| 69 | Fix | |
| 53 | 70 | |
| 54 | Corrected Ameri Darts audio playback rate. This exposed some cycle | |
| 55 | timing errors in the TMS32010 CPU core which are also fixed. [Quench] | |
| 71 | Added new method reset_origin() to screen devices to allow | |
| 72 | manual synchronization of VBLANK start against an external timing | |
| 73 | source. Updated the MC6845 device to call reset_origin() on its screen | |
| 74 | at the start of each frame if a screen is present. [Aaron Giles] | |
| 56 | 75 | |
| 57 | Added support for Southern Systems Joker Poker (1982), from Southern | |
| 58 | Systems & Assembly, Ltd. Figured out the memory map. Also added | |
| 59 | technical notes about the hardware. [Roberto Fresca] | |
| 76 | Converted the RCA CDP1802 CPU into a C++ device. Refactored cidelsa.c | |
| 77 | to use the new RCA COSMAC CPU. [Curt Coder] | |
| 60 | 78 | |
| 61 | Corrected the address for the freezing of the movies for the | |
| 62 | Terminator 2 LA4 set [stephh] | |
| 79 | Added new devcb type DEVCB_TYPE_DRIVER, which implies the | |
| 80 | driver_device. [Aaron Giles] | |
| 63 | 81 | |
| 64 | emu/info.c: Search all parents of a clone for merged ROMs [Atari Ace] | |
| 82 | Added new macros DEVCB_DRIVER_LINE_MEMBER and DEVCB_DRIVER_MEMBER to | |
| 83 | specify member functions of the driver device in callbacks. | |
| 84 | [Aaron Giles] | |
| 65 | 85 | |
| 66 | Fixed HD63701 SLP opcode [Sandro Ronco] | |
| 86 | Reworked NMK16 irqs by not using cpu_getiloops() function | |
| 87 | [Angelo Salese] | |
| 67 | 88 | |
| 68 | ||
| 89 | Fix | |
| 69 | 90 | |
| 70 | neodrv.c updates: [Johnboy] | |
| 71 | * Identified several more sets as MVS / AES Version and tagged them | |
| 72 | properly | |
| 73 | * Updated game PCB info | |
| 74 | * bakatono: Removed BAD_DUMP from m1 - is correct, corrected game | |
| 75 | name | |
| 76 | * mahretsu: Added correct s1, corrected game name | |
| 77 | * strhoop: Added correct v2 | |
| 78 | * sdodgeb: Replaced 16mbit v1/v2 with 32mbit v1 as found on two | |
| 79 | original cards | |
| 80 | * Added Japan J3 bios | |
| 91 | Refactored the CDP1869 chip into a C++ device. [Curt Coder] | |
| 81 | 92 | |
| 82 | neogeo.c changes: | |
| 83 | * Documented AES mode and 1-slot (MVS/AES) settings [Barry Rodewald] | |
| 84 | * Documented MVS 4-slot and 6-slot settings [Johnboy] | |
| 85 | * Changed 6-slot setting (old default) to 1-slot [Johnboy] | |
| 93 | Added explicit control handler for the console. Ctrl+C/Ctrl+Break now | |
| 94 | explicitly terminate the process forcefully, rather than unwinding | |
| 95 | through the system in an unexpected state. Other console events (exit, | |
| 96 | shutdown, logoff) request a graceful exit. [Aaron Giles] | |
| 86 | 97 | |
| 87 | Add notification of orientation of all monitors at startup via the | |
| 88 | output system. [Laszlo Schulteisz] | |
| 98 | Reworked 1942 interrupts by not using cpu_getiloops() function | |
| 99 | [Angelo Salese] | |
| 89 | 100 | |
| 101 | Removed deprecat.h usage from 1943 driver [Angelo Salese] | |
| 90 | 102 | |
| 103 | Removed deprecat.h usage from 40love driver [Angelo Salese] | |
| 91 | 104 | |
| 105 | Removed deprecat.h usage and did some minor clean-ups to the 4enraya | |
| 106 | driver [Angelo Salese] | |
| 107 | ||
| 108 | Rewrote Alien Command irqs by not using cpu_getiloops() function | |
| 109 | [Angelo Salese] | |
| 110 | ||
| 111 | ||
| 112 | ||
| 92 | 113 | New games added or promoted from NOT_WORKING status |
| 93 | 114 | --------------------------------------------------- |
| 94 | ||
| 115 | D | |
| 95 | 116 | |
| 96 | 117 | |
| 97 | ||
| 98 | 118 | New clones added |
| 99 | 119 | ---------------- |
| 100 | Mystic Warriors (ver AAA) [J. Wilke, Smitdogg, The Dumping Union] | |
| 101 | AmeriDarts (set 3) [Brian Troha, The Dumping Union] | |
| 102 | Captain Commando (Japan 910928) | |
| 103 | [john666, Dr. Spankenstein, Smitdogg, The Dumping Union] | |
| 104 | Forgotten Worlds (USA, 88621B B-Board) | |
| 105 | [Corrado Tomaselli, The Dumping Union] | |
| 106 | Galaxy Force II (Japan, Newer) [Team Japump, The Dumping Union] | |
| 107 | Quiz King of Fighters (Korean release) | |
| 108 | Real Bout Fatal Fury Special / Real Bout Garou Densetsu Special | |
| 109 | (Korean release) | |
| 110 | Quiz Daisousa Sen - The Last Count Down (Korean release) | |
| 120 | Streaking (set 2) [Roberto Fresca] | |
| 111 | 121 | |
| 112 | 122 | |
| 113 | ||
| 114 | 123 | New games marked as GAME_NOT_WORKING |
| 115 | 124 | ------------------------------------ |
| 116 | ||
| 125 | Magical Touch | |
| 117 | 126 | |
| 118 | 127 | |
| 119 | 128 | |
| 120 | 0.13 | |
| 129 | 0.139u4 | |
| 121 | 130 | ------- |
| 122 | 131 | |
| 123 | 132 | |
| 124 | 133 | MAMETesters Bugs Fixed |
| 125 | 134 | ---------------------- |
| 126 | - 02813: [Sound] amerdart, amerdart2: No sound due to missing ROM | |
| 127 | (Quench) | |
| 128 | - 03606: [Multisession] altbeast, aliensyn3: Graphic corruption on | |
| 129 | multiple segas16b.c launches in single session. (Atari Ace) | |
| 130 | - 03536: [Misc.] PowerPC core: Overlapping data buffers (Atari Ace) | |
| 131 | - 03943: [Graphics] tknight, wildfang: The screen shaking effect is | |
| 132 | missing in MAME. (hap) | |
| 133 | - 00790: [Documentation] armwrest: DIP switch inspection. (hap) | |
| 134 | - 03938: [Crash/Freeze] torus: Crash after completing Level 1 | |
| 135 | (Fabio Priuli) | |
| 136 | - 03928: [Crash/Freeze] Many sets: Out of memory crash using -cheat | |
| 137 | (Aaron Giles) | |
| 135 | - 04060: [Crash/Freeze] All sets in taitogn.c: NVRAM written | |
| 136 | incorrectly - games never start. (Aaron Giles) | |
| 137 | - 04068: [DIP/Input] viofight: Missing Player 2 button 3 (Tafoid) | |
| 138 | - 04063: [Gameplay] All sets in solomon.c: All characters in the | |
| 139 | game are missing (player and enemies) (hap) | |
| 138 | 140 | |
| 139 | 141 | |
| 140 | 142 | |
| 141 | 143 | Source Changes |
| 142 | 144 | -------------- |
| 143 | Fix SH-2 interpreter [Atari Ace] | |
| 145 | Converted amiga drivers to use driver_devices. Merged common code | |
| 146 | between legacy Amiga and AGA video systems. [Atari Ace] | |
| 144 | 147 | |
| 145 | ||
| 148 | De | |
| 146 | 149 | |
| 147 | turned i2cmem into a c++ device & ditched the unused legacy device. | |
| 148 | [smf] | |
| 150 | cdda - Added a per-channel volume setting function [Barry Rodewald] | |
| 149 | 151 | |
| 150 | Add | |
| 152 | M68k: Add | |
| 151 | 153 | |
| 152 | Renamed feof to image_feof (in device_image_interface) in order to | |
| 153 | compile on FreeBSD [El Barto] | |
| 154 | Converted x2212 to a modern device. Changed x2212 device to return | |
| 155 | unmapped bits for the upper 4 bits. Added e2prom address space to | |
| 156 | x2212 so that the latched contents can be viewed. Updated starwars | |
| 157 | and firefox. Hooked up x2212 in foodf. [Aaron Giles] | |
| 154 | 158 | |
| 155 | Removed devtag_get_device(); use machine->device() instead. | |
| 156 | [Aaron Giles] | |
| 159 | Changed ccastles and cloud9 to use the x2212 instead of the hacked-up | |
| 160 | fake version they had. [Aaron Giles] | |
| 157 | 161 | |
| 158 | Removed the global clock accessors and cpu_* aliases: [Aaron Giles] | |
| 162 | Enable vertical scroll bars in debugger comboboxes, and resize them to | |
| 163 | show the full text. [Aaron Giles] | |
| 159 | 164 | |
| 160 | cpu_get_clock == device->unscaled_clock | |
| 161 | cpu_set_clock == device->set_unscaled_clock | |
| 162 | cpu_get_clockscale == device->get_clock_scale | |
| 163 | cpu_set_clockscale == device->set_clock_scale | |
| 165 | Changed memory width stubs to fill unpopulated regions with the | |
| 166 | appropriate portion of the unmap value. [Aaron Giles] | |
| 164 | 167 | |
| 165 | Fix bad loop condition that shows up with -cheat enabled. [Aaron Giles] | |
| 168 | Added ER2055 device. Changed liberator over to using it. Other Atari | |
| 169 | games to follow. [Aaron Giles] | |
| 166 | 170 | |
| 167 | Adding ability to support other types of software lists, so floppies, | |
| 168 | cassettes, cd-roms are now possible to be used [Miodrag Milanovic] | |
| 171 | Modernized liberator driver, added save state support. Moved | |
| 172 | generalized EAROM handling to atarigen. [Aaron Giles] | |
| 169 | 173 | |
| 170 | MAMEdev kant spel (Ubuntu/Canonical cares about this) [wallyweek] | |
| 174 | Added new (modern) address map macros for referencing member functions | |
| 175 | in base classes: AM_READ_BASE(_class, _member), AM_WRITE_BASE, | |
| 176 | AM_READWRITE_BASE, etc. [Aaron Giles] | |
| 171 | 177 | |
| 172 | Add *IX man pages for MAME and utils [wallyweek] | |
| 178 | Debugger (SDL) : Window locations in the SDL debugger are now saved | |
| 179 | and loaded at exit and startup. [Andrew Gardner] | |
| 173 | 180 | |
| 174 | Clean up some files without a newline at the end for GCC [wallyweek] | |
| 181 | Modified Z80-DMA reset command (C3) to not randomly clear registers. | |
| 182 | [Curt Coder] | |
| 175 | 183 | |
| 176 | Added second button (Hyper Jump) to be used after cued via speech to | |
| 177 | allow jumping to other phases without finishing the current mission. | |
| 178 | Volume adjusted to better levels (AY was way too low in comparison to | |
| 179 | speech) [gravilidavide, Tafoid] | |
| 184 | raiden2: checkpoint current state [Olivier Galibert] | |
| 180 | 185 | |
| 181 | snowbros.c: Add Dipswitch locations to Puzzle King, Hyper Pacman, | |
| 182 | Cookie & Bibi 2, Cookie & Bibi 3, More More. Filled in dips with | |
| 183 | Dipswitch locations for Puzzle Break. [Brian Troha] | |
| 186 | Removed IRQ hack in Niyanpai HW [Angelo Salese] | |
| 184 | 187 | |
| 185 | Load (but don't yet use) the decapped MCUs for several sets | |
| 186 | [Dr. Decapitator] | |
| 187 | * kyros | |
| 188 | * kyros (alt, original MCU dump?) | |
| 189 | * arkanoid (I think the supported MCUs are bootlegs..) | |
| 190 | * blackt96 | |
| 191 | * amerdarts | |
| 192 | * cshooter | |
| 193 | * josvolly (there are other chips still need decapping) | |
| 194 | * invasnab (i'm not convinced this one is good) | |
| 195 | * pasha2 | |
| 196 | * empcity | |
| 197 | * topshoot | |
| 198 | * topbladv (no CPU core for this yet) | |
| 199 | * officeye (no CPU core for this yet) | |
| 200 | * revx | |
| 188 | Ported over CD-i cleanup from MESS. [Harmony] | |
| 201 | 189 | |
| 202 | Added the proms to Magical Odds [Smitdogg, The Dumping Union] | |
| 190 | Put the SH2 DMA on a timer. This is needed because Knuckles Chaotix | |
| 191 | on the 32X can't be done with 'Instant DMA' due the SH2 DMA is used to | |
| 192 | read from a FIFO port which is being filled by the 68k during the | |
| 193 | transfer. [David Haywood] | |
| 203 | 194 | |
| 204 | ||
| 195 | Fix | |
| 205 | 196 | |
| 206 | arkanoid.c: Added or corrected the PCB location for the genuine | |
| 207 | Arkanoid rom sets and documented the MCU Taito ID number [Brian Troha] | |
| 197 | Added sprite buffering to Mirage Youjuu Mahjongden, confirmed by a | |
| 198 | real PCB video [Angelo Salese] | |
| 208 | 199 | |
| 209 | Replaced the old MCU dump with the decapped version for Kick Start | |
| 210 | Wheelie King [Dr. Decapitator] | |
| 200 | 680x0: '030 MMU now emulates translation cache; fixed misinterpreted | |
| 201 | MMU opcodes [R. Belmont] | |
| 211 | 202 | |
| 212 | Replaced the old MCU dump with the decapped version for Pipeline | |
| 213 | [Dr. Decapitator] | |
| 203 | Megadrive: changed way the z80 window into 68k space works so that it | |
| 204 | automatically can handle things like the 32x. [David Haywood] | |
| 214 | 205 | |
| 215 | [cb2001] new opcodes [robiza] | |
| 206 | Improvements to Piccolo Poker 100. [Roberto Fresca] | |
| 207 | * Added a workaround to get the game booting. | |
| 208 | * Created inputs from the scratch. | |
| 209 | * Promoted to 'working'. | |
| 210 | * Added technical and game notes. | |
| 216 | 211 | |
| 217 | Fixed | |
| 212 | Fixed F | |
| 218 | 213 | |
| 219 | cb2001: hooked up reels [David Haywood] | |
| 214 | Implemented support for SH-2 cycle steal mode, used by Fever Soccer | |
| 215 | [David Haywood] | |
| 220 | 216 | |
| 221 | Rewrite of 'Wheels & Fire' driver [Tomasz Slanina] | |
| 222 | * new rendering code | |
| 223 | * preliminary zooming (based on lookup table) | |
| 224 | * preliminary communication between main and sound cpu | |
| 225 | * scanline interrupts and scroll | |
| 217 | Fixed a SH-2 with TSTM opcode [R.Belmont] | |
| 226 | 218 | |
| 227 | segas16b.c: Removed 2 obsolete "USER2 Work space" and changed | |
| 228 | remaining USER2 to MCU to maintain consistence throughout the driver. | |
| 229 | [Brian Troha] | |
| 219 | Neo-Geo updates [Johnboy]: | |
| 220 | * savagere, kizuna - Reverted C1 change from u2 (chip was bad, C1 was | |
| 221 | correct) | |
| 222 | * gururin - Added correct M1 ROM | |
| 223 | * quizdai2 - Tagged as MVS and AES version | |
| 224 | * Started to document mask ROM types | |
| 230 | 225 | |
| 231 | Added | |
| 226 | naomi.c: Added M | |
| 232 | 227 | |
| 233 | 'Massive' Neo Geo documentation update [Johnboy]: | |
| 234 | * Added official SNK Playmore title catalogue | |
| 235 | * Identified and tagged all MVS sets which were not officially | |
| 236 | released for the AES system (according to official SNK Playmore | |
| 237 | title catalogue and Neo-Geo Masterlist) | |
| 238 | * Several sets have been identified (AES / MVS VERSION) and tagged | |
| 239 | properly | |
| 240 | * Documented MULTI PLAY MODE (unemulated); Missing MCU | |
| 241 | * Updated game PCB information | |
| 242 | * Renamed kof99n to kof99k (KOREAN VERSION) | |
| 243 | * Renamed P's in mslug3 to correct chip label, added SMA comment | |
| 244 | * Renamed ROMs in jockeygp according to original cart, added some | |
| 245 | comments | |
| 246 | * Renamed ROMs in vliner/vlinero according to original cart, added | |
| 247 | some comments | |
| 248 | * neodrvr.c cleanup | |
| 228 | viper.c: Added the 941a01 BIOS and p911e missing NVRAM dump | |
| 229 | [John Bud @ Jamma+] | |
| 249 | 230 | |
| 250 | Fixed some bugs in the MB88xx CPU core [Alex Jackson] | |
| 231 | Golden Poker driver updates... [Roberto Fresca] | |
| 232 | * Added 3 new Witch Card sets. | |
| 233 | * Added 3 new Falcons Wild sets (from 3 different hardwares). | |
| 234 | * Hooked the second CPU (still encrypted) to the Falcon hardware. | |
| 235 | * Partially decrypted the second CPU program from Falcon hardware. | |
| 236 | * Figured out the Falcons Wild (Video Klein) memory map and machine. | |
| 237 | * Defeated the evil Video Klein's Witch Card hardware. | |
| 238 | * Reworked inputs for some sets. | |
| 239 | * Added lamps layouts/connections to the new sets. | |
| 240 | * Figured out the multiplexed data/address from Falcon's boards | |
| 241 | sound. | |
| 242 | * Added full sound support to Falcon hardware. | |
| 243 | * Reorganized and partially cleaned-up the driver. | |
| 244 | * Added more technical notes. | |
| 251 | 245 | |
| 252 | Various improvements to polepos.c [Alex Jackson]: | |
| 253 | * Corrected the way the steering wheel is hooked up, fixing the | |
| 254 | jittery steering in the sets with MCUs. | |
| 255 | * Added a new layout file for the bootleg sets without MCUs | |
| 256 | (topracern and polepos2bi). | |
| 257 | * Converted clock frequencies to crystal values from xtal.c. | |
| 258 | * Added correct ROM names for the Namco-manufactured sets (polepos | |
| 259 | and polepos2). | |
| 260 | * Completely removed the unused global variable polepos_gear_bit. | |
| 261 | * Fixed a couple of bootleg ROMs that were very likely bit-rotted. | |
| 246 | Fixed unaligned 16 and 32-bit i/o accesses in i386 CPU core | |
| 247 | [Barry Rodewald] | |
| 262 | 248 | |
| 263 | Added some missing makefile dependencies [Atari Ace] | |
| 249 | Fix bug where multiple sampleof attributes could be output, resulting | |
| 250 | in invalid XML. [Aaron Giles] | |
| 264 | 251 | |
| 265 | Allow the non-DRC RSP core to build again (controlled by a #define | |
| 266 | like the SH-2 core) [Atari Ace] | |
| 252 | Enable wavwrite (and aviwrite) sound even if -nosound is specified. | |
| 253 | [Aaron Giles] | |
| 267 | 254 | |
| 268 | segas16b.c: Corrected the rom names for the FD1094 317-0120 Golden Axe | |
| 269 | set and verified the dump as good. [Brian Troha] | |
| 255 | Since PNG writing is used for MNG as well, switch back to default | |
| 256 | compression instead of best compression in order to keep the | |
| 257 | performance reasonable. [Aaron Giles] | |
| 270 | 258 | |
| 271 | lr35902.c: Added the speed register to the register list to allow it | |
| 272 | to be changed and retrieved again. [Sandro Ronco] | |
| 259 | Fix another Clang issue [Balrog] | |
| 273 | 260 | |
| 274 | converted mb3773 from a legacy device to a c++ device. tidied up | |
| 275 | comments in at28c16 [smf] | |
| 261 | SH2DRC: Fix BSRF and JSR so delay slot insns can trash the calculated | |
| 262 | PR if they want [R. Belmont] | |
| 276 | 263 | |
| 277 | djboy.c: Added unverified Beast MCU internal ROM image | |
| 278 | [Dr Decapitator, Tomasz Slanina, Lord Nightmare, Phil Bennett] | |
| 264 | v9938 - Set default value for status register 4 and 6 [Michael Zapf] | |
| 279 | 265 | |
| 280 | sfbonus.c: Added the Amcoe "Classic Edition Compact Format" PCB | |
| 281 | layout. [Brian Troha] | |
| 266 | Added INT1, INT2, INT3, DRQ0, DRQ1, TMRIN0, TMRIN1 input and TMROUT0, | |
| 267 | TMROUT1 output lines to the Intel 80186 CPU interface. [Curt Coder] | |
| 282 | 268 | |
| 283 | Added TMS32015 and TMS32016 CPU variants to the TMS32010 core. Fixed | |
| 284 | LST instruction which was sometimes adjusting internal RAM banking | |
| 285 | incorrectly. [Quench] | |
| 269 | SH2: fix PC relative MOV in delay slot | |
| 270 | SH2: Further improvements to PC_relative loads in the delay slot. | |
| 271 | [R. Belmont] | |
| 286 | 272 | |
| 287 | Added Ameri Darts internal DSP dump and TMS32015 support to the | |
| 288 | Amerdart driver. Also added savestate support to the game. | |
| 289 | [Dr Decapitator, Quench] | |
| 273 | Improvements to vpoker.c driver [Roberto Fresca] | |
| 274 | * Added 5-Aces Poker. | |
| 275 | * Fixed, improved and merged memory map. | |
| 276 | * Fixed the ROM loading. | |
| 277 | * Removed the mame rnd hack from the blitter read handler. | |
| 278 | * Preliminary inputs. | |
| 279 | * Fixed visible screen. | |
| 290 | 280 | |
| 291 | ||
| 281 | Added | |
| 292 | 282 | |
| 283 | Added UART Tx/Rx framework to the CD-i 68070 implementation, necessary | |
| 284 | for Quizard protection. [Harmony] | |
| 293 | 285 | |
| 286 | Changed default CD-i SLAVE video setting to PAL, necessary for Quizard | |
| 287 | to boot. [Harmony] | |
| 294 | 288 | |
| 289 | Naomi: added protection key for gundmct, it boots now [Cah4e3] | |
| 290 | ||
| 291 | Changed visible area and resolution of CD-i based arcade games. | |
| 292 | [Harmony] | |
| 293 | ||
| 294 | New driver for Advanced Video Technology (AVT) platform | |
| 295 | [Roberto Fresca] | |
| 296 | * Almost accurate memory map. | |
| 297 | * Decoded graphics. | |
| 298 | * Decoded the bipolar PROM. | |
| 299 | * Detected a CRTC (MC6845 type) reversing the code. | |
| 300 | * Guessed the CRTC clock to get proper values. | |
| 301 | * Hooked the AY-3-8910. | |
| 302 | * Added games notes. | |
| 303 | * Added technical notes. | |
| 304 | ||
| 305 | Patched out the majority of the Quizard 1.7 protection check and | |
| 306 | emulated the game's inputs. [Harmony] | |
| 307 | ||
| 308 | Patched out the majority of the Quizard 1.2 protection check and | |
| 309 | made the patch more generic. [Harmony] | |
| 310 | ||
| 311 | Added incomplete protection patches to Quizard 3.2 and Quizard Rainbow | |
| 312 | 4.1; both now run through attract mode and coin up, but crash when | |
| 313 | going in-game. [Harmony] | |
| 314 | ||
| 315 | video/neogeo.c: Call optimize_sprite_data() at VIDEO_RESET (for the | |
| 316 | convenience of Neo Geo CD) [Barry Rodewald] | |
| 317 | ||
| 318 | Attempt to untie the shared mapping for all games in zr107.c (midnrun, | |
| 319 | windheat, waveshrk). Buttons now have labels and match up to test | |
| 320 | mode, even if you cannot play the games. [Tafoid] | |
| 321 | ||
| 322 | Fixed vspinbalj (vsnes.c) flipper control and eliminated duplicated | |
| 323 | inputs. [Tafoid] | |
| 324 | ||
| 325 | Converted render.c objects into C++ objects. Updated all callers. | |
| 326 | [Aaron Giles] | |
| 327 | ||
| 328 | Improvements to Subsino driver. [Roberto Fresca] | |
| 329 | * Created proper inputs for all Victor 6 sets. | |
| 330 | * Fixed/extended Magic Train technical notes. | |
| 331 | * Eliminated the 3 undumped bipolar PROMs from Magic Train since | |
| 332 | these are in fact Darlington Arrays instead of bipolar PROMs. | |
| 333 | ||
| 334 | Replaced the excessively large Quizard patch scheme with a much | |
| 335 | smaller 4-byte patch plus basic protection obfuscation simulation. | |
| 336 | [Harmony] | |
| 337 | ||
| 338 | Found the appropriate patch values for Quizard 2.2 and promoted it | |
| 339 | to working. [Harmony] | |
| 340 | ||
| 341 | Removed RAM protection patches from Quizard games. All games now at | |
| 342 | least boot with simulated protection, and the ones that were playable | |
| 343 | before remain playable. [Harmony] | |
| 344 | ||
| 345 | Changes LIVES to use only a single DIP instead of being split up | |
| 346 | between two input ports by using a CUSTOM_INPUT. | |
| 347 | [Tafoid, Fabio Priuli] | |
| 348 | ||
| 349 | Eliminated non-functioning service mode mapping which was a duplicate | |
| 350 | (ssridersb - tmnt.c). Added new labels to bombkick (yunsun16.c) to | |
| 351 | better describe the status required for each DIP, rather than the | |
| 352 | duplicate label "DON"T CHANGE IT!". [Tafoid] | |
| 353 | ||
| 354 | 8237dma.c: Initialize the command register to 0 on reset. | |
| 355 | [Wilbert Pol] | |
| 356 | ||
| 357 | Update psx drivers to use a driver_device. [Atari Ace] | |
| 358 | ||
| 359 | Update driver-specific sound devices to use tokens and store their | |
| 360 | state like other devices. [Atari Ace] | |
| 361 | ||
| 362 | ||
| 363 | ||
| 295 | 364 | New games added or promoted from NOT_WORKING status |
| 296 | 365 | --------------------------------------------------- |
| 297 | Puzzle Break [David Haywood, Smitdogg, The Dumping Union] | |
| 366 | Tetris / Bloxeed (Korean System 16 bootleg) | |
| 367 | (ISG Selection Master Type 2006) [Anonymous] | |
| 368 | Mallet Madness v2.1 [Brian Troha, The Dumping Union] | |
| 369 | Piccolo Poker 100 [Roberto Fresca] | |
| 370 | Witch Card (Falcon, enhanced sound) [Roberto Fresca, Team Europe] | |
| 371 | Witch Card (German, set 3, alt gfx) [Roberto Fresca, Team Europe] | |
| 372 | Witch Game (Video Klein) [Roberto Fresca, Team Europe] | |
| 373 | Falcons Wild - Wild Card 1991 (TVG) [Roberto Fresca, Team Europe] | |
| 374 | Falcons Wild - World Wide Poker (Video Klein) | |
| 375 | [Roberto Fresca, Team Europe] | |
| 376 | Victor 6 [Smitdogg, The Dumping Union] | |
| 377 | Quizard 1.7 [Harmony] | |
| 378 | Quizard 1.2 [Harmony] | |
| 379 | Quizard 2.2 [Harmony] | |
| 298 | 380 | |
| 299 | 381 | |
| 300 | 382 | |
| 301 | 383 | New clones added |
| 302 | 384 | ---------------- |
| 303 | Mystic Riders (bootleg?) [David Raingeard] | |
| 304 | Magical Odds (set 2) [W. Herve, Smitdogg, The Dumping Union] | |
| 305 | Raiden Fighters Jet - 2000 (China) [Brian Troha, Guru] | |
| 306 | Wonder Boy III - Monster Lair (set 6, System 16A, FD1089A 317-xxxx) (better dump?) | |
| 307 | [Team Europe] | |
| 308 | Street Fighter Zero (Hispanic 950718) | |
| 309 | [Layne, N. Francfort, R. Mucciarelli, Smitdogg, The Dumping Union] | |
| 310 | Captain Commando (World 911202) [Stefan Lindberg, The Dumping Union] | |
| 311 | Space Ship [f4brice] | |
| 312 | Juuouki (set 5, Japan, FD1094 317-0069, not working) | |
| 313 | [Stefan Lindberg, The Dumping Union] | |
| 314 | Wild Fang [Stefan Lindberg, The Dumping Union] | |
| 315 | Fruit Bonus '06 - 10th anniversary (Version 1.3R CGA) | |
| 316 | [Brian Troha, The Dumping Union] | |
| 317 | Terminator 2 - Judgment Day (rev LA4 08/03/92) | |
| 318 | [Gor, Smitdogg, The Dumping Union] | |
| 385 | Sea Wolf (older?) [Siftware] | |
| 386 | Gun Fight (older?) [Siftware] | |
| 387 | Puckman Pockimon (set 2) [Guru] | |
| 388 | Hit Me [Siftware] | |
| 389 | X-Men: Children of the Atom (Asia 950105) [Razoola] | |
| 390 | Final Lap 3 (Japan - Rev C) [Smitdogg, Guru, The Dumping Union] | |
| 391 | Omega Race (set 2) [Dave France, The Dumping Union] | |
| 392 | Star Raker [Andreas Kraemer, Steffen & Laschek] | |
| 319 | 393 | |
| 320 | 394 | |
| 321 | 395 | |
| 322 | 396 | New games marked as GAME_NOT_WORKING |
| 323 | 397 | ------------------------------------ |
| 324 | Gundam Battle Operating Simulator (GDX-0013) | |
| 325 | [Team Europe, Joerg Hartenberger] | |
| 326 | Sega Club Golf 2006 Next Tours (Rev A) (GDX-0018A) | |
| 327 | [Team Europe, Joerg Hartenberger] | |
| 328 | Ollie King (GDX-0007) [Team Europe, Joerg Hartenberger] | |
| 329 | Tokio/Scramble Formation (japanese?, newer) | |
| 330 | [Guru, Roger Coltrane, Smitdogg, The Dumping Union] | |
| 398 | Cosplay Heaven 5 [alien_mame, Angelo Salese] | |
| 399 | Falcons Wild - World Wide Poker (Falcon original) | |
| 400 | [Roberto Fresca, Darran] | |
| 401 | Faster Than Speed [Cah4e3, R. Belmont] | |
| 402 | Wave Runner GP [Cah4e3, R. Belmont] | |
| 403 | 5-Aces Poker [Roberto Fresca] | |
| 404 | NSM Poker (TMS9995) [Roberto Fresca, Team Europe] | |
| 405 | Dual Games (prototype) [ChrisQC, Smitdogg, The Dumping Union] | |
| 406 | Symbols (ver 1.4) [Roberto Fresca, Dave Ormiston] | |
| 407 | Symbols (ver 2.5) [Roberto Fresca, Dave Ormiston] | |
| 408 | Arrow Bingo [Roberto Fresca, Dave Ormiston] | |
| 409 | NFL (ver 109) [Roberto Fresca, Dave Ormiston] | |
| 410 | Virtua Striker 3 (rev. B) [ANY] | |
| 411 | Puyo Puyo DA! [Guru, f205v] | |
| 412 | Mobile Suit Gundam: Federation vs. Zeon [Guru] | |
| 331 | 413 | |
| 332 | 414 | |
| 333 | 415 | |
| 334 | 0.13 | |
| 416 | 0.139u3 | |
| 335 | 417 | ------- |
| 336 | 418 | |
| 337 | 419 | |
| 338 | 420 | MAMETesters Bugs Fixed |
| 339 | 421 | ---------------------- |
| 340 | - 03910: [Sound] All sets using stereo sound: Right speaker is louder | |
| 341 | than left speaker (hap) | |
| 342 | - 03913: [Graphics] arcadecl: Playfield is offset to characters in both | |
| 343 | games. (hap) | |
| 344 | - 03912: [Sound] kyros, kyrosj: Once you throw a punch, there is a white | |
| 345 | noise which lasts throughout the game (hap) | |
| 346 | - 02572: [Known Issues/To-Do's] All Sets in xain.c: 68705 MCU is not | |
| 347 | dumped, behavior patched out (Phil Bennett, Dr. Decapitator) | |
| 348 | - 02462: [Known Issues/To-Do's] storming: Supposed to be a bootleg | |
| 349 | without mcu. (hap) | |
| 350 | - 03899: [Sound] All sets in cloak.c: Music pitch is higher than PCB | |
| 351 | (Tafoid) | |
| 352 | - 03888: [DIP/Input] mstadium: Third button mapping missing. (Tafoid) | |
| 422 | - 04030: [Misc.] All sets in taito_f3.c, taito_z.c, kaneko16.c, | |
| 423 | konamigq.c, overdriv.c: "16-bit EEPROM set with 8-bit data" | |
| 424 | (Aaron Giles) | |
| 425 | - 04034: [Crash/Freeze] All sets in viper.c: [debug] Assert in Debug | |
| 426 | build (Aaron Giles) | |
| 427 | - 01993: [Graphics] stmblade: Graphical corruption on left side of screen | |
| 428 | beginining stage 3 (robiza) | |
| 429 | - 04050: [Graphics] twineag2: Missing graphic effect in screen | |
| 430 | transitions (robiza) | |
| 431 | - 04044: [Graphics] batsugun and clones: [possible] batsugun VDP mixing | |
| 432 | still not correct (David Haywood) | |
| 433 | - 00945: [Graphics] bkraidu: Text glitch in the flip screen mode. (robiza) | |
| 434 | - 00944: [Graphics] ghox: There are gfx glitches on the background in | |
| 435 | the ending scene. (robiza) | |
| 436 | - 03952: [Graphics] gaiden, wildfang, raiga: Screen is shifted 32 pixels | |
| 437 | down with flip-screen. (robiza) | |
| 438 | - 04036: [Graphics] astrowar: [debug] Severe graphic corruption | |
| 439 | (Fabio Priuli) | |
| 440 | - 04035: [Crash/Freeze] All sets in chihiro.c: Assert before OK | |
| 441 | (Fabio Priuli) | |
| 353 | 442 | |
| 354 | 443 | |
| 355 | 444 | |
| 356 | 445 | Source Changes |
| 357 | 446 | -------------- |
| 358 | Added many instances of missing static and const qualifiers to MAME, | |
| 359 | and disabled a fair chunk of dead code in konamiic.c. [Atari Ace] | |
| 447 | mc6845.c: Rewritten to allow mid frame changes to the counter | |
| 448 | registers. This enables drivers to use advanced split screen and | |
| 449 | scrolling effects using a regular mc6845. [Wilbert Pol] | |
| 360 | 450 | |
| 361 | Confirmation (with frequency counter) of proper 68000 clock speeds (16 | |
| 362 | MHz) for Premier Soccer and Golfing Greats. [Fabrizio Vasile] | |
| 451 | Changed the MACHINE_DRIVER_* macros, as follows: [Aaron Giles] | |
| 363 | 452 | |
| 364 | Updated expat library match the latest released version. (2.0.1) | |
| 365 | [Oliver Stoneberg] | |
| 453 | 1. Renamed MACHINE_DRIVER_* to MACHINE_CONFIG_* to match the name of | |
| 454 | the object it actually describes. The MDRV_* prefix may eventually be | |
| 455 | bulk updated at some point, but not now. | |
| 366 | 456 | |
| 367 | Natural keyboard status saved in options when changed [Robbbert] | |
| 457 | 2. MACHINE_CONFIG_START() now takes a driver_data_t-derived class as a | |
| 458 | required second parameter. This means that MDRV_DRIVER_DATA() is no | |
| 459 | longer required, and every "root" machine config *must* specify a | |
| 460 | driver data class (or driver_data_t itself if the driver has not yet | |
| 461 | been updated to use driver data). | |
| 368 | 462 | |
| 369 | Improvements to the Pinkiri 8 video emulation [David Haywood] | |
| 463 | 3. New MACHINE_CONFIG_DERIVED() macro defines a machine_config that is | |
| 464 | derived from another machine_config. This takes the place of the very | |
| 465 | typical MACHINE_DRIVER_START()/MDRV_IMPORT_FROM() combination. | |
| 370 | 466 | |
| 371 | Hooked up inputs and Dip-SW for Ron Jan and Pinkiri 8 [Angelo Salese] | |
| 467 | 4. New MACHINE_CONFIG_FRAGMENT() macro defines a partial | |
| 468 | machine_config that can only be included in another "root" | |
| 469 | machine_config. This is also used for machine_configs that are | |
| 470 | specified as part of a device. | |
| 372 | 471 | |
| 373 | Simplified vram access in Pinkiri 8 HW [David Haywood] | |
| 472 | 5. Changed MDRV_IMPORT_FROM() to MDRV_FRAGMENT_ADD() to more | |
| 473 | accurately describe what is happening. | |
| 374 | 474 | |
| 375 | Added a skeleton driver for Philips CD-i-based arcade series, Quizard | |
| 376 | [Harmony] | |
| 475 | 6. Added asserts to the above three macros to ensure they are properly | |
| 476 | used. | |
| 377 | 477 | |
| 378 | Moved softlist implementation from MESS [Miodrag Milanovic] | |
| 379 | * Moved image related UI from MESS to emu core | |
| 380 | * Reimplemented filename related image device calls | |
| 478 | Updated all machine drivers to use the new macros. Search & replace | |
| 479 | lists below cover 99% of the changes, with just a few manual fixups. | |
| 480 | [Aaron Giles] | |
| 381 | 481 | |
| 382 | Moved listsofware command line option from MESS, and added softlist in | |
| 383 | XML output [Miodrag Milanovic] | |
| 482 | timer.c: timers get rescheduled only if enable state has changed | |
| 483 | [Christophe Jaillet] | |
| 384 | 484 | |
| 385 | TMS52xx now uses proper IP/PC/Subcycle counting for audio generation. | |
| 386 | [Lord Nightmare] | |
| 485 | bfm_dm01 improvements: replaced the video screen hack used for the | |
| 486 | dotmatrix display with a more accurate, artwork-based version. The | |
| 487 | BFM_DM01 clocks data in one byte at a time, and the new dotmatrix | |
| 488 | render object represents the 8 dots powered by each byte. [AGEMAME] | |
| 387 | 489 | |
| 388 | video/cclimber.c: cclimber/ckong sprite X was off by 1 [hap] | |
| 490 | aristmk4.c: | |
| 491 | * Cashcade workaround for topgear [Frasher] | |
| 492 | * Improved a few memory handlers [Palindrome] | |
| 389 | 493 | |
| 390 | Rewrote video emulation to use the device system in Little Robin | |
| 391 | [David Haywood] | |
| 494 | Changed driver_data objects to be devices. Replaced the driver_data_t | |
| 495 | class with a new driver_device class, which is the base class for all | |
| 496 | driver_data objects now. The new driver devices are added as the first | |
| 497 | device in the device list, with a tag of "root"; all other devices are | |
| 498 | now owned by the driver device. [Aaron Giles] | |
| 392 | 499 | |
| 393 | Decrypted Double Dragon Italian bootleg char roms [Angelo Salese] | |
| 500 | Moved core callbacks (machine_start/_reset, sound_start/_reset, | |
| 501 | video_start/_reset/_eof/_update, and palette_init) into device | |
| 502 | configuration parameters on these new devices. The driver_device base | |
| 503 | class overrides device_start(), ensures all other devices have been | |
| 504 | started, and then calls, in order, the following overridable methods: | |
| 394 | 505 | |
| 395 | Super Game III: added handling for two consecutive writes for MMC1 | |
| 396 | making Snow Bros playable [Mariusz Wojcieszek, Fabio Pruli] | |
| 506 | 1. DRIVER_INIT function from the game driver | |
| 507 | 2. palette_init() - by default calls the MDRV_PALETTE_INIT | |
| 508 | function | |
| 509 | 3. driver_start() - new | |
| 510 | 4. machine_start() - by default calls the MDRV_MACHINE_START function | |
| 511 | 5. sound_start() - by default calls the MDRV_SOUND_START function | |
| 512 | 6. video_start() - by default calls the MDRV_VIDEO_START function | |
| 397 | 513 | |
| 398 | Moved ioproc implementation from MESS [Miodrag Milanovic] | |
| 514 | Similarly, the driver_device class overrides device_reset() and then | |
| 515 | calls these methods in order: | |
| 399 | 516 | |
| 400 | Fixed bad cassette wave sound [Robbbert] | |
| 517 | driver_reset() - new | |
| 518 | machine_reset() - by default calls the MDRV_MACHINE_RESET function | |
| 519 | sound_reset() - by default calls the MDRV_SOUND_RESET function | |
| 520 | video_reset() - by default calls the MDRV_VIDEO_RESET function | |
| 401 | 521 | |
| 402 | Super Game III: fixed Tom & Jerry [Mariusz Wojcieszek] | |
| 522 | To accommodate these changes, initialization order is slightly altered | |
| 523 | from before. The tilemap, video, sound, and debug systems are now | |
| 524 | initialized prior to the devices' start. And the user callbacks for | |
| 525 | DRIVER_INIT, PALETTE_INIT, MACHINE_START, SOUND_START, and VIDEO_START | |
| 526 | are all called back-to-back. The net effect should be similar, | |
| 527 | however. [Aaron Giles] | |
| 403 | 528 | |
| 404 | Added proper i8751H MCU dump to Legend of Hero Tonma (Japan) | |
| 405 | [Dr. Decapitator] | |
| 529 | Changed device_t::subtag to only prepend a prefix if the device is not | |
| 530 | the 'root' device, in order to keep compatibility with existing tag | |
| 531 | searching. [Aaron Giles] | |
| 406 | 532 | |
| 407 | C++-ified the debugger views. Split implementation of individual view | |
| 408 | types out to separate files. Updated all callers. [Aaron Giles] | |
| 533 | Changed device startup to actively reorder devices when they report | |
| 534 | missing dependencies. This ensures that the reset functions get called | |
| 535 | in the same order that the start functions did. [Aaron Giles] | |
| 409 | 536 | |
| 410 | Changed emualloc to free resource pools from earliest to latest so | |
| 411 | that early objects can safely clean up stuff they allocated. | |
| 537 | Remove artificial SOUND_ prefix from sound device names. [Atari Ace] | |
| 538 | ||
| 539 | Converted sauro, scotrsht, segald, seicross, senjyo, shangha3, | |
| 540 | shaolins, shisen, skyraid, solomon, spcforce, speekatk, splash, | |
| 541 | sprcros2, ssozumo, suna16, suna8 to driver_data. [Atari Ace] | |
| 542 | ||
| 543 | Added include files for all remaining drivers with multiple source | |
| 544 | files. [Atari Ace] | |
| 545 | ||
| 546 | Changed driver_device to expose the game_driver's ROMs through the | |
| 547 | device interface. This means all ROMs are now exposed via devices, and | |
| 548 | thus the process of enumerating ROMs gets simpler. [Aaron Giles] | |
| 549 | ||
| 550 | Changed all instances of temporarily allocating machine_config objects | |
| 551 | to just put them on the stack for simplicity, letting the destructor | |
| 552 | handle the cleanup work automatically. [Aaron Giles] | |
| 553 | ||
| 554 | Changed machine_config constructor to take a game_driver, from which | |
| 555 | the machine_config constructor is obtained. This also means the | |
| 556 | resulting machine_config holds a reference to the game_driver. | |
| 412 | 557 | [Aaron Giles] |
| 413 | 558 | |
| 414 | Changed device name from an overridable function to a parameter passed | |
| 415 | to the device_config constructor. In situations where the proper name | |
| 416 | is not known at construction time, a generic name can be specified and | |
| 417 | then overridden later once the configuration is complete. [Aaron Giles] | |
| 559 | Changed running_machine constructor to no longer take a game_driver, | |
| 560 | since the game_driver is now obtainable via the machine_config. | |
| 561 | [Aaron Giles] | |
| 418 | 562 | |
| 419 | Decapped 89C51 MCU in Real Battle Mahjong King [Dr. Decapitator, Guru] | |
| 563 | Added two new template classes optional_device<> and | |
| 564 | required_device<>. Use these to declare the device pointers in the | |
| 565 | class. The only difference between the two is that required will | |
| 566 | fatalerror if the device is not found. These new classes are "pass- | |
| 567 | through" so the underlying pointer can be passed anywhere a regular | |
| 568 | device pointer would work. [Aaron Giles] | |
| 420 | 569 | |
| 421 | metro.c: Added Puzzlet's MCU internal ROM. Zilog Z8 8-bit family MCU | |
| 422 | requires a new CPU core to be written. [Dr. Decapitator] | |
| 570 | Fix compiling on older GCCs (including OS X PowerPC) [Aaron Giles] | |
| 423 | 571 | |
| 424 | Hooked up Renegade 68705 MCU [Phil Bennett, Dr. Decapitator] | |
| 572 | Change shared memory regions to track their size. Added | |
| 573 | memory_get_shared() functions to retrieve a pointer to a shared region | |
| 574 | and optionally the size. [Aaron Giles] | |
| 425 | 575 | |
| 426 | Made redufo Artic version the parent and bootleg version a clone [hap] | |
| 576 | pipeline (pipeline.c) [stephh] : | |
| 577 | * Fixed Dip Switches and Inputs (after verification of the Z80 code) | |
| 427 | 578 | |
| 428 | Hooked up Xain d'Sleena/Solar Warrior 68705 MCU | |
| 429 | [Phil Bennett, Dr. Decapitator] | |
| 579 | Added templates required_shared_ptr<> and optional_shared_ptr<> which | |
| 580 | work just like required_device<> and optional_device<> for retrieving | |
| 581 | a pointer by tag from an address space that specifies AM_SHARE("tag"). | |
| 582 | Also added templates required_shared_size<> and optional_shared_size<> | |
| 583 | for retrieving the size of the AM_SHARE region. [Aaron Giles] | |
| 430 | 584 | |
| 431 | Hooked up Daikaiju no Gyakushu 68705 MCU and removed MCU simulation | |
| 432 | code [Phil Bennett, Dr. Decapitator] | |
| 585 | Created a new generic NVRAM device. It can be configured to default to | |
| 586 | 0-fill, 1-fill, random-fill, or custom fill. In all cases, a | |
| 587 | same-named memory region overrides the default fill. The address range | |
| 588 | where the NVRAM can be found is now identified by an AM_SHARE() region | |
| 589 | of the same tag as the NVRAM device. Drivers can also explicitly | |
| 590 | configure a separately-allocated NVRAM region via | |
| 591 | nvram_device::set_base(). [Aaron Giles] | |
| 433 | 592 | |
| 434 | Added DIP LOCATIONS for xain.c [Tafoid] | |
| 593 | Replaced all instances of MDRV_NVRAM_HANDLER(generic_*) with | |
| 594 | MDRV_NVRAM_ADD_*("nvram"). Replaced all | |
| 595 | AM_BASE_GENERIC/AM_SIZE_GENERIC(nvram) with AM_SHARE("nvram"). For all | |
| 596 | remaining drivers that referenced the generic.nvram directly, changed | |
| 597 | them to hold a required_shared_ptr<UINTx> to the NVRAM in their driver | |
| 598 | state, and use that instead. Removed nvram and nvram_size from the | |
| 599 | generic_ptrs. [Aaron Giles] | |
| 435 | 600 | |
| 436 | aristmk4: various improvements: [FrasheR, Palindrome] | |
| 437 | * Fixed VIA for good. 5010 - 501F | |
| 438 | * Hooked up push button inputs | |
| 439 | * Hooked up ports for the PML 2852 U3 | |
| 440 | * Implemented coin input | |
| 441 | * Lamp output and button layout | |
| 442 | * NVRAM backup | |
| 443 | * Connected SW7 for BG colour map select | |
| 444 | * Added LK13. 3MHz or 1.5 MHz CPU speed select | |
| 445 | * Added sound sample for mechanical meter pulse | |
| 446 | * Replaced custom RTC code with MC146818 | |
| 601 | Have each device create its own device_debug instead of letting the | |
| 602 | debugger do it. This allows the device to start itself up before the | |
| 603 | debugger tries to figure out what to do with it. Fixes the problem | |
| 604 | where register names were not populated into the symbol table | |
| 605 | correctly after I shuffled the initialization order. [Aaron Giles] | |
| 447 | 606 | |
| 448 | naomi.c: Corrected and updated some game names and cartridge | |
| 449 | descriptions [f205v] | |
| 607 | multfish.c: Updated driver with new information and several new sets | |
| 608 | as well as several new bootlegs. [MetalliC] | |
| 450 | 609 | |
| 451 | neodrvr.c updates: [Johnboy] | |
| 452 | * Tagged kof2003h AES VERSION | |
| 453 | * Tagged the following sets as MVS AND AES VERSION: aodk, lbowling | |
| 454 | * Renamed P1 in sengoku3 to correct chip label | |
| 455 | * Marked v2 in strhoop BAD_DUMP | |
| 456 | * Marked P1 in flipshot BAD_DUMP | |
| 457 | * Identified kof98n as AES version, renamed to kof98h | |
| 610 | New driver for Jubilee's Double-Up Poker. Decoded graphics and colors | |
| 611 | properly. Hooked the correct TMS9980 CPU, added a preliminary memory | |
| 612 | map and some technical notes. [Roberto Fresca] | |
| 458 | 613 | |
| 459 | Improved v25 logging for Batsugun [David Haywood] | |
| 614 | Integrated comments into debugcpu.c, and removed debugcmt.c. | |
| 615 | Modernized the code and updated so it actually works with the modern | |
| 616 | debug classes. [Aaron Giles] | |
| 460 | 617 | |
| 461 | igs011.c update [Luca Elia] | |
| 462 | * Emulated IGS011 protection | |
| 463 | * Emulated IGS012 protection | |
| 464 | * Removed 149 rom patches | |
| 618 | Added AM_DEVREAD_MODERN/AM_DEVWRITE_MODERN/etc. macros for the | |
| 619 | non-modern address map case so that updated devices can shed their | |
| 620 | old-style read/write handlers in favor of member functions. | |
| 621 | [Aaron Giles] | |
| 465 | 622 | |
| 466 | Hooked up Slap Fight/Alcon 68705 MCU [Phil Bennett, Dr. Decapitator] | |
| 623 | Bulk converted all okim6295_r/okim6295_w references in the address | |
| 624 | maps to call to the modern member functions. [Aaron Giles] | |
| 467 | 625 | |
| 468 | Hooked up MCUs for Tough Turf (US) and Wrestle War; removed Wrestle | |
| 469 | War MCU simulation. [Aaron Giles, Dr. Decapitator] | |
| 626 | quizpani (quizpani.c) [stephh] : | |
| 627 | * Improved Dip Switches and fixed Inputs (after verification of the | |
| 628 | M68000 code) | |
| 470 | 629 | |
| 471 | cps2.c: Correct the release order for the Xmen: Cota (Hispanic) sets | |
| 472 | [gregf] | |
| 630 | Renamed namcops2 DVDs to match labels [Guru] | |
| 473 | 631 | |
| 474 | Made the machine_config a proper object. Added detokenize method to | |
| 475 | this object which can be called multiple times to append new devices | |
| 476 | after the initial machine configuration is set up. Updated member | |
| 477 | variables to match new naming convention. [Aaron Giles] | |
| 632 | Added read_status() and write_command() methods to the okim6295_device | |
| 633 | for the common case where these are done outside the context of a read | |
| 634 | or write handler (it was annoying to pass in the fake address space | |
| 635 | for these cases). [Aaron Giles] | |
| 478 | 636 | |
| 479 | Changed the running_machine to take a constructed machine_config | |
| 480 | object in the constructor, instead of creating one itself, for | |
| 481 | consistency. Also added machine->total_colors() as a shortcut to | |
| 482 | machine->config->m_total_colors. [Aaron Giles] | |
| 637 | Added DEVCB_DEVICE_MEMBER() macros which allow you to specify a | |
| 638 | READ8_MEMBER or WRITE8_MEMBER in a device callback (via dynamically | |
| 639 | generated trampolines). [Aaron Giles] | |
| 483 | 640 | |
| 484 | firetrap.c: Added PCB documentation, corrected ROM names, corrected | |
| 485 | clocks [Guru] | |
| 641 | Replaced all remaining calls to okim6295_r/okim6295_w with calls to | |
| 642 | the new methods, and removed the static functions. [Aaron Giles] | |
| 486 | 643 | |
| 487 | idsoccer: Improved DIP locations, confirmed MSM5205 clock | |
| 488 | [Kevin Eshbach] | |
| 644 | namcops2: added dongle dump for Federation vs. Z.A.F.T. [Guru] | |
| 489 | 645 | |
| 490 | Fixed title screen colors in Bogey Manor | |
| 491 | [Angelo Salese, Stefan Lindberg] | |
| 646 | Fixed sprite OV flag behaviour in PC Engine VDC emulation | |
| 647 | [Angelo Salese, Charles MacDonald] | |
| 492 | 648 | |
| 493 | Modified way device_type constants are defined in order to get unidasm | |
| 494 | compile [Miodrag Milanovic] | |
| 649 | Corrected or clarified a number of duplicated inputs for drivers up | |
| 650 | through G [Tafoid] | |
| 495 | 651 | |
| 496 | Changed autmoon (aristmk4) romload to proper crc/sha hashes. The | |
| 497 | submitted romset contained a 32kb (u87.bin) which actually appeared to | |
| 498 | be an 8k overdumped. [Tafoid] | |
| 652 | Converted ASAP CPU core from a legacy CPU core to a modern device. | |
| 653 | [Aaron Giles] | |
| 499 | 654 | |
| 500 | slapfght.c: Corrected rom names for the Slap Fight sets and added PCB | |
| 501 | locations to any set where possible. Added Dipswitch locations to Slap | |
| 502 | Fight. Moved PCB information down to matching rom sets. | |
| 503 | [Brian Troha, Guru] | |
| 655 | Renamed device_execute_interface::m_icount to m_icountptr to avoid | |
| 656 | commonly-named device values of m_icount. [Aaron Giles] | |
| 504 | 657 | |
| 505 | Split mame.c into mame.c and machine.c, the latter containing the | |
| 506 | running_machine definition and implementation. [Aaron Giles] | |
| 658 | Fixed a bogus Hu6280 CPU core bug with timer latch division values | |
| 659 | readings [Angelo Salese] | |
| 507 | 660 | |
| 508 | Moved global machine-level operations and accessors into methods on | |
| 509 | the running_machine class. For the most part, this doesn't affect | |
| 510 | drivers except for a few occasional bits: [Aaron Giles] | |
| 661 | [SSV] implemented visible area registers; now the resolution for all | |
| 662 | the games is the max visible area (the values of the registers after | |
| 663 | the boot process) [Robert Zandona'] | |
| 511 | 664 | |
| 512 | mame_get_phase() == machine->phase() | |
| 513 | add_reset_callback() == machine->add_notifier(MACHINE_NOTIFY_RESET, ...) | |
| 514 | add_exit_callback() == machine->add_notifier(MACHINE_NOTIFY_EXIT, ...) | |
| 515 | mame_get_base_datetime() == machine->base_datetime() | |
| 516 | mame_get_current_datetime() == machine->current_datetime() | |
| 665 | Fixed missing VRAM > VRAM DMA flag clearance in PC Engine emulation | |
| 666 | [Angelo Salese] | |
| 517 | 667 | |
| 518 | Cleaned up the region_info class, removing most global region | |
| 519 | accessors except for memory_region() and memory_region_length(). | |
| 520 | Again, this doesn't generally affect drivers. [Aaron Giles] | |
| 668 | strnskil.c: Added MCU dump for banbam. [Pete Ogoun, Andrew Gardner] | |
| 521 | 669 | |
| 522 | Resurrect the old sampling profiler, and improve it to be useful: | |
| 523 | [Aaron Giles] | |
| 524 | * always available now, just specify -profile <n> to enable it | |
| 525 | * supports stack walking to uniquely identify call chains; the <n> | |
| 526 | parameter to the -profile option specifies how deep to go | |
| 527 | * automatically turns off throttling and multithreading, and sets the | |
| 528 | number of processors available to 1 (since we only sample the main | |
| 529 | thread) | |
| 530 | * output now uses the common symbol lookup, which actually uses the | |
| 531 | PDB for MSVC builds and sym files for gcc builds | |
| 532 | * the top 30 unique call chains are output | |
| 670 | Moved sound routing for non-speaker devices over to the sound | |
| 671 | interface's post-start method. Routing from one sound device to | |
| 672 | another was broken when sound_init() was moved ahead of device | |
| 673 | startup. [Aaron Giles] | |
| 533 | 674 | |
| 534 | Fix performance regression for PowerPC games. The timing made heavy | |
| 535 | use of cpu_get_total_cycles() which is now slow. Better to use the | |
| 536 | legacy_cpu_device directly and call device->total_cycles() which | |
| 537 | avoids the dynamic_cast to find the execute interface from a generic | |
| 538 | device. [Aaron Giles] | |
| 675 | Removed vestigial NVRAM from starwars, which is now covered by the | |
| 676 | x2212 device. [Aaron Giles] | |
| 539 | 677 | |
| 540 | Added cycles_to_attotime() and attotime_to_cycles() which is more | |
| 541 | often what is requested. (Clocks are the raw input clock, while cycles | |
| 542 | are internal clock after dividers/multipliers.) [Aaron Giles] | |
| 678 | CHDMAN: rewrote bin/cue support from specs, more images now work. | |
| 679 | [R. Belmont] | |
| 543 | 680 | |
| 544 | Removed most other instances of cpu_get_total_cycles. [Aaron Giles] | |
| 681 | Removed generic.videoram and generic.videoram_size. These generics | |
| 682 | have no core use, they are simply there for the convenience of | |
| 683 | drivers. Now that drivers are required to have devices, the data | |
| 684 | should move there. [Atari Ace] | |
| 545 | 685 | |
| 546 | Removed the following functions: [Aaron Giles] | |
| 547 | cpu_get_total_cycles() == cpudevice->total_cycles() | |
| 548 | cpu_clocks_to_attotime() == cpudevice->cycles_to_attotime() | |
| 549 | cpu_attotime_to_clocks() == cpudevice->attotime_to_cycles() | |
| 686 | Added proper handling of the SRAM in Aristocrat MK-5 [Palindrome] | |
| 550 | 687 | |
| 551 | Correct dipswitch location order in World Rally to match actual dips | |
| 552 | as seen by the game / service menu. [Brian Troha] | |
| 688 | Removed usage of I2C in Aristocrat MK-5 [Angelo Salese] | |
| 553 | 689 | |
| 554 | namcos22.c: updated ridgerac, raveracw and acedrvrw to use keys | |
| 555 | instead of dipswitches for shifters [Fabio Priuli] | |
| 690 | Added -bench <emulated-seconds> option to standardize benchmarking. | |
| 691 | [Aaron Giles] | |
| 556 | 692 | |
| 557 | Added COPX romloading for sets that didn't have it, marked as BAD_DUMP | |
| 558 | until the assumption that they're the same is (un)confirmed. [hap] | |
| 693 | Added DECLARE/DEFINE_TRIVIAL_DERIVED_DEVICE macros to simplify the | |
| 694 | definition of devices that are based off of a parent device, but which | |
| 695 | differ in name and a single parameter. [Aaron Giles] | |
| 559 | 696 | |
| 560 | Winmain cleanup: [Aaron Giles] | |
| 561 | * created dynamic_bind<> template class to handle dynamically binding | |
| 562 | to optionally-supported functions | |
| 563 | * wrapped stack walking code in a class | |
| 564 | * wrapped symbol lookup code in a class | |
| 565 | * added support for parsing objdump-produced symbol dumps which | |
| 566 | include non-global functions for much better stack dumps and | |
| 567 | profiling in gcc builds | |
| 697 | Convert ADSP21xx core to a modern CPU device. [Aaron Giles] | |
| 568 | 698 | |
| 569 | Modified makefile for win32 targets to automatically run objdump | |
| 570 | and produce a .sym file if SYMBOLS is enabled. [Aaron Giles] | |
| 699 | On Windows, osd_break_into_debugger() will now dump a stack crawl if | |
| 700 | there's no debugger attached. This means that asserts should have a | |
| 701 | full crawl now, for easier debugging. [Aaron Giles] | |
| 571 | 702 | |
| 572 | Update cheat loading to support image devices (moved implementation | |
| 573 | from MESS), use only CRC of first found image. [Miodrag Milanovic] | |
| 703 | Replaced NVRAM_HANDLER in leland with an NVRAM device. [Aaron Giles] | |
| 574 | 704 | |
| 575 | Removed cpu_get_sp(). [Aaron Giles] | |
| 705 | ssv: | |
| 706 | * implemented y tilemap offset register; (Roberto Zandona') | |
| 707 | * implemented x and y visible area register; (Roberto Zandona') | |
| 708 | * disabled tilemap draw when mode=0; (Roberto Zandona') | |
| 709 | * confirmed visible area register with a twin eagle II PCB (Corrado | |
| 710 | Tomaselli) | |
| 576 | 711 | |
| 577 | Added overrides to fetch the execute, memory and state interfaces | |
| 578 | without doing a dynamic_cast<> to speed up common legacy operations. | |
| 712 | Replaced largely redundant NVRAM handlers with NVRAM devices for | |
| 713 | namcos2 and a bunch of the Nichibutsu mahjong games. Also did it for | |
| 714 | the Atari games, moving the old hard-coded EEPROM data out into files | |
| 715 | finally. [Aaron Giles] | |
| 716 | ||
| 717 | Merged ssgbl.c into megadrvb.c and moved bootleg input definitions out | |
| 718 | of megadriv.c [Sonikos] | |
| 719 | ||
| 720 | Made the mc146818 a proper device, modernized it, and added an NVRAM | |
| 721 | interface so that drivers don't have to ask it to be manually saved. | |
| 579 | 722 | [Aaron Giles] |
| 580 | 723 | |
| 581 | Created CPU-specific device types for all CPUs, using new macros | |
| 582 | DECLARE_LEGACY_CPU_DEVICE and DEFINE_LEGACY_CPU_DEVICE. Changed CPUs | |
| 583 | to be their own device types, rather than all of type CPU with a | |
| 584 | special internal subtype. Note that as part of this process I removed | |
| 585 | the CPU_ prefix from the ALL-CAPS device name, so CPU_Z80 is just | |
| 586 | plain old Z80 now. This required changing a couple of names like 8080 | |
| 587 | to I8080 so that there was an alphabetic first character. [Aaron Giles] | |
| 724 | Added definitions for [DECLARE_]READ_LINE_MEMBER and | |
| 725 | [DECLARE_]WRITE_LINE_MEMBER so that read/write line callbacks can be | |
| 726 | defined as member functions. [Aaron Giles] | |
| 588 | 727 | |
| 589 | Hooked up Heavy Barrel I8751 MCU [Bryan McPhail, Dr. Decapitator] | |
| 728 | Added stubs and new macro DEVCB_DEVICE_LINE_MEMBER to allow these to | |
| 729 | be referenced from device callbacks. [Aaron Giles] | |
| 590 | 730 | |
| 591 | [cb2001] added 2 new opcodes [robiza] | |
| 731 | Modernized the 6522 VIA device: [Aaron Giles] | |
| 732 | * changed to use the new device timer mechanism | |
| 733 | * removed all trampolines in favor of modern methods | |
| 592 | 734 | |
| 593 | Hooked up Gondomania I8751 MCU [Bryan McPhail, Dr. Decapitator] | |
| 735 | ssv: removed kludge for sprite x offset and implemented 1 bit of 7a-7b | |
| 736 | register [Roberto Zandona'] | |
| 594 | 737 | |
| 595 | Reimplemented Meikyuu Hunter G I8751 MCU according to schematics | |
| 596 | [Bryan McPhail] | |
| 738 | ssv: | |
| 739 | * implemented y sprite inversion CRT register; | |
| 740 | * added a kludge for dynagear | |
| 741 | * used CRT registers to get the sprite x offset [Roberto Zandona'] | |
| 597 | 742 | |
| 598 | Software list update: [Wilbert Pol] | |
| 599 | - Software list xml files are now read in full such that information | |
| 600 | for clone and parent sets is available. | |
| 601 | - Added validity check to check for existence of parent sets. | |
| 743 | ssv: removed offset values from the init; the offset now are handled | |
| 744 | by the CRT registers [Roberto Zandona'] | |
| 602 | 745 | |
| 603 | ||
| 746 | ssv: | |
| 604 | 747 | |
| 605 | ||
| 748 | C | |
| 606 | 749 | |
| 607 | Added support for Sega 317-5000 decryption (same as 315-5177). | |
| 608 | Reorganised decryption code. [Nicola Salmoria] | |
| 750 | ssv: fixed background disable condition [Roberto Zandona'] | |
| 609 | 751 | |
| 610 | Moved debugging structure away from CPUs only and attached to all | |
| 611 | devices. Debugger now creates one for each device. C++-ified most | |
| 612 | debugger operations to hang off the debugging class, and updated | |
| 613 | most callers. [Aaron Giles] | |
| 752 | New build tool makedep.c, derived from src2html.c (really!). Does | |
| 753 | basic dependency analysis and supports excluding paths. [Aaron Giles] | |
| 614 | 754 | |
| 615 | Got rid of cpu_count, cpu_first, cpu_next, etc. as they were badly | |
| 616 | broken. Also removed cpu_is_executing, cpu_is_suspended, | |
| 617 | cpu_get_local_time, and cpu_abort_timeslice. [Aaron Giles] | |
| 755 | Makefile now supports a depend target which will run makedep on the | |
| 756 | src/$(TARGET) tree and create dependencies. It deliberately excludes | |
| 757 | the root of src/emu as well as the osd directories in order to keep | |
| 758 | the dependency file down to a reasonable size, so if a core header | |
| 759 | file changes, you still need to clean and build all. [Aaron Giles] | |
| 618 | 760 | |
| 619 | Software list improvements: [Miodrag Milanovic] | |
| 620 | - Support for multiple software list per driver | |
| 621 | - Added MDRV_SOFTWARE_LIST_COMPATIBLE_ADD for adding compatible | |
| 622 | software lists (for documentation purposes) [Miodrag Milanovic] | |
| 623 | - listsoftware option now return only original software lists | |
| 624 | - UI is updated to enable mounting software items per device, it | |
| 625 | will display only items from list that are for specific device | |
| 626 | - Separate compatible software lists in UI | |
| 761 | CHDMAN: improved -extractcd bin/cue output, improved error handling. | |
| 762 | [R. Belmont] | |
| 627 | 763 | |
| 764 | Added memory interface to the intelfsh device so you can access/view | |
| 765 | the data in the debugger and via the standard memory interfaces. | |
| 766 | Removed the old memory() method in favor of new functions | |
| 767 | read_raw()/write_raw() which do direct reads/writes of the data. | |
| 768 | [Aaron Giles] | |
| 628 | 769 | |
| 770 | Cleaned up CPS3 No-CD sets to break up the "ROMs" into individual | |
| 771 | flash pieces which are automatically loaded by the intelfsh device on | |
| 772 | initialization. Also split the MACHINE_CONFIG to only populate the | |
| 773 | number of SIMMs actually present for each game, as documented in the | |
| 774 | top of the file. And replaced the NVRAM_HANDLER with an NVRAM device. | |
| 775 | [Aaron Giles] | |
| 629 | 776 | |
| 777 | CHDMAN: support for .WAV tracks in bin/cue images [R. Belmont] | |
| 778 | ||
| 779 | neogeo.c: misc updates [Johnboy] | |
| 780 | * viewpoint - Renamed v's to correct chip label | |
| 781 | * ghostlop - Renamed roms to match proto naming sheme | |
| 782 | * savagere, kizuna - Added correct c1 | |
| 783 | * crsword - Tagged MVS AND AES VERSION, added correct m1 | |
| 784 | * legendos - Added correct m1 | |
| 785 | ||
| 786 | Triple Punch/Knock Out AY-3-8910 clock speed was incorrect, fixed and | |
| 787 | verified from real hardware. [plgDavid] Verified clocks and oki pin on | |
| 788 | quiz channel question boardset. [plgDavid] | |
| 789 | ||
| 790 | Added an integral device_timer_id to device timers. This is a cleaner | |
| 791 | way to differentiate between multiple timers rather than relying on | |
| 792 | the pointers. These values are also saved with the timers. Updated the | |
| 793 | few devices using device timers to leverage this. [Aaron Giles] | |
| 794 | ||
| 795 | Added new function device_timer_call_after_resynch() which creates a | |
| 796 | temporary 0-length timer that calls back through the device's | |
| 797 | device_timer() method with a given device_timer_id. [Aaron Giles] | |
| 798 | ||
| 799 | Added a function to change the MSM5205 frequency dynamically | |
| 800 | [Angelo Salese] | |
| 801 | ||
| 802 | Added a set volume function for CD-DA [Angelo Salese] | |
| 803 | ||
| 804 | ||
| 805 | ||
| 630 | 806 | New games added or promoted from NOT_WORKING status |
| 631 | 807 | --------------------------------------------------- |
| 632 | Slap Fight (set 1) [Phil Bennett, Dr. Decapitator] | |
| 633 | Alcon [Phil Bennett, Dr. Decapitator] | |
| 808 | Shinobi / FZ-2006 (Korean System 16 bootleg) | |
| 809 | (ISG Selection Master Type 2006) [Anonymous] | |
| 810 | Poker Master (Tony-Poker V3.A, hack?) | |
| 811 | [David Haywood, William Ostronic] | |
| 634 | 812 | |
| 635 | 813 | |
| 636 | 814 | |
| 637 | 815 | New clones added |
| 638 | 816 | ---------------- |
| 639 | The King of Fighters '98 - The Slugfest / | |
| 640 | King of Fighters '98 - dream match never ends (Korean board 2) | |
| 641 | [Johnboy] | |
| 642 | Looping (Video Games GMBH) [Andrew Welburn] | |
| 643 | Defend the Terra Attack on the Red UFO (Artic) [The Dumping Union] | |
| 644 | Crazy Kong (Falcon?) [Fred O.] | |
| 645 | Exciting Animal Land Jr. (USA) [Smitdogg, The Dumping Union] | |
| 646 | American Soccer [Kevin Eshbach] | |
| 647 | Virtua Striker 2 '99 (Revision B) [Guru] | |
| 648 | Fire Trap (Japan) [Guru] | |
| 649 | Marvel Vs. Capcom: Clash of Super Heroes (USA 971222) [Razoola] | |
| 650 | Raiden DX (UK) [Irongiant] | |
| 651 | Boggy '84 (original Kaneko) [Klaus Sommer, Team Europe, The Dumping Union] | |
| 652 | Exerizer (Japan) [N. Francfort, blib, Smitdogg, The Dumping Union] | |
| 817 | Vigilante (World, set 2) [porchy] | |
| 818 | Sega Rally Championship (Revision B) [Alex's Blog] | |
| 819 | Touchmaster 2000 Plus (v4.63 Standard) | |
| 820 | [Brian Troha, The Dumping Union] | |
| 821 | Touchmaster 4000 (v6.01 Standard) [Brian Troha, The Dumping Union] | |
| 653 | 822 | |
| 654 | 823 | |
| 655 | 824 | |
| 656 | 825 | New games marked as GAME_NOT_WORKING |
| 657 | 826 | ------------------------------------ |
| 658 | Quizard (1.7) [ANY, The Dumping Union, Harmony] | |
| 659 | Quizard (2.2) [ANY, The Dumping Union, Harmony] | |
| 660 | Quizard (3.2) [ANY, The Dumping Union, Harmony] | |
| 661 | Quizard Rainbow (4.1) [ANY, The Dumping Union, Harmony] | |
| 662 | Model Racing Shooting Game (unknown title) | |
| 663 | [Luigi, Volker Hann, Team Europe] | |
| 664 | Out Run 2 (Rev. A) [GDX-0004A] [Team Europe, The Dumping Union, Alex] | |
| 827 | Jubilee Double-Up Poker [Roberto Fresca] | |
| 828 | Piccolo Poker [Roberto Fresca, Team Europe & Housi] | |
| 829 | Crisis Zone (CSZO2 Ver. A) [Guru] | |
| 830 | Soul Calibur 2 (SC22 Ver. A) [Guru] | |
| 831 | White Tiger [Palindrome] | |
| 832 | Swiss Poker ('50 SG-.10', V2.5) | |
| 833 | [Roberto Fresca, Tomasz Slanina, Team Europe & Housi] | |
| 834 | Movie Card [Roberto Fresca, Team Europe & Housi] | |
| 835 | Maximum Speed [Guru] | |
| 665 | 836 | |
| 666 | 837 | |
| 667 | 838 | |
| 668 | 0.13 | |
| 839 | 0.139u2 | |
| 669 | 840 | ------- |
| 670 | 841 | |
| 671 | IMPORTANT NOTE: The way devices are handled internally in MAME has changed | |
| 672 | significantly. There are likely to be short-term compatibility and | |
| 673 | performance effects. Please report any errors or *significant* performance | |
| 674 | decreases (>20%) to mametesters.org. Full documentation on the new | |
| 675 | device handling is in progress at | |
| 676 | http://mamedev.org/devwiki/index.php/MAME_Device_Basics | |
| 677 | 842 | |
| 678 | ||
| 679 | ||
| 680 | 843 | MAMETesters Bugs Fixed |
| 681 | 844 | ---------------------- |
| 682 | - 03878: [Crash/Freeze] mimonscr: Hangs at Post (Tafoid) | |
| 683 | - 02362: [Speed] block: Ball speed is erratic. (hap) | |
| 684 | - 03579: [Crash/Freeze] rbibb, rbibba, vsskykid: Severe graphic | |
| 685 | corruption/Access Voilation (Fabio Priuli) | |
| 686 | - 01839: [Color/Palette] battlex: Incorrect colors and/or palette (Tafoid) | |
| 687 | - 03747: [Graphics] ckong: One pixel gap is missing between Kong and | |
| 688 | level (hap) | |
| 689 | - 03866: [Graphics] prehisle, prehisleu, gensitou: Lack of graphics | |
| 690 | (David Haywood) | |
| 845 | - 02449: [Graphics] lethalen: Can't find the flip bits used for the | |
| 846 | tiles.. (p2 start screen, reload indicator). | |
| 847 | - 04026: [Graphics] combatscb: Experiences various graphics glitches. | |
| 848 | (robiza) | |
| 849 | - 01215: [Crash/Freeze] combatscb: Crashes on level 3 and experiences | |
| 850 | various graphics glitches. | |
| 851 | - 00229: [Color/Palette] truxton: The background colour on the title | |
| 852 | screen of Truxton should be green. (robiza) | |
| 853 | - 00949: [Graphics] outzone: In stage 6 there are two blank box on the | |
| 854 | background. (robiza) | |
| 855 | - 03203: [Misc.] All sets in docastle.c and mrdo.c: Unable to enter | |
| 856 | Service Mode (Phil Bennett) | |
| 857 | - 04009: [Save/Restore] pacland and clones: Reload of state cause game | |
| 858 | issues (Phil Bennett) | |
| 859 | - 03858: [Graphics] batsugun, batsuguna, batsugunsp, dogyuun: tiles/ | |
| 860 | tiles and tiles/sprites priorities problems (David Haywood) | |
| 861 | - 03718: [Crash/Freeze] shdancer: Freeze on stage 2-4 (Phil Bennett) | |
| 862 | - 03881: [Crash/Freeze] minefld, rescue, aponow: Hangs at Post | |
| 863 | (Phil Bennett) | |
| 864 | - 03961: [Crash/Freeze] racedriv and clones: Game resets itself before | |
| 865 | game start (Phil Bennett) | |
| 866 | - 04006: [Graphics] fixeightb: Graphic glitches (David Haywood) | |
| 867 | - 03755: [Sound] soldivid: No music after loading savestate | |
| 868 | (or -autosave) (Phil Bennett) | |
| 869 | - 03820: [Save/Restore] batlbubl, bangball: Using -autosave causes | |
| 870 | audio to malfunction (Phil Bennett) | |
| 871 | - 04004: [Graphics] pballoon: Screen is shifted left. (David Haywood) | |
| 872 | - 03986: [DIP/Input] All sets in enigma2.c: Most Dip Switches no longer | |
| 873 | function (Phil Bennett) | |
| 874 | - 03730: [Save/Restore] parodius: The game freeze or reboot when using | |
| 875 | -autosave/save state (Phil Bennett) | |
| 876 | - 04001: [Save/Restore] All sets in mappy.c: Reload of state causes | |
| 877 | audio corruption (Phil Bennett) | |
| 878 | - 03994: [Save/Restore] All sets in dcheese.c: Reload of state causes | |
| 879 | audio corruption (Phil Bennett) | |
| 880 | - 03992: [Save/Restore] btoads: Reload of state cause major graphic | |
| 881 | corruption (Phil Bennett) | |
| 882 | - 03991: [Save/Restore] bigevglf : Reload of state cause audio | |
| 883 | corruption (Phil Bennett) | |
| 884 | - 03993: [Save/Restore] All sets in crshrace.c: Reload of state cause | |
| 885 | loss of audio (Phil Bennett) | |
| 886 | - 03989: [Save/Restore] asterix and clones: Reload of state causes loss | |
| 887 | of audio (Phil Bennett) | |
| 888 | - 03998: [Documentation] bmiidx3: Game name description. (M.A.S.H.) | |
| 889 | - 03978: [DIP/Input] cyclshtg, bronx: Dipswitches are wrong (stephh) | |
| 890 | - 03988: [Save/Restore] ace: Reload of state causes a graphic problem | |
| 891 | (hap) | |
| 892 | - 03996: [Crash/Freeze] All games in taito_x.c: Crash before OK | |
| 893 | (Atari Ace) | |
| 691 | 894 | |
| 692 | 895 | |
| 693 | 896 | |
| 694 | 897 | Source Changes |
| 695 | 898 | -------------- |
| 696 | A small update for the YM2610 core, which resets the PCM and Delta-T | |
| 697 | memory regions when the chip is reset. This is needed for MESS, where | |
| 698 | being able to change the size and existence of the sample regions on | |
| 699 | the Neo Geo AES is necessary for the sound to work right, especially | |
| 700 | for games that don't have a specific Delta-T region. [Barry Rodewald] | |
| 899 | Added sound support to Signetics S2636 (by using VC4000 sound support | |
| 900 | from MESS). Hooked up sound to Malzak, Galaxia and Astro Wars | |
| 901 | [Mariusz Wojcieszek] | |
| 701 | 902 | |
| 702 | Increased number of coinslots to 12, and tilt inputs to 4, required by | |
| 703 | in-progress gambling driver [David Haywood] | |
| 903 | Corrected rom names for Raiden Fighters 2 (Asia, Metrotainment | |
| 904 | License) set based on pcb pictures [Lord Nightmare, Tormod] | |
| 704 | 905 | |
| 705 | Fixed various hangs and NVRAM init in the Model 2 driver | |
| 706 | [Angelo Salese] | |
| 906 | Hooked up S2636 sound to zac2650.c [Mariusz Wojcieszek] | |
| 707 | 907 | |
| 708 | Add partial decrypt function for vortex (0x0000-0x1FFF is decrypted | |
| 709 | properly, 0x4000-0x5FFF is probably not), still much work to be done | |
| 710 | especially regarding memory maps (which are affected by the epoxy | |
| 711 | block address inverts as well). [Lord Nightmare, The Dumping Union] | |
| 908 | seibuspi.c: Fixes the "FIX" graphics load. May require specific ENDIAN | |
| 909 | to work on all platforms. Both new Asian sets now work correctly. | |
| 910 | [Brian Troha] | |
| 712 | 911 | |
| 713 | Fixed a warning in Visual Studio 2010 that was introduced by a | |
| 714 | previous commit. [Oliver Stoneberg] | |
| 912 | seibuspi.c: Add default EEPROM to the Raiden Fighters Jet (US, Single | |
| 913 | Board) set so it will boot correctly the first time run. [Brian Troha] | |
| 715 | 914 | |
| 716 | Added some missing static qualifiers to MAME. Also, renamed some | |
| 717 | generically named exports from segaic16.c. [Atari Ace] | |
| 915 | Removed several exported non-const global variables from the core | |
| 916 | [Atari Ace] | |
| 718 | 917 | |
| 719 | batsugun: fixed layer-layer priorities; sprite-sprite priorities are | |
| 720 | wrong [robiza] | |
| 918 | nycaptor, colt, cyclshtg, bronx (nycaptor.c) [stephh] : | |
| 919 | * Fixed Dip Switches and Inputs (after verification of the Z80 code) | |
| 721 | 920 | |
| 722 | dogyuun: fixed layer-layer priorities; sprite priorities are wrong | |
| 723 | [robiza] | |
| 921 | Golden Poker driver: Fixed tilemap issues with games using 60Hz/50Hz | |
| 922 | modes, selectable through DIP switches. [Roberto Fresca] | |
| 724 | 923 | |
| 725 | hal21: cabinet DIPSW was reversed btlfield: DIAL was used instead of | |
| 726 | rotary joystick [/SftiKDL0] | |
| 924 | Added support for 'Genie'. An old magic-lamp themed game from Video | |
| 925 | Fun Games Ltd. [Roberto Fresca] | |
| 926 | * Decoded graphics and colors. | |
| 927 | * Accurate inputs. | |
| 928 | * Discrete sound. | |
| 929 | * Default NVRAM support. | |
| 930 | Xtal, CPU clock, and some discrete components values need to be | |
| 931 | checked from PCB. | |
| 727 | 932 | |
| 728 | namconb1.c: Replaced sound data rom for the Point Blank sets that was | |
| 729 | incorrectly dumped. The new dump has been verified on 3 different | |
| 730 | PCBs. [Guru, Smitdogg, The Dumping Union] | |
| 933 | Changed Noraut Joker Poker (Prologic HW) manufacturer to Video Fun | |
| 934 | Games Ltd. [Roberto Fresca] | |
| 731 | 935 | |
| 732 | kongambl.c updates: [R. Belmont] | |
| 733 | * Mapped ROMs correctly to processors | |
| 734 | * Started mapping out Konami customs | |
| 735 | * EEPROM hooked up | |
| 936 | Added save-state support to the K053260 sound core [Phil Bennett] | |
| 736 | 937 | |
| 737 | lordgun.c update [Luca Elia] | |
| 738 | * Implemented RAM based priorities | |
| 739 | * Added multi-sprite, fixed sprite list end | |
| 740 | * Corrected tilemap 2 size (wrong backgrounds in the final stage) | |
| 741 | * Fixed crosshair position | |
| 938 | Added save-state support to the MSM5232 sound core [Phil Bennett] | |
| 742 | 939 | |
| 743 | chdman/cdrom updates: [R. Belmont] | |
| 744 | * CDRWIN .bin/.cue images now supported for both input and output | |
| 745 | * Pregap and postgap information is now preserved in the format | |
| 746 | * Output of CDRDAO images is significantly improved | |
| 747 | Existing CHD-CDs will continue to work fine and for data-only discs no | |
| 748 | action needs to be taken. For mixed data/audio discs (e.g. analog | |
| 749 | 573/Bemani games) they should be re-converted for better preservation. | |
| 940 | Converted TLC34076 to a device [Phil Bennett] | |
| 750 | 941 | |
| 751 | kongambl: Support unpaged 056832 VRAM access [R. Belmont] | |
| 942 | Cleaned up toaplan2 driver and converted it to use driver_data | |
| 943 | [Atari Ace] | |
| 752 | 944 | |
| 753 | ||
| 945 | M | |
| 754 | 946 | |
| 755 | Documented Drive I/O BD commands in Rail Chase 2 [Angelo Salese] | |
| 947 | Hooked up some quick and dirty video routine to Aristocrat Mk-5 | |
| 948 | [Angelo Salese] | |
| 756 | 949 | |
| 757 | Added a new cycle exact VMS interface to TMS5110 emulating M0, M1 and | |
| 758 | ADD1 to ADD8 lines. Added TMS6100 memory controller device. Also added | |
| 759 | TMSPROM device emulating bagman and ad2083 prom controlled speech | |
| 760 | logic. Switched bagman, ad2083 (scramble.c) and radarscp1 to use the | |
| 761 | new interface and devices. [Couriersud] | |
| 950 | Acorn Archimedes / Aristocrat MK-5: Added Force IRQ/FIRQ hook-up and | |
| 951 | hooked up an undefined behaviour for a timer check, fixes CPU check | |
| 952 | during POST [Angelo Salese] | |
| 762 | 953 | |
| 763 | buggychl: Improved sky, the in-game foreground statusbar and | |
| 764 | speedometer don't clip it anymore, and it's a gradient of | |
| 765 | azure->turquoise now instead of azure->black. [hap] | |
| 954 | Implemented I2C accesses to the Acorn Archimedes / Aristocrat MK-5 HW, | |
| 955 | fixing SRAM check [Angelo Salese] | |
| 766 | 956 | |
| 767 | Moved tms6100 code into emu/machine/tms6100.[ch]. Added pinouts for | |
| 768 | TMS6100 and M58819. [Couriersud] | |
| 957 | Added clock read-back register to the I2C device [Angelo Salese] | |
| 769 | 958 | |
| 770 | Added palette DAC handling, reel layers and removed NMI patch in Lucky | |
| 771 | Girl (Z180 HW) [David Haywood] | |
| 959 | Fixed the Sound DMA in Acorn Archimedes / Aristocrat MK-5, adding | |
| 960 | sound support to the drivers [Angelo Salese] | |
| 772 | 961 | |
| 773 | Added clock information and timing from schematics to bagman.c | |
| 774 | Improved interrupt timing and handling to follow schematics. | |
| 775 | [Couriersud] | |
| 962 | Add IC pinout to VLM5030 driver. Still need translation of the | |
| 963 | datasheet for VCU, RST (which does more than just reset) and MTE. | |
| 964 | [Lord Nightmare] | |
| 776 | 965 | |
| 777 | SDL: remove problematic live render type toggle and default OS X to | |
| 778 | OpenGL [R. Belmont] | |
| 966 | Added sound hook-up to the Erotictac HW, sound doesn't yet work due of | |
| 967 | missing memory management hook-up [Angelo Salese] | |
| 779 | 968 | |
| 780 | Hooked up basic Drive i/o board CPU in Sega Rally [Guru, Angelo | |
| 781 | Salese] | |
| 969 | Added 2KHz timer to Aristocrat MK-5 HW [Angelo Salese] | |
| 782 | 970 | |
| 783 | Adjusted default volumes to normalize audio and better present the | |
| 784 | original output for bagman.c [Tafoid] | |
| 971 | Attempt to fix reported GCC 4.5 problems [R. Belmont] | |
| 785 | 972 | |
| 786 | Fixed dips in Dragon World [Luca Elia] | |
| 973 | Fixed a fatal bug in MEMC handling and removed the mapping kludge for | |
| 974 | Aristocrat MK-5 [Angelo Salese] | |
| 787 | 975 | |
| 788 | Fixed NVRAM handling in Diamond Derby [Angelo Salese] | |
| 976 | Improved video emulation to the Aristocrat MK-5, added bare-bones VIDC | |
| 977 | DMA transfer and timings, added 8bpp mode [Angelo Salese] | |
| 789 | 978 | |
| 790 | Convert 7474 handlers to (READ|WRITE)_LINE_DEVICE_HANDLERS. | |
| 791 | [Couriersud] | |
| 979 | Added save-state support to the YMF278B core [Phil Bennett] | |
| 792 | 980 | |
| 793 | Added macros for inline device handler initialization to devcb.h. | |
| 794 | [Couriersud] | |
| 981 | Rewritten I/O device r/w accesses in Acorn Archimedes/Aristocrat MK-5 | |
| 982 | [Angelo Salese] | |
| 795 | 983 | |
| 796 | Changed 7474 to only use devcb callbacks and handlers. Updated game | |
| 797 | drivers. [Couriersud] | |
| 984 | Added missing save-state registration entries to the SH-2 core | |
| 985 | [Phil Bennett] | |
| 798 | 986 | |
| 799 | X2212 now uses device template. Also changed all handlers to use devcb | |
| 800 | prototypes. Default nvram contents should be in region named same like | |
| 801 | device tag. Hooked up X2212 in starwars. [Couriersud] | |
| 987 | Converted address_space to a class, and moved most members behind | |
| 988 | accessor methods, apart from space->machine and space->cpu. Removed | |
| 989 | external references to 8le/8be/16le/16be/32le/32be/64le/64be. All | |
| 990 | external access is now done via virtual functions | |
| 991 | read_byte()/read_word()/etc. Moved differentiation between the | |
| 992 | endianness and the bus width internal to memory.c, and also added a | |
| 993 | new axis to support small/large address spaces, which allows for | |
| 994 | faster lookups on spaces smaller than 18 bits. [Aaron Giles] | |
| 802 | 995 | |
| 803 | Basic M6502 hook-up in Royal Gum [David Haywood] | |
| 996 | Provided methods for most global memory operations within the new | |
| 997 | address_space class. Updated callers to use these instead of the | |
| 998 | old global functions. [Aaron Giles] | |
| 804 | 999 | |
| 805 | Moved Miracle Derby inside homedata.c driver [David Haywood] | |
| 1000 | Created new module delegate.h which implements C++ delegates in a form | |
| 1001 | that works for MAME. Details are in the opening comment. Delegates | |
| 1002 | allow member functions of certain classes to be used as callbacks, | |
| 1003 | which will hopefully be the beginning of the end of fetching the | |
| 1004 | driver_data field in most callbacks. All classes that host delegates | |
| 1005 | must derive from bindable_object. Today, all devices and driver_data | |
| 1006 | do implicitly via their base class. [Aaron Giles] | |
| 806 | 1007 | |
| 807 | Removed r5h01_config. Memory region now has to have same tag as r5h01 | |
| 808 | device. Update playch10 driver. [Couriersud] | |
| 1008 | Added an alternate set of address map macros. Now, if you #define | |
| 1009 | ADDRESS_MAP_MODERN prior to #including "emu.h", you will get the new | |
| 1010 | macros, which have the following properties: [Aaron Giles] | |
| 1011 | * ADDRESS_MAP_START takes a 4th parameter, which is the name of the | |
| 1012 | driver_data class the other macros will reference | |
| 1013 | * AM_READ/AM_WRITE/etc. all assume you are providing method names off | |
| 1014 | of the driver_data class you originally specified | |
| 1015 | * AM_READ_LEGACY/AM_WRITE_LEGACY macros are provided for calling | |
| 1016 | global static functions of yore | |
| 1017 | * AM_BASE/AM_SIZE all assume you are providing member names off of | |
| 1018 | the driver_Data class | |
| 1019 | * AM_BASE_LEGACY/AM_SIZE_LEGACY are provided to reference globals if | |
| 1020 | necessary | |
| 809 | 1021 | |
| 810 | Addd documentation about tms5110 prom interface used by bagman and | |
| 811 | ad2083. [Couriersud] | |
| 1022 | Defined delegates for read/write handlers. The new delegates are | |
| 1023 | always passed an address_space reference, along with offset, data, and | |
| 1024 | mask. Delegates can refer to methods either in the driver_data class | |
| 1025 | or in a device class. To specify a delegate in an address map, you | |
| 1026 | must #define ADDRESS_MAP_MODERN before including emu.h, at which | |
| 1027 | point the AM_READ/AM_WRITE macros will require member function pointers | |
| 1028 | into your driver_data class. Delegates that are specified in an address | |
| 1029 | map are proto-delegates which have no object; they are bound to their | |
| 1030 | object when the corresponding address_space is created. [Aaron Giles] | |
| 812 | 1031 | |
| 813 | SDLMAME now compiles against SDL 1.3 up to HG rev 4464. Everything | |
| 814 | beyond that revision is completely broken since Sam ripped out | |
| 815 | multi-keyboard and multi-mice support. Further information in | |
| 816 | README_SDL13.txt [Couriersud] | |
| 1032 | Added machine->m_nonspecific_space which can be passed as the required | |
| 1033 | address_space parameter to the new read/write methods in legacy | |
| 1034 | situations where the space is not provided. Eventually this can go | |
| 1035 | away but we will need it for a while yet. [Aaron Giles] | |
| 817 | 1036 | |
| 818 | Splitted the ST-V protection handlings by per-game [Angelo Salese] | |
| 1037 | Added methods to the new address_space class to dynamically install | |
| 1038 | delegates just like you can dynamically install handlers today. | |
| 1039 | Delegates installed this way must be pre-bound to their object. | |
| 1040 | [Aaron Giles] | |
| 819 | 1041 | |
| 820 | Added proper RTC support to the ST-V driver [Angelo Salese] | |
| 1042 | Moved beathead's read/write handlers into members of beathead_state as | |
| 1043 | an example of using the new delegates. This provides examples of both | |
| 1044 | static (via an address_map) and dynamic (via install_handler calls) | |
| 1045 | mapping using delegates. [Aaron Giles] | |
| 821 | 1046 | |
| 822 | pcat_nit.c update [Mariusz Wojcieszek] | |
| 823 | * added VGA emulation from MESS | |
| 824 | * added INS8250 emulation from MESS | |
| 825 | * added format decimal support to Microtouch | |
| 826 | * added rom banking and inputs to pcat_nit games | |
| 827 | * streetg(2) now boot properly | |
| 1047 | Changed the DIRECT_UPDATE_CALLBACKs into delegates as well. Updated | |
| 1048 | all users to the new function format. Added methods on | |
| 1049 | direct_read_data for configuring the parameters in a standard way to | |
| 1050 | make the implementation clearer. Updated all users. [Aaron Giles] | |
| 828 | 1051 | |
| 829 | Moved some common PC code to machine/pcshare.c [Mariusz Wojcieszek] | |
| 1052 | Created a simple_list template container class for managing the common | |
| 1053 | singly-linked lists we use all over in the project. [Aaron Giles] | |
| 830 | 1054 | |
| 831 | vsnes.c: Reworked VROM banking to avoid pointing beyond the last | |
| 832 | bank. Also, changed the use of memory_set_bankptr into | |
| 833 | memory_set_bank. [Fabio Priuli] | |
| 1055 | Replaced "const address_space" with "address_space" throughout the | |
| 1056 | system. The purpose of making it const before was to discourage direct | |
| 1057 | tampering, but private/protected does a better job of that anyhow, | |
| 1058 | and it is annoying now. [Aaron Giles] | |
| 834 | 1059 | |
| 835 | Add Bonus Life dipswitches to Moon War (prototype on frenzy hardware) | |
| 836 | [Lord Nightmare, stephh] | |
| 1060 | neodrvr.c updates: [Johnboy] | |
| 1061 | * Renamed the following sets: sengokh -> sengokuh, fatfursa -> | |
| 1062 | fatfurspa, shocktra -> shocktroa kof99 -> kof99h, kof99a -> kof99 | |
| 1063 | * Removed wh2j (only diff. C-ROM arrangement; same data) | |
| 1064 | * Added correct m1 to sengoku3 | |
| 1065 | * Corrected ROM_REGION "maincpu" for . twinspri, ghostlop, aof2, | |
| 1066 | aof2a, fightfev, fightfeva | |
| 1067 | * Added correct p1 ROM to irrmaze | |
| 837 | 1068 | |
| 838 | Improvements to Lucky Girl (newer Z80 based hardware): | |
| 839 | [Roberto Fresca] | |
| 840 | * Improved the input system, added missing buttons. | |
| 841 | * Figured out the full coinage DIP switches. (Coins A, B, C, Key In) | |
| 842 | * Found and documented the output ports. | |
| 843 | * Added full lamps support. | |
| 844 | * Created a new button-lamps layout. | |
| 845 | * Hooked the coin and key in counters. | |
| 846 | * Added technical notes. | |
| 847 | * Figured out the following DIP switches: | |
| 848 | * Auto Hold (No / Yes) | |
| 849 | * Game Type (Hold Game / Discard Game). | |
| 850 | * Adult Content (No / Yes). | |
| 851 | * Minimal Winning Hand (Jacks or Better / 2 Pairs). | |
| 852 | * Minimum Bet (1 / 5). | |
| 853 | * Double-Up (Normal / Poker / Bingo / No D-Up). | |
| 1069 | Changed GP9001 (toaplan VDP device) to use DEVICE_SELF [David Haywood] | |
| 854 | 1070 | |
| 855 | Massive Space Invaders related comment update, documenting various | |
| 856 | sets, and the various Taito PCBs used by Space Invaders/Tabletop | |
| 857 | SI/Tabletop SI Color/Tabletop SI II/etc. | |
| 858 | [Andrew Welburn, Lord Nightmare] | |
| 1071 | Added 3 Bags Full - 5VXFC790 (Victorian). Set is now parent. Replaced | |
| 1072 | the bad dumped GFX from NZ set with the new ones, since they match 4 | |
| 1073 | of 6 bitplanes. [Roberto Fresca] | |
| 859 | 1074 | |
| 860 | Hooked up color prom in Kick Boy [Angelo Salese] | |
| 1075 | Improvements to calomega.c driver [Roberto Fresca] | |
| 1076 | * Added Game 24.0 (Gaming Draw Poker, hold). The game is playable. | |
| 1077 | * Added missing 50/60Hz output frequency selector to systems 903-905. | |
| 1078 | However, I dunno how it looks physically (switch/jumper/bridge?) | |
| 1079 | * Injected missing start and NMI vectors to comg080 (Arcade Black | |
| 1080 | Jack), from an exhaustive program ROM analysis / reverse | |
| 1081 | engineering. The game now starts ok and is triggering proper | |
| 1082 | NMI's. | |
| 1083 | * Inputs from the scratch for comg080 (Arcade Black Jack). | |
| 1084 | * Added workaround to pass the vector-check protection. | |
| 1085 | * Reworked the lamps circuitry by system-basis. | |
| 1086 | * Updated games list and technical notes. | |
| 1087 | * Promoted comg080 (Arcade Black Jack) to working state. | |
| 1088 | * Added support for system 906III: | |
| 1089 | * Accurate memory map, CRTC, and PIAs mapped. | |
| 1090 | * Preliminary PIAs support (no multiplexion yet). | |
| 1091 | * Added proper machine driver, with correct R65C02 CPU. | |
| 1092 | * Documented the hardware specs. | |
| 1093 | * Added Game 51.08 (CEI Video Poker, Jacks or Better), running in CEI | |
| 1094 | 906III hardware. The game is not working. | |
| 861 | 1095 | |
| 862 | ||
| 1096 | Vari | |
| 863 | 1097 | |
| 864 | downcast<type>(value) should be used for safe and efficient | |
| 865 | downcasting from a base class to a derived class. It wraps | |
| 866 | static_cast<> by adding an assert that a matching dynamic_cast<> | |
| 867 | returns the same result in debug builds. | |
| 1098 | Improvements to CEI 906 III system. [Roberto Fresca] | |
| 1099 | * Corrected docs about the 906III memory map. | |
| 1100 | * Mapped the AY8912. | |
| 1101 | * Added AY8912 proper interfase. Tied SW2 to AY8912 port. | |
| 1102 | * PIA0, portA is polled constantly. Tied some debug handlers to | |
| 1103 | understand how the input system works. | |
| 1104 | * Added notes about the PIAs R/W. | |
| 868 | 1105 | |
| 869 | crosscast<type>(value) should be used for safe casting from one type | |
| 870 | to another in multiple inheritance scenarios. It compiles to a | |
| 871 | dynamic_cast<> plus an assert on the result. Since it does not | |
| 872 | optimize down to static_cast<>, you should prefer downcast<> over | |
| 873 | crosscast<> when you can. | |
| 1106 | Clear Z80 DART interrupts at constructor time. [Curt Coder] | |
| 874 | 1107 | |
| 875 | Redefined running_device to be a proper C++ class (now called | |
| 876 | device_t). Same for device_config (still called device_config). All | |
| 877 | devices and device_configs must now be derived from these base | |
| 878 | classes. This means each device type now has a pair of its own unique | |
| 879 | classes that describe the device. Drivers are encouraged to use the | |
| 880 | specific device types instead of the generic running_device or | |
| 881 | device_t classes. Drivers that have a state class defined in their | |
| 882 | header file are encouraged to use initializers off the constructor to | |
| 883 | locate devices. [Aaron Giles] | |
| 1108 | Imported the Hitachi HCD62121 CPU core from MESS. [Curt Coder] | |
| 884 | 1109 | |
| 885 | Removed the following fields from the device and device configuration | |
| 886 | classes as they never were necessary or provided any use: device | |
| 887 | class, device family, source file, version, credits. [Aaron Giles] | |
| 1110 | crospang, heuksun, bestri (crospang.c) [stephh] : | |
| 1111 | * Improved Dip Switches (after verification of the M68000 code) | |
| 888 | 1112 | |
| 889 | Added templatized variant of machine->device() which performs a | |
| 890 | downcast as part of the device fetch. Thus | |
| 891 | machine->device<timer_device>("timer") will locate a device named | |
| 892 | "timer", downcast it to a timer_device, and assert if the downcast | |
| 893 | fails. [Aaron Giles] | |
| 1113 | Expanded the Z80-DART interface to allow future implementation of | |
| 1114 | Z80-SIO features: [Curt Coder] | |
| 1115 | * added separate clock inputs for channel B | |
| 1116 | * added SYNC inputs/outputs for both channels | |
| 894 | 1117 | |
| 895 | Removed most publically accessible members of running_device/device_t | |
| 896 | in favor of inline accessor functions. The only remaining public | |
| 897 | member is machine. Thus all references to device->type are now | |
| 898 | device->type(), etc. [Aaron Giles] | |
| 1118 | Toaplan2: Attempted to implement dual VDP mixing with the equations | |
| 1119 | provided by Quench, doesn't yet work [David Haywood] | |
| 899 | 1120 | |
| 900 | Created a number of device interface classes which are designed to be | |
| 901 | mix- ins for the device classes, providing specific extended | |
| 902 | functionality and information. There are standard interface classes | |
| 903 | for sound, execution, state, nvram, memory, and disassembly. Devices | |
| 904 | can opt into 0 or more of these classes. [Aaron Giles] | |
| 1121 | added correct GFX roms for Gang Wars, renamed bootleg set as Euro set | |
| 1122 | (and new parent),made note about bootleg GFX roms [David Raingeard] | |
| 905 | 1123 | |
| 906 | Converted the classic CPU device to a standard device that uses the | |
| 907 | execution, state, memory, and disassembly interfaces. Used this new | |
| 908 | class (cpu_device) to implement the existing CPU device interface. In | |
| 909 | the future it will be possible to convert each CPU core to its own | |
| 910 | device type, but for now they are still all CPU devices with a | |
| 911 | cpu_type() that specifies exactly which kind of CPU. [Aaron Giles] | |
| 1124 | Documented unemulated protection in Super Champion Baseball, marked | |
| 1125 | the game with GAME_UNEMULATED_PROTECTION due of that [Angelo Salese] | |
| 912 | 1126 | |
| 913 | Created a new header devlegcy.h which wraps the old device interface | |
| 914 | using some special template classes. To use these with an existing | |
| 915 | device, simply remove from the device header the DEVICE_GET_INFO() | |
| 916 | declaration and the #define mapping the ALL_CAPS name to the | |
| 917 | DEVICE_GET_INFO. In their place #include "devlegcy.h" and use the | |
| 918 | DECLARE_LEGACY_DEVICE() macro. In addition, there is a | |
| 919 | DECLARE_LEGACY_SOUND_DEVICE() macro for wrapping existing sound | |
| 920 | devices into new-style devices, and a DECLARE_LEGACY_NVRAM_DEVICE() | |
| 921 | for wrapping NVRAM devices. Also moved the token and inline_config | |
| 922 | members to the legacy device class, as these are not used in modern | |
| 923 | devices. [Aaron Giles] | |
| 1127 | segaic16.c: Treat unsupported read and write accesses to defined | |
| 1128 | devices/memory as open-bus reads or unmapped writes instead of falling | |
| 1129 | through to the memory-mapping registers [Phil Bennett] | |
| 924 | 1130 | |
| 925 | Converted the standard base devices (VIDEO_SCREEN, SPEAKER, and TIMER) | |
| 926 | from legacy devices to the new C++ style. Also renamed VIDEO_SCREEN to | |
| 927 | simply SCREEN. The various global functions that were previously used | |
| 928 | to access information or modify the state of these devices are now | |
| 929 | replaced by methods on the device classes. Specifically: | |
| 1131 | Added mask-free versions of read_word/read_dword/read_qword to | |
| 1132 | address_space. Also added unaligned variants that can read unaligned | |
| 1133 | values. Rewrote the core handler as a template that handles all cases, | |
| 1134 | along with a simple unit test to verify that everything is correct. | |
| 1135 | [Aaron Giles] | |
| 930 | 1136 | |
| 931 | video_screen_configure() == screen->configure() | |
| 932 | video_screen_set_visarea() == screen->set_visible_area() | |
| 933 | video_screen_update_partial() == screen->update_partial() | |
| 934 | video_screen_update_now() == screen->update_now() | |
| 935 | video_screen_get_vpos() == screen->vpos() | |
| 936 | video_screen_get_hpos() == screen->hpos() | |
| 937 | video_screen_get_vblank() == screen->vblank() | |
| 938 | video_screen_get_hblank() == screen->hblank() | |
| 939 | video_screen_get_width() == screen->width() | |
| 940 | video_screen_get_height() == screen->height() | |
| 941 | video_screen_get_visible_area() == screen->visible_area() | |
| 942 | video_screen_get_time_until_pos() == screen->time_until_pos() | |
| 943 | video_screen_get_time_until_vblank_start() == | |
| 944 | screen->time_until_vblank_start() | |
| 945 | video_screen_get_time_until_vblank_end() == | |
| 946 | screen->time_until_vblank_end() | |
| 947 | video_screen_get_time_until_update() == | |
| 948 | screen->time_until_update() | |
| 949 | video_screen_get_scan_period() == screen->scan_period() | |
| 950 | video_screen_get_frame_period() == screen->frame_period() | |
| 951 | video_screen_get_frame_number() == screen->frame_number() | |
| 1137 | Updated 68k, v60, i86, and nec cores to use unaligned read/ write | |
| 1138 | instead of their own stubs for handling misalinged reads. | |
| 1139 | [Aaron Giles] | |
| 952 | 1140 | |
| 953 | timer_device_adjust_oneshot() == timer->adjust() | |
| 954 | timer_device_adjust_periodic() == timer->adjust() | |
| 955 | timer_device_reset() == timer->reset() | |
| 956 | timer_device_enable() == timer->enable() | |
| 957 | timer_device_enabled() == timer->enabled() | |
| 958 | timer_device_get_param() == timer->param() | |
| 959 | timer_device_set_param() == timer->set_param() | |
| 960 | timer_device_get_ptr() == timer->get_ptr() | |
| 961 | timer_device_set_ptr() == timer->set_ptr() | |
| 962 | timer_device_timeelapsed() == timer->time_elapsed() | |
| 963 | timer_device_timeleft() == timer->time_left() | |
| 964 | timer_device_starttime() == timer->start_time() | |
| 965 | timer_device_firetime() == timer->fire_time() | |
| 1141 | Fixed memory management of ga2 decryption. [Aaron Giles] | |
| 966 | 1142 | |
| 967 | Updated all drivers that use the above functions to fetch the specific | |
| 968 | device type (timer_device or screen_device) and call the appropriate | |
| 969 | method. [Aaron Giles] | |
| 1143 | Fixed Toaplan2 VDP mixing in Batsugun [David Haywood] | |
| 970 | 1144 | |
| 971 | Changed machine->primary_screen and the 'screen' parameter to | |
| 972 | VIDEO_UPDATE to specifically pass in a screen_device object. | |
| 973 | [Aaron Giles] | |
| 1145 | Toaplan2: Removed tile limit hack, not needed now since VDP is mixed | |
| 1146 | properly [David Haywood] | |
| 974 | 1147 | |
| 975 | Defined a new custom interface for the Z80 daisy chain. This interface | |
| 976 | behaves like the standard interfaces, and can be added to any device | |
| 977 | that implements the Z80 daisy chain behavior. Converted all existing | |
| 978 | Z80 daisy chain devices to new-style devices that inherit this | |
| 979 | interface. [Aaron Giles] | |
| 1148 | Correct the rom labels for the atari version of Arabian | |
| 1149 | [The Dumping Union] | |
| 980 | 1150 | |
| 981 | Changed the way CPU state tables are built up. Previously, these were | |
| 982 | data structures defined by a CPU core which described all the | |
| 983 | registers and how to output them. This functionality is now part of | |
| 984 | the state interface and is implemented via the device_state_entry | |
| 985 | class. Updated all CPU cores which were using the old data structure | |
| 986 | to use the new form. The syntax is currently awkward, but will be | |
| 987 | cleaner for CPUs that are native new devices. [Aaron Giles] | |
| 1151 | Cleaned up internal profiler code. [Aaron Giles] | |
| 988 | 1152 | |
| 989 | Converted the okim6295 and eeprom devices to the new model. These were | |
| 990 | necessary because they both require multiple interfaces to operate and | |
| 991 | it didn't make sense to create legacy device templates for these | |
| 992 | single cases. (okim6295 needs the sound interface and the memory | |
| 993 | interface, while eeprom requires both the nvram and memory | |
| 994 | interfaces). [Aaron Giles] | |
| 1153 | All American Football set updates: [Phil Bennett] | |
| 1154 | * aafb: Added missing 03-28008.u93 GFX ROM | |
| 1155 | * aafbb: Marked 24015-02.u59 BAD_DUMP and demoted set to | |
| 1156 | GAME_NOT_WORKING | |
| 995 | 1157 | |
| 996 | Changed parameters in a few callback functions from pointers to | |
| 997 | references in situations where they are guaranteed to never be NULL. | |
| 998 | [Aaron Giles] | |
| 1158 | Declared virtual functions in driver_data_t for: | |
| 1159 | * machine_start, machine_reset | |
| 1160 | * sound_start, sound_reset | |
| 1161 | * palette_init, video_start, video_reset, video_update, video_eof | |
| 1162 | The default implementations of these call through the machine | |
| 1163 | configuration's functions as before. However, if a driver_data_t | |
| 1164 | overrides them, it will be called instead. [Aaron Giles] | |
| 999 | 1165 | |
| 1000 | Removed MDRV_CPU_FLAGS() which was only used for disabling a CPU. | |
| 1001 | Changed it to MDRV_DEVICE_DISABLE() instead. Updated drivers. | |
| 1166 | Also added virtual functions for pre_save() and post_load(), which can | |
| 1167 | be overridden to implement machine driver-specific pre-save/post-load | |
| 1168 | functionality instead of registering with the save state system. | |
| 1002 | 1169 | [Aaron Giles] |
| 1003 | 1170 | |
| 1004 | Reorganized the token parsing for machine configurations. The core | |
| 1005 | parsing code knows how to create/replace/remove devices, but all | |
| 1006 | device token parsing is now handled in the device_config class, which | |
| 1007 | in turn will make use of any interface classes or device-specific | |
| 1008 | token handling for custom token processing. [Aaron Giles] | |
| 1171 | Updated beathead to use these new virtual functions instead of | |
| 1172 | specifying callbacks in the MACHINE_DRIVER. [Aaron Giles] | |
| 1009 | 1173 | |
| 1010 | Moved many validity checks out of validity.c and into the device | |
| 1011 | interface classes. For example, address space validation is now part | |
| 1012 | of the memory interface class. [Aaron Giles] | |
| 1174 | CPS-1 update [Team CPS-1]: | |
| 1175 | * Added proper willowj roms to match real pcb, it was using incorrect | |
| 1176 | roms copied from parent set | |
| 1177 | * Added an old pcb rev of knightsj, using split roms | |
| 1178 | * Added an old pcb rev of kodj, using split roms | |
| 1179 | * Added newer Street Fighter II CE set | |
| 1180 | * Fixed kodj labels and confirmed pcb infos | |
| 1181 | * Fixed qadj labels, added PALs and pcb infos | |
| 1182 | * Fixed sf2ua labels and added pcb infos | |
| 1183 | * Minor cleanups and fixes | |
| 1013 | 1184 | |
| 1014 | Consolidated address space parameters (bus width, endianness, etc.) | |
| 1015 | into a single address_space_config class. Updated all code that | |
| 1016 | queried for address space parameters to use the new mechanism. | |
| 1017 | [Aaron Giles] | |
| 1185 | fastlane (fastlane.c) [stephh] : | |
| 1186 | * Fixed Dip Switches and Inputs (after verification of the HD6309 | |
| 1187 | code) | |
| 1018 | 1188 | |
| 1019 | Fixed palette / priority handling in Lucky Girl (Newer Z180 hardware) | |
| 1020 | [David Haywood] | |
| 1189 | Fixed various issues in the AA emulation, this makes Poizone to | |
| 1190 | theoretically work as current ertictac.c emulation (not yet enabled) | |
| 1191 | [Angelo Salese] | |
| 1021 | 1192 | |
| 1022 | Update/Correct Space Invaders Comments, particularly regarding Midway | |
| 1023 | Boards [Andrew Welburn, Lord Nightmare] | |
| 1193 | firetrap, firetrapj, firetrapbl (firetrap.c) [stephh] : | |
| 1194 | * Fixed Dip Switches and Inputs (after verification of the Z80 code) | |
| 1195 | * Fixed coin insertion which now correctly supports "Coin A" and | |
| 1196 | "Coin B" settings | |
| 1197 | * Fixed MCU simulation for 'firetrapj' (only the initialisation was | |
| 1198 | different) so the game is now playable | |
| 1024 | 1199 | |
| 1025 | Fixed priorities in Frog & Spiders [Angelo Salese] | |
| 1200 | Z80DART changes: [Curt Coder] | |
| 1201 | * added SIO specific constants | |
| 1202 | * added sync character write registers | |
| 1026 | 1203 | |
| 1027 | ||
| 1204 | Z80: Set IFF1 | |
| 1028 | 1205 | |
| 1029 | Updated galivan.c with DIP LOCATIONS and verified setting via Service | |
| 1030 | Mode. Added comments about missing text layer in Ninja Emaki and | |
| 1031 | flagged those sets with missing protection emulation. [Tafoid] | |
| 1206 | Updated the 7474 device to no longer be legacy. [Harmony] | |
| 1032 | 1207 | |
| 1033 | Fix audio cpu banking in Raiden 2 (add a missing mirror to banking | |
| 1034 | register) [trap15, R. Belmont] | |
| 1208 | Updated the 6522 VIA device to no longer be legacy. [Harmony] | |
| 1035 | 1209 | |
| 1036 | ||
| 1210 | Upda | |
| 1037 | 1211 | |
| 1038 | Flash: 4k sectors should erase in 1/8th the time of 64k. extend core | |
| 1039 | to support GBA chip types. [R.Belmont] | |
| 1212 | Updated the 6821 PIA device to no longer be legacy. [Harmony] | |
| 1040 | 1213 | |
| 1041 | Clean up profiling flags in the makefile. Removed GPROF flag, it is | |
| 1042 | now just PROFILE. When enabled, automatically turn on basic symbols. | |
| 1043 | Also added new SYMLEVEL option to control the symbols level (defaults | |
| 1044 | to 2). [Aaron Giles] | |
| 1214 | Updated the 74123 device to no longer be legacy. [Harmony] | |
| 1045 | 1215 | |
| 1046 | ||
| 1216 | Converted | |
| 1047 | 1217 | |
| 1048 | Dumped internal ROM for Janshi [Charles MacDonald] | |
| 1218 | fixing listxml year output (it was skipped if the year contains a '?') | |
| 1219 | [Fabio Priuli] | |
| 1049 | 1220 | |
| 1050 | Documentation update [Stefan Lindberg, Dumping Union] | |
| 1051 | segas16b.c, taito_f2.c, taito_f3.c & taito_x.c: | |
| 1052 | Corrected rom names and or added PCB locations to Ray Force, | |
| 1053 | Arabian Magic, Liquid Kids, Twin Hawk. Added additional Sega game | |
| 1054 | ID info for an Alien Syndrome set. | |
| 1221 | karnov, karnovj, wndrplnt, chelnov, chelnovu, chelnovj (karnov.c) | |
| 1222 | [stephh] : | |
| 1223 | * Fixed Dip Switches and Inputs (after verification of the M68000 | |
| 1224 | code) | |
| 1225 | * Fixed coin insertion which now correctly supports "Coin A" and | |
| 1226 | "Coin B" settings | |
| 1055 | 1227 | |
| 1056 | model3.c: Correct sound rom loading for the Scud & Scud Plus sets | |
| 1057 | [Alex's Blog] | |
| 1228 | Updated VIA 6522 to generate interrupt on T2 Pulse counting mode too, | |
| 1229 | according to documentation [Miodrag Milanovic] | |
| 1058 | 1230 | |
| 1059 | devlegacy.c,clifront.c,info.c [Miodrag Milanovic] | |
| 1060 | * Created legacy image device | |
| 1061 | * Moved opresolv implementation from MESS | |
| 1062 | * listmedia is option is available in MAME too | |
| 1063 | * listxml output now contains image devices | |
| 1231 | flytiger: fixed colors [Roberto Zandona', Angelo Salese] | |
| 1064 | 1232 | |
| 1065 | -romident can now identify chd's [smf] | |
| 1233 | Fixed timers and irq clears in Acorn Archimedes / Aristocrat MK-5 / | |
| 1234 | Erotictac drivers [Angelo Salese] | |
| 1066 | 1235 | |
| 1067 | Emulated protection check in Ron Jan [Angelo Salese] | |
| 1236 | mikie, mikiej, mikiehs (mikie.c) [stephh] : | |
| 1237 | * Fixed Dip Switches and Inputs (after verification of the M6809 | |
| 1238 | code) | |
| 1068 | 1239 | |
| 1069 | ||
| 1240 | Updated | |
| 1070 | 1241 | |
| 1071 | Fixed default EEPROM for 1 on 1 Government [David Haywood] | |
| 1242 | Updated the M48T02, M48T35, M48T58 and MK48T08 devices to no longer be | |
| 1243 | legacy. [Harmony] | |
| 1072 | 1244 | |
| 1073 | Added default EEPROMs for each Brave Blade region [David Haywood] | |
| 1245 | 6255via: added support for shift mode 5 (shift out under T2 control) | |
| 1246 | [Miodrag Milanovic] | |
| 1074 | 1247 | |
| 1075 | Improvements to the Pinkiri 8 video emulation | |
| 1076 | [David Haywood, Angelo Salese] | |
| 1248 | mrflea (mrflea.c) [stephh] : | |
| 1249 | * Fixed Dip Switches and Inputs (after verification of the Z80 code) | |
| 1077 | 1250 | |
| 1078 | emuopts - added support for image devices parameters | |
| 1079 | [Miodrag Milanovic] | |
| 1251 | Converted ertictac / poizone driver to use shared AA devices | |
| 1252 | [Angelo Salese] | |
| 1080 | 1253 | |
| 1081 | Deviceized the VDP used by Pinkiri 8 HW [David Haywood] | |
| 1254 | Added a set of macros to minimize the amount of copy/pasting necessary | |
| 1255 | to convert a device to the new style. [Harmony] | |
| 1082 | 1256 | |
| 1083 | ||
| 1257 | Updated the ACIA 6850 device | |
| 1084 | 1258 | |
| 1085 | Added color PROM of kickboy and corrected ROM filename | |
| 1086 | [Team Japump, The Dumping Union] | |
| 1259 | Updated the PTM 6840 device to no longer be legacy. [Harmony] | |
| 1087 | 1260 | |
| 1261 | naomi.c: Added information about the Namco MASK B-F2X cartridge | |
| 1262 | [f205v] | |
| 1088 | 1263 | |
| 1264 | Improved sound in Erotictac / Poizone [Angelo Salese, Phil Bennett] | |
| 1089 | 1265 | |
| 1266 | De-converted MACHINE_DRIVER from tokens back to constructor functions, | |
| 1267 | regaining type safety. If legacy devices still use inline data, those | |
| 1268 | types are not checked. However, new devices no longer have access to | |
| 1269 | the generic m_inline_data. Instead their MDRV_* macros should map to | |
| 1270 | calls to static functions in the device config class which downcast a | |
| 1271 | generic device_config to the specific device config, and then set the | |
| 1272 | appropriate values. This is not to be done inline in order to prevent | |
| 1273 | further code bloat in the constructors. See | |
| 1274 | eeprom/7474/i2cmem/okim6295 for examples. [Aaron Giles] | |
| 1275 | ||
| 1276 | Updated the i8237 DMA device to no longer be legacy. [Harmony] | |
| 1277 | ||
| 1278 | Updated the 8255 PPI device to no longer be legacy. [Harmony] | |
| 1279 | ||
| 1280 | Updated the PCI bus device so that PCI buses can be arranged in a tree | |
| 1281 | like in real hardware [Samuele Zannoli] | |
| 1282 | ||
| 1283 | Chihiro.c Improvements: [Samuele Zannoli] | |
| 1284 | * Fixed the mapping of the bios at the top of the cpu addrsss space | |
| 1285 | * Updated the ram size to 128 megabytes | |
| 1286 | * Added some SMBus handling, to let the bios run | |
| 1287 | * Added placeholders for a few devices on the PCI bus | |
| 1288 | * Added the "jamdis StartAddress,Length" command to the debugger that | |
| 1289 | lets you disassemble the "jam table" instructions used by the bios to | |
| 1290 | do some basic hardware initialization. | |
| 1291 | ||
| 1292 | Updated the i8257 DMA device to no longer be legacy. [Harmony] | |
| 1293 | ||
| 1294 | Updated the Dallas DS1302 RTC device to no longer be legacy. [Harmony] | |
| 1295 | ||
| 1296 | pachifev (pachifev.c) [stephh] : | |
| 1297 | * Fixed Dip Switches and Inputs (after verification of the TMS9995 | |
| 1298 | code) | |
| 1299 | ||
| 1300 | Updated the Dallas DS2404 RTC device to no longer be legacy. [Harmony] | |
| 1301 | ||
| 1302 | Updated the Fairchild F3853 SMI device to no longer be legacy. | |
| 1303 | [Harmony] | |
| 1304 | ||
| 1305 | Various snk drivers now use driver_data. [Atari Ace] | |
| 1306 | ||
| 1307 | Updated the i8243 Port Expander device to no longer be legacy. | |
| 1308 | [Harmony] | |
| 1309 | ||
| 1310 | Updated the INS 8154 RAM I/O device to no longer be legacy. [Harmony] | |
| 1311 | ||
| 1312 | Updated the PCI bus device so that PCI buses can be arranged in a tree | |
| 1313 | like in real hardware [Samuele Zannoli] | |
| 1314 | ||
| 1315 | m6800 - Fixed initial state of bit 7 and 6 of flag registers | |
| 1316 | (according to documentation) [Miodrag Milanovic] | |
| 1317 | ||
| 1318 | [toaplan1] modified the mix for the tilemaps (like rallybik and | |
| 1319 | demonwld); this fix outzone bug and vimana bug [Robert Zandona'] | |
| 1320 | ||
| 1321 | Fixed rom mapping in Super Poker. Removed "bad dump" flag from e2 | |
| 1322 | roms, they pass self test now. [Mariusz Wojcieszek] | |
| 1323 | ||
| 1324 | toaplan1: removed custum video update for demonwld; now it's the same | |
| 1325 | of toaplan1. [Robert Zandona'] | |
| 1326 | ||
| 1327 | Updated the K033906 PCI Bridge device to no longer be legacy. | |
| 1328 | [Harmony] | |
| 1329 | ||
| 1330 | Updated the K056230 LANC device to no longer be legacy. | |
| 1331 | [Harmony] | |
| 1332 | ||
| 1333 | combatscb: fixed offset and priorities [Roberto Zandona'] | |
| 1334 | ||
| 1335 | lethalen: hooked up some k053244 register; [Roberto Zandona'] | |
| 1336 | ||
| 1337 | ||
| 1338 | ||
| 1090 | 1339 | New games added or promoted from NOT_WORKING status |
| 1091 | 1340 | --------------------------------------------------- |
| 1092 | Alien Challenge (2 sets) [Luca Elia, XingXing] | |
| 1093 | Lucky Girl (Z180-based HW) | |
| 1094 | [David Haywood, Angelo Salese, Charles MacDonald] | |
| 1095 | Vortex [Lord Nightmare, David Haywood, Smitdogg, The Dumping Union] | |
| 1096 | The Berenstain Bears in Big Paw's Cave [B Zeidler] | |
| 1097 | Royal Queen [Charles MacDonald, Angelo Salese] | |
| 1098 | Night Gal [Charles MacDonald, Angelo Salese] | |
| 1099 | Night Bunny / Royal Night [Charles MacDonald, Angelo Salese] | |
| 1341 | Raiden Fighters (Asia?, Metrotainment license) [anondumper] | |
| 1342 | Genie [Roberto Fresca, Ogoun] | |
| 1343 | Doki Doki Idol Star Seeker | |
| 1344 | [Hurray Banana, cacis, Team Japump, David Haywood, The Dumping Union] | |
| 1345 | 3 Bags Full - 5VXFC790 (Victorian) [Roberto Fresca, Ogoun] | |
| 1346 | Cal Omega - Game 8.0 (Arcade Black Jack) [Roberto Fresca] | |
| 1347 | Cal Omega - Game 24.0 (Gaming Draw Poker, hold) [Roberto Fresca] | |
| 1348 | Fire Trap (Japan) [stephh] | |
| 1349 | Royal Card (Nichibutsu) [Roberto Fresca, Tomasz Slanina, Ogoun] | |
| 1100 | 1350 | |
| 1101 | 1351 | |
| 1102 | 1352 | |
| 1103 | 1353 | New clones added |
| 1104 | 1354 | ---------------- |
| 1105 | Wai Wai Animal Land Jr.(Japan)[Team Japump, The Dumping Union] | |
| 1106 | Phantoms II (Space Invaders hardware) [Andrew Welburn] (enigma2b) | |
| 1107 | Toki (US, set 2) [Corrado Tomaselli] (tokiua) | |
| 1108 | Ooedo Fight (Japan) [Team Japump, The Dumping Union] | |
| 1355 | Pioneer Balloon (Rock-Ola license) | |
| 1356 | [gamerfan, Smitdogg, The Dumping Union] | |
| 1357 | Legion (bootleg of Legend) [Team Europe] | |
| 1358 | Eco Fighters (Phoenix Edition) | |
| 1359 | Knights of the Round (Japan 911127, B-Board 89625B-1) | |
| 1360 | [Layne, john666, Ricky74, ranger_lennier, Smitdogg, The Dumping Union] | |
| 1361 | The King of Dragons (Japan 910805, B-Board 89625B-1) | |
| 1362 | [Kevin Eshbach, takearushfan, M. De Pasquale, Smitdogg, | |
| 1363 | The Dumping Union] | |
| 1364 | Street Fighter II': Champion Edition (World 920513) | |
| 1365 | [john666, Smitdogg, The Dumping Union] | |
| 1366 | Willow (Japan, Japanese) | |
| 1367 | [Layne, john666, C. Trutmann, Smitdogg, The Dumping Union] | |
| 1368 | Yie Ar Kung-Fu (GX361 conversion) [Team Europe] | |
| 1369 | Super Poker (Version 10.15S) [anondumper] | |
| 1109 | 1370 | |
| 1110 | 1371 | |
| 1111 | 1372 | |
| 1112 | 1373 | New games marked as GAME_NOT_WORKING |
| 1113 | 1374 | ------------------------------------ |
| 1114 | Battle Gear [R. Belmont] | |
| 1115 | Battle Gear 2 [R. Belmont] | |
| 1116 | Pop n' Music 5 [Guru] | |
| 1117 | Unknown Meyco Game [Trevor Brown, Antwon Barajas] (unkmeyco) | |
| 1118 | Puzzle Break [Smitdogg, The Dumping Union] | |
| 1119 | Ron Jan [Charles MacDonald, Brian A. Troha] | |
| 1375 | Olympic Hot Stuff [Ogoun] | |
| 1376 | Cal Omega - Game 51.08 (CEI Video Poker, Jacks or Better) | |
| 1377 | [Roberto Fresca, Dave Ormiston] | |
| 1378 | Savage Quest [TrevEB] | |
| 1120 | 1379 | |
| 1121 | 1380 | |
| 1122 | 1381 | |
| 1123 | 0.13 | |
| 1382 | 0.139u1 | |
| 1124 | 1383 | ------- |
| 1125 | 1384 | |
| 1126 | 1385 | |
| 1127 | 1386 | MAMETesters Bugs Fixed |
| 1128 | 1387 | ---------------------- |
| 1129 | - 00948: [Graphics] batsugun: The ending and credits text is in gibberish | |
| 1130 | language. (David Haywood) | |
| 1131 | - 03832: [Sound] monymony, jackrabt: Missing speech (couriersud) | |
| 1132 | - 00946: [Graphics] batsugun, batsuguna, batsugunsp: Some graphics garbage | |
| 1133 | at level one start and first boss. (David Haywood) | |
| 1134 | - 03445: [Crash/Freeze] znpwfv: Segmentation Fault (Angelo Salese) | |
| 1135 | - 02642: [Crash/Freeze] myfairld: [possible] Black screen in Virtual | |
| 1136 | Mahjong 2 MFL (Angelo Salese) | |
| 1137 | - 01009: [Crash/Freeze] grdforce: Test mode doesn't work. (Angelo Salese) | |
| 1138 | - 03710: [Crash/Freeze] sokyugrt: Game crash after player select | |
| 1139 | (Angelo Salese) | |
| 1140 | - 02567: [Color/Palette] All Sets in zaccaria.c: Minor color issues (hap) | |
| 1141 | - 00799: [Graphics] monymony: Sprite priority is incorrect when the player | |
| 1142 | is pulled underwater. (hap) | |
| 1143 | - 03474: [Sound] wilytowr: Background music is very low. (hap) | |
| 1144 | - 03853: [Graphics] ssriders and clones: Sprites stuck error. (hap) | |
| 1145 | - 03817: [Graphics] popflame + clones: Color regression (Angelo Salese) | |
| 1146 | - 03816: [Crash/Freeze] popflame: The game resets after the third round. | |
| 1147 | (Angelo Salese) | |
| 1148 | - 03852: [Gameplay] 20pacgal, 20pacgala: Severe slowdown after initials | |
| 1149 | are entered. (couriersud) | |
| 1150 | - 03476: [Crash/Freeze] quartet, quarteta, dumpmtmt: Games do not start. | |
| 1151 | (Alex Jackson) | |
| 1388 | - 03969: [Crash/Freeze] All sets and drivers using OKI audio: | |
| 1389 | Eventual crash using Save States (Aaron Giles) | |
| 1390 | - 03981: [Crash/Freeze] bosco, xevious and clones: Game reboots or | |
| 1391 | hangs (Alex Jackson) | |
| 1392 | - 03977: [Graphics] tceptor2: Graphics are incorrect, the top and | |
| 1393 | bottom roads are displayed with grids and it looks like | |
| 1394 | there should be 4 instead of 2. (Phil Bennett) | |
| 1395 | - 03964: [Documentation] shangonro: Year is wrong (Smitdogg) | |
| 1152 | 1396 | |
| 1153 | 1397 | |
| 1154 | 1398 | |
| 1155 | 1399 | Source Changes |
| 1156 | 1400 | -------------- |
| 1157 | Remove all references to the nonexistent "premov" instruction from the | |
| 1158 | NEC-V core. [Alex Jackson] | |
| 1401 | raiden2.c: Add missing "VOICE2" sample rom to Raiden 2 sets where it | |
| 1402 | was missing. Corrected rom names for MASK roms soldered to the PCB. | |
| 1403 | [Brian Troha] | |
| 1159 | 1404 | |
| 1160 | Corrected stack walk by using UNICODE_POSTFIX. Fixed some incorrect | |
| 1161 | function declarations in winmain.c. [Oliver Stoneberg] | |
| 1405 | Southern Systems Joker Poker: Added missing CPU IO map to the machine | |
| 1406 | driver. This allow boot the game and enter into the attract mode. | |
| 1407 | [Roberto Fresca] | |
| 1162 | 1408 | |
| 1163 | cps2: Made ssf2t a parent set [Alex Jackson] | |
| 1409 | Mini Boy 7 improvements: [Roberto Fresca] | |
| 1410 | * Added a new complete set. Now set as parent. | |
| 1411 | * Corrected Xtal frequency. | |
| 1412 | * Mapped the PIA MC6821 (not wired since is not totally understood). | |
| 1413 | * Preliminary attempt to decode the color PROM. | |
| 1414 | * Mapped the AY-3-8910, but still needs ports and some checks. | |
| 1415 | * Added debug and technical notes. | |
| 1164 | 1416 | |
| 1165 | New driver: sigmab98.c [Luca Elia] | |
| 1417 | New driver for Mega Double Poker, from Blitz System Inc. | |
| 1418 | [Roberto Fresca] | |
| 1419 | * Initial release. | |
| 1420 | * Preliminary memory map. | |
| 1421 | * Hooked both PIAs, but need more analysis to confirm the offsets. | |
| 1422 | * Accurate graphics and color decode. | |
| 1423 | * Added main PCB and daughterboard layouts. | |
| 1424 | * Added partial docs and diagrams about the CPU/MCU/ROMs addressing. | |
| 1425 | * Added debug and technical notes. | |
| 1166 | 1426 | |
| 1167 | astrocorp.c: Added PCB layout for Astro M1.1 & M1.2 PCBs [Brian Troha] | |
| 1427 | Added Magic Train, from Subsino. Since it's driven by a HD647180X0CP6 | |
| 1428 | (Subsino - SS9600) plus SS9601 and SS9602 (for video and I/O | |
| 1429 | respectively), it's possible that needs to be moved to a new driver in | |
| 1430 | a near future. Also added technical notes. [Roberto Fresca] | |
| 1168 | 1431 | |
| 1169 | Documented an energy bar debug switch in aladbl, disabled by default | |
| 1170 | [Angelo Salese] | |
| 1432 | mpu4drvr.c: Fixed mid-screen palette updates [David Haywood] | |
| 1171 | 1433 | |
| 1172 | Fixed crashes when you fall into pitfalls in aladbl [Angelo Salese] | |
| 1434 | segas16b.c: Documented the Sega game ID for the Heavyweight Champ rom | |
| 1435 | board as well as corrected the rom names. [Brian Troha] | |
| 1173 | 1436 | |
| 1174 | Improved Z180 timer and HALT processing. This fixes MT03852. | |
| 1175 | [Couriersud] | |
| 1437 | Return to type safety. Changed address maps back into functions that | |
| 1438 | build up the definition, rather than the whole tokenizing system, | |
| 1439 | which lost type checking. Added a new module addrmap.c which | |
| 1440 | implements the address map classes, and changed the macros to call | |
| 1441 | methods on the address_map and address_map_entry classes which are | |
| 1442 | strongly typed. Fixed a few incorrectly specified memory map entries | |
| 1443 | along the way in twincobr.c, lordgun.c, galaxold.c. [Aaron Giles] | |
| 1176 | 1444 | |
| 1177 | Konami devices: Fixed sprite Z code rejection regression [hap] | |
| 1445 | More API cleanup: [Aaron Giles] | |
| 1446 | * removed cputag_clocks_to_attotime() and cputag_attotime_to_clocks() | |
| 1447 | in favor of just expanding the class | |
| 1448 | * same for cputag_suspend() and cputag_resume() | |
| 1178 | 1449 | |
| 1179 | Basic hook-ups of the Nintendo Super System BIOS [Angelo Salese] | |
| 1450 | Fix crash when exiting the debugger if breakpoints are set. | |
| 1451 | [Aaron Giles] | |
| 1180 | 1452 | |
| 1181 | namcos2: Optimized pixmap rotation, improving performance of Assault | |
| 1182 | and other games that use it [Bryan Ischo] | |
| 1453 | The dsp561xx CPU core now generates accurate disassembly for Konami | |
| 1454 | Polygonet hardware (verified against Motorola's reference | |
| 1455 | disassembler). [Andrew Gardner, Stiletto] | |
| 1183 | 1456 | |
| 1184 | ||
| 1457 | Fixed image | |
| 1185 | 1458 | |
| 1186 | Documented and worked around a long standing level 3 protection fault | |
| 1187 | in Pop Flamer [Angelo Salese] | |
| 1459 | Defined new class driver_data_t, which all driver_data classes must | |
| 1460 | derive from. Updated all class definitions to inherit from the new | |
| 1461 | class, and to call it in the constructor. Also changed the alloc() | |
| 1462 | signature to return a driver_data_t pointer instead of a void *. | |
| 1463 | Renamed and hid machine->driver_data as machine->m_driver_data. Added | |
| 1464 | a new templatized method machine->driver_data<class> which returns a | |
| 1465 | properly downcast'ed version of the driver data. Updated all code | |
| 1466 | which looked like this: | |
| 1188 | 1467 | |
| 1189 | Rewritten palette initialization in Naughty Boy HW by using the RESNET | |
| 1190 | [Angelo Salese] | |
| 1468 | mydriver_state *state = (mydriver_state *)machine->driver_data; | |
| 1191 | 1469 | |
| 1192 | Rewrote Z180 cycle accounting to create a basis for more exact | |
| 1193 | internal I/O and timer operations as well as implementing interrupt | |
| 1194 | priorities. Removed unused BIG_SWITCH code as well. [Couriersud] | |
| 1470 | to this: | |
| 1195 | 1471 | |
| 1196 | MPU4 Updates [James Wallace]: | |
| 1197 | * Added trackball support | |
| 1198 | * Fixed quiz game controls | |
| 1199 | * Restructured AWP games' characteriser handling | |
| 1472 | mydriver_state *state = machine->driver_data<mydriver_state>(); | |
| 1200 | 1473 | |
| 1201 | Added photo y2k2 decryption table [iq132] | |
| 1474 | The new function does a downcast<> which in debug builds dynamically | |
| 1475 | verifies that you're actually casting to the right type. [Aaron Giles] | |
| 1202 | 1476 | |
| 1203 | Improved Z180 interrupt and timer handling. Added some missing save | |
| 1204 | state entries and fixed HALT. [Couriersud] | |
| 1477 | Changed atarigen_state to be a base class from which all the related | |
| 1478 | Atari drivers derive their state from. [Aaron Giles] | |
| 1205 | 1479 | |
| 1206 | Rewrote rom/ram banking. 20pacgal now supports save state. | |
| 1207 | [Couriersud] | |
| 1480 | Removed global variables from gaelco, namco, and nile sound cores. | |
| 1481 | [Atari Ace] | |
| 1208 | 1482 | |
| 1209 | ||
| 1483 | ||
| 1210 | 1484 | |
| 1211 | zaccaria.c: Improved sprite drawing, added DIP locations [hap] | |
| 1485 | Updated SAA5050 to form 12x20 chars as noted in documentation. | |
| 1486 | Updated malzak driver to support SAA5050 changes. [Miodrag Milanovic] | |
| 1212 | 1487 | |
| 1213 | ||
| 1488 | taito | |
| 1214 | 1489 | |
| 1215 | Modified the naomi clipping a bit to avoid so many black lines | |
| 1216 | at the bottom [David Haywood] | |
| 1490 | namcoic.c: Fixed incorrect road colours in tceptor2, finallap and | |
| 1491 | others [Phil Bennett] | |
| 1217 | 1492 | |
| 1218 | New Super 3D Golf Simulation - Waialae No Kiseki / Super Mahjong 2 | |
| 1219 | (Super Famicom Box) [Angelo Salese] | |
| 1493 | Fixed road transparency in Thunder Ceptor [Phil Bennett] | |
| 1220 | 1494 | |
| 1221 | Removed Groove on Fight boot hack, not anymore needed [Angelo Salese] | |
| 1495 | Fixed Z80 SIO interrupts by clearing them at constructor time so Z80 | |
| 1496 | daisy chain works properly and doesn't stall on a non-existant IEO | |
| 1497 | condition. [Curt Coder] | |
| 1222 | 1498 | |
| 1223 | Added x/y boundary checking to ST-V bitmaps [Angelo Salese] | |
| 1499 | Z80 DMA changes: [Curt Coder] | |
| 1500 | - Fixed DMA by re-adding a status update call to ENABLE DMA command | |
| 1501 | - Allowed illegal mode 0 DMA operation since trs80m2 in MESS is | |
| 1502 | abusing this | |
| 1503 | - Fixed ready signal handling by adding a check for ready condition | |
| 1504 | on each byte | |
| 1224 | 1505 | |
| 1225 | atarigx2.c: More rom name corrections as verified against a Moto | |
| 1226 | Frenzy Mini Deluxe PCB. Added ROM for the "Clarn" game link sub PCB. | |
| 1227 | [Charles MacDonald, P. Sealy, Smitdogg, The Dumping Union] | |
| 1506 | Started converting the Toaplan2 VDP into a device [David Haywood] | |
| 1228 | 1507 | |
| 1229 | Added lfsr-driven starfield to 20pacgal. The general principle is | |
| 1230 | understood now but star set selection and the star drawing condition | |
| 1231 | are guesses. [Couriersud] | |
| 1508 | dsp56k : Hooked up new execution engine. [Andrew Gardner] | |
| 1232 | 1509 | |
| 1233 | Moved global and static variables in driver galaga into a machine | |
| 1234 | class. Renamed some variables, e.g. galaga_videoram and bosco_videoram | |
| 1235 | to just videoram. [Couriersud] | |
| 1510 | plygonet.c : Updates Polygonet driver to use driver_data class. | |
| 1511 | [Atari Ace] | |
| 1236 | 1512 | |
| 1237 | Added new DECO Cassette bios set and updated rom names/locations/types | |
| 1238 | to be more accurate. [Lord Nightmare, The Dumping Union] | |
| 1513 | More refactoring to the Toaplan 2 / GP9001 VDP device [David Haywood] | |
| 1239 | 1514 | |
| 1240 | micro3d.c : Added some PLD dumps to botssa [Phil Bennett, Smitdogg] | |
| 1515 | CPS-1 update [Team CPS-1]: | |
| 1516 | * Expanded and updated games table in video\cps1.c | |
| 1517 | * Confirmed B-Board # for 3wondersu, varth | |
| 1518 | * Fixed labels in ghouls, ghoulsu to match real pcbs | |
| 1519 | * Removed 14.bin in dynwarj, it was a bad dump | |
| 1520 | * Marked nm_23.12b in nemoj BAD_DUMP | |
| 1521 | * Removed knightsja set (roms were split & hacked to work on a | |
| 1522 | suicided board) | |
| 1523 | * Added roms relationship between parent/clones where missing | |
| 1524 | * Fixed some incorrect notes added in previous update | |
| 1525 | * dynwaru -> dynwara forgottnua -> forgottnu, forgottnu -> forgottnua | |
| 1526 | wofhfb -> wofhfh as real name Huo Feng Huang | |
| 1527 | * Reordered some sets | |
| 1528 | * Minor cleanups | |
| 1529 | * Fixed sf2ceua labels and added pcb infos | |
| 1530 | * Fixed sf2ceub labels and added pcb infos, removed 1 incorrect rom | |
| 1531 | and replaced with proper redump done by Dumping Union | |
| 1532 | * Fixed punisher, punisheru Q-Sound labels and added D-Board PALs | |
| 1241 | 1533 | |
| 1242 | Remove | |
| 1534 | dsp56k.c : Remove | |
| 1243 | 1535 | |
| 1244 | Reverified TMS5200 clock and measured Vsync clocks from Zaccaria | |
| 1245 | hardware [Corrado Tomaselli] | |
| 1536 | cps1.c: Documentation update for some CPS1 sets (B-Board chip | |
| 1537 | information) verified via Team Japump PCB photos. [Brian Troha] | |
| 1246 | 1538 | |
| 1247 | Added debug_global_input_code_pressed_once() function to input.c | |
| 1248 | [Angelo Salese] | |
| 1539 | Improved memory banking in Puzzle Star (Sang Ho Soft) | |
| 1540 | [Mariusz Wojcieszek] | |
| 1249 | 1541 | |
| 1250 | Added a readyq callback to the TMS5220 interface. This is needed to | |
| 1251 | solve MT #3832. In zaccaria games, the intq and readyq are connected | |
| 1252 | to pia 6821 lines ca2 and cb1 which are edge driven. Just reading | |
| 1253 | readyq would miss to detect a state change if between reads readyq | |
| 1254 | went 0-1-0. Updated zaccaria.c and looping.c. Fixes MT #3832. | |
| 1255 | [Couriersud] | |
| 1542 | Fixed term2 (rev. LA4) freeze during the Cyberdyne stage opening | |
| 1543 | cinematic [Phil Bennett] | |
| 1256 | 1544 | |
| 1257 | Reworked rendering in toaplan2 to render tilemaps / sprites in a | |
| 1258 | single pass, should be more accurate to hardware. Note, this further | |
| 1259 | breaks the mixing in Batsugun and Dogyuun because the previous hacks | |
| 1260 | can no longer work with the new rendering code. These games have been | |
| 1261 | demoted to NOT_WORKING status until a better solution is found; they | |
| 1262 | never worked properly anyway due to the extent of the video hacks | |
| 1263 | needed to support them [David Haywood] | |
| 1545 | Merged aladbl.c and ssf2md.c to create genesisb.c [Sonikos] | |
| 1264 | 1546 | |
| 1265 | documentation: Cleaned up company names [hap] | |
| 1547 | video/astrocde.c: Limited the number of timers potentially produced by | |
| 1548 | astrocade_trigger_lightpen() [ranger_lennier] | |
| 1266 | 1549 | |
| 1267 | Added NSC800 CPU emulation to the Z80 core [Sandro Ronco] | |
| 1550 | cps1.c: Set correct B-Board mapper for "resale" kits. This fixes | |
| 1551 | missing graphics in Area 88 (Japan Resale). [Brian Troha] | |
| 1268 | 1552 | |
| 1269 | Updated Legendary Wings with actual PCB speed readings. | |
| 1270 | [Corrado Tomaselli] | |
| 1271 | 1553 | |
| 1272 | Update decocass comments/bios names with more info from D.Widel's | |
| 1273 | page. [Lord Nightmare, David Widel] | |
| 1274 | 1554 | |
| 1275 | toaplan2: fixed sprite-sprite priorities in batsugun and dogyuun | |
| 1276 | [robiza] | |
| 1277 | ||
| 1278 | Added bare-bones work around for the Network board in Super GT 24h and | |
| 1279 | Over Rev, they now enters into attract mode [Angelo Salese] | |
| 1280 | ||
| 1281 | Revision 9295 by rbelmont | |
| 1282 | SDL: fix compilation for GTK+ 2.20 and later [R. Belmont, Wingman] | |
| 1283 | ||
| 1284 | ||
| 1285 | ||
| 1286 | 1555 | New games added or promoted from NOT_WORKING status |
| 1287 | 1556 | --------------------------------------------------- |
| 1288 | GeGeGe no Kitarou Youkai Slot | |
| 1289 | [A. Hoekman, ranger_lennier, Smitdogg, The Dumping Union, Luca Elia] | |
| 1290 | Video Carnival / Super Royal Card [f205v, Angelo Salese] | |
| 1291 | Mouse Attack [Phil Bennett, Smitdogg] | |
| 1292 | Super Game III [Mariusz Wojcieszek, Guru] | |
| 1557 | Pacman - 25th Anniversary Edition (V2.0) [Sara S.] | |
| 1558 | The Last Starfighter (prototype) [Phil Bennett, Ken Van Mersbergen] | |
| 1559 | Air Race (prototype) [Phil Bennett, Ken Van Mersbergen] | |
| 1293 | 1560 | |
| 1294 | 1561 | |
| 1295 | 1562 | |
| 1296 | 1563 | New clones added |
| 1297 | 1564 | ---------------- |
| 1298 | Golden Tee 2K (v1.00) (alt protection) [Guru, Brian Troha] | |
| 1299 | 1943 (Euro) [Stefan Lindberg] | |
| 1300 | Fantasy Zone (NEC 0317-5000 encrypted Z80) | |
| 1301 | [Cools, Andrew Welburn, The Dumping Union] | |
| 1302 | X-Men Vs. Street Fighter (Asia 960910) [ANY, The Dumping Union] | |
| 1303 | X Multiply (Japan, M81) [hap, porchy] | |
| 1304 | The Crystal Maze (2 sets) [James Wallace] | |
| 1305 | The Crystsl Maze Team Challenge (2 sets) [James Wallace] | |
| 1306 | The New Crystal Maze Featuring Ocean Zone (2 sets) [James Wallace] | |
| 1307 | Road Riot's Revenge (prototype, set 3) [Siftware] | |
| 1308 | Indoor Soccer (set 2) [Siftware] | |
| 1309 | Ms. Pacman Champion Edition / Zola-Puc Gal | |
| 1310 | [Andrew Welburn, The Dumping Union] | |
| 1311 | Heavyweight Champ (Japan, FD1094) [Team Japump, Dumping Union] | |
| 1312 | Super Draw Poker (bootleg) [f205v] | |
| 1313 | Ms. Pac-Man/Galaga - 20 Year Reunion (2 sets) | |
| 1314 | [Brian Troha, The Dumping Union] | |
| 1565 | Clash-Road (Data East license) [Tirino 73] | |
| 1566 | Quizard v1.2 [Team Europe, The Dumping Union] | |
| 1567 | Quizard Rainbow 4.2 [Team Europe, The Dumping Union] | |
| 1568 | Super Megatouch IV Turnier Version (9255-51-50 ROA, Bi-Lingual ENG/GER version) | |
| 1569 | [bodger319, Smitdogg, The Dumping Union] | |
| 1570 | Megatouch 5 Turnier Version (9255-70-50 RON, Bi-Lingual ENG/GER version) | |
| 1571 | [bodger319, Smitdogg, The Dumping Union] | |
| 1572 | Knights of the Round (Japan 911127, 91634B-2 B-Board) | |
| 1573 | [Team Japump, The Dumping Union] | |
| 1574 | Area 88 (Japan Resale Ver.) [Team Japump] | |
| 1575 | Ms. Pac-Man/Galaga - 20th Anniversary Class of 1981 Reunion (V1.00) | |
| 1576 | [Mark F.] | |
| 1577 | Ms. Pac-Man/Galaga - 20th Anniversary Class of 1981 Reunion (V1.03) | |
| 1578 | [Sara S.] | |
| 1315 | 1579 | |
| 1316 | 1580 | |
| 1317 | 1581 | |
| 1318 | 1582 | New games marked as GAME_NOT_WORKING |
| 1319 | 1583 | ------------------------------------ |
| 1320 | Win Win Bingo (2 sets) [f205v, Filippo Tarderia] | |
| 1321 | Zoo [Brian Troha, The Dumping Union] | |
| 1322 | X Five Jokers [f205v] | |
| 1323 | Magic Number (Italian Gambling Game) [f205v] | |
| 1324 | Magic Class [f205v] | |
| 1325 | Abacus [f205v] | |
| 1326 | Euro Class [f205v] | |
| 1327 | Book Theatre [f205v] | |
| 1328 | Super Famicom Box BIOS [Angelo Salese] | |
| 1584 | Mini Boy 7 (set 1) [Roberto Fresca, Siftware] | |
| 1585 | Mega Double Poker (conversion kit) [Roberto Fresca, ChrisQC, Smitdogg] | |
| 1586 | Magic Train [Roberto Fresca] | |
| 1587 | Gundam Seed: Federation vs. Z.A.F.T. (SED1 Ver. A) [Guru, Smitdogg] |
| Previous | 15994 Revisions | Next |