1 /* set to 1 to display tape time offset */ 2 #define TAPE_UI_DISPLAY 0 3 4 #ifdef MAME_DEBUG 5 #define LOGLEVEL 0 6 #define LOG(n,x) if (LOGLEVEL >= n) logerror x 7 #else 8 #define LOG(n,x) 9 #endif 10 11 extern WRITE_HANDLER( decocass_coin_counter_w ); 12 extern WRITE_HANDLER( decocass_sound_command_w ); 13 extern READ_HANDLER( decocass_sound_data_r ); 14 extern READ_HANDLER( decocass_sound_ack_r ); 15 extern WRITE_HANDLER( decocass_sound_data_w ); 16 extern READ_HANDLER( decocass_sound_command_r ); 17 extern WRITE_HANDLER( decocass_sound_nmi_enable_w ); 18 extern READ_HANDLER( decocass_sound_nmi_enable_r ); 19 extern READ_HANDLER( decocass_sound_data_ack_reset_r ); 20 extern WRITE_HANDLER( decocass_sound_data_ack_reset_w ); 21 extern WRITE_HANDLER( decocass_nmi_reset_w ); 22 extern WRITE_HANDLER( decocass_quadrature_decoder_reset_w ); 23 extern WRITE_HANDLER( decocass_adc_w ); 24 extern READ_HANDLER( decocass_input_r ); 25 extern int tape_dir; 26 extern int tape_speed; 27 extern double tape_time0; 28 extern void *tape_timer; 29 30 extern WRITE_HANDLER( decocass_reset_w ); 31 extern READ_HANDLER( decocass_type1_r ); 32 extern READ_HANDLER( decocass_type1_map1_r ); 33 extern READ_HANDLER( decocass_type1_map2_r ); 34 extern READ_HANDLER( decocass_type1_map3_r ); 35 extern READ_HANDLER( type2_r ); 36 extern WRITE_HANDLER( type2_w ); 37 extern READ_HANDLER( type3_r ); 38 extern WRITE_HANDLER( type3_w ); 39 40 extern READ_HANDLER( decocass_e5xx_r ); 41 extern WRITE_HANDLER( decocass_e5xx_w ); 42 43 extern MACHINE_INIT( decocass ); 44 extern MACHINE_INIT( ctsttape ); 45 extern MACHINE_INIT( clocknch ); 46 extern MACHINE_INIT( ctisland ); 47 extern MACHINE_INIT( csuperas ); 48 extern MACHINE_INIT( castfant ); 49 extern MACHINE_INIT( cluckypo ); 50 extern MACHINE_INIT( cterrani ); 51 extern MACHINE_INIT( cexplore ); 52 extern MACHINE_INIT( cprogolf ); 53 extern MACHINE_INIT( cmissnx ); 54 extern MACHINE_INIT( cdiscon1 ); 55 extern MACHINE_INIT( cptennis ); 56 extern MACHINE_INIT( ctornado ); 57 extern MACHINE_INIT( cbnj ); 58 extern MACHINE_INIT( cburnrub ); 59 extern MACHINE_INIT( cbtime ); 60 extern MACHINE_INIT( cgraplop ); 61 extern MACHINE_INIT( clapapa ); 62 extern MACHINE_INIT( cfghtice ); 63 extern MACHINE_INIT( cprobowl ); 64 extern MACHINE_INIT( cnightst ); 65 extern MACHINE_INIT( cprosocc ); 66 extern MACHINE_INIT( cppicf ); 67 extern MACHINE_INIT( cscrtry ); 68 extern MACHINE_INIT( cbdash ); 69 70 extern WRITE_HANDLER( i8041_p1_w ); 71 extern READ_HANDLER( i8041_p1_r ); 72 extern WRITE_HANDLER( i8041_p2_w ); 73 extern READ_HANDLER( i8041_p2_r ); 74 75 /* from drivers/decocass.c */ 76 extern WRITE_HANDLER( decocass_w ); 77 78 /* from vidhrdw/decocass.c */ 79 extern WRITE_HANDLER( decocass_paletteram_w ); 80 extern WRITE_HANDLER( decocass_charram_w ); 81 extern WRITE_HANDLER( decocass_fgvideoram_w ); 82 extern WRITE_HANDLER( decocass_colorram_w ); 83 extern WRITE_HANDLER( decocass_bgvideoram_w ); 84 extern WRITE_HANDLER( decocass_tileram_w ); 85 extern WRITE_HANDLER( decocass_objectram_w ); 86 extern READ_HANDLER( decocass_mirrorvideoram_r ); 87 extern READ_HANDLER( decocass_mirrorcolorram_r ); 88 extern WRITE_HANDLER( decocass_mirrorvideoram_w ); 89 extern WRITE_HANDLER( decocass_mirrorcolorram_w ); 90 91 extern WRITE_HANDLER( decocass_watchdog_count_w ); 92 extern WRITE_HANDLER( decocass_watchdog_flip_w ); 93 extern WRITE_HANDLER( decocass_color_missiles_w ); 94 extern WRITE_HANDLER( decocass_mode_set_w ); 95 extern WRITE_HANDLER( decocass_color_center_bot_w ); 96 extern WRITE_HANDLER( decocass_back_h_shift_w ); 97 extern WRITE_HANDLER( decocass_back_vl_shift_w ); 98 extern WRITE_HANDLER( decocass_back_vr_shift_w ); 99 extern WRITE_HANDLER( decocass_part_h_shift_w ); 100 extern WRITE_HANDLER( decocass_part_v_shift_w ); 101 extern WRITE_HANDLER( decocass_center_h_shift_space_w ); 102 extern WRITE_HANDLER( decocass_center_v_shift_w ); 103 104 extern VIDEO_START( decocass ); 105 extern VIDEO_UPDATE( decocass ); 106 107 extern unsigned char *decocass_charram; 108 extern unsigned char *decocass_fgvideoram; 109 extern unsigned char *decocass_colorram; 110 extern unsigned char *decocass_bgvideoram; 111 extern unsigned char *decocass_tileram; 112 extern unsigned char *decocass_objectram; 113 extern size_t decocass_fgvideoram_size; 114 extern size_t decocass_colorram_size; 115 extern size_t decocass_bgvideoram_size; 116 extern size_t decocass_tileram_size; 117 extern size_t decocass_objectram_size; 118