| Previous | 15994 Revisions | Next |
| r2855 Monday 16th June, 2008 at 01:27:47 UTC by Nathan Woods |
|---|
| More Atari Ace cleanups [Atari Ace] |
| [src/mess] | compcfg.c compcfg.h* infomess.c mess.h |
| [src/mess/audio] | special.c |
| [src/mess/drivers] | amstrad.c apf.c coleco.c nes.c pcw16.c saturn.c x68k.c |
| [src/mess/formats] | csw_cas.c uef_cas.h |
| [src/mess/includes] | a7800.h adam.h amstrad.h apf.h apogee.h atom.h b2m.h bk.h c128.h c64.h cgenie.h coleco.h comx35.h dai.h galaxy.h galeb.h gamepock.h |
| [src/mess/machine] | 990_tap.c 990_tap.h b2m.c beta.c bk.c cbmipt.c galeb.c ins8154.h mikro80.c mm58274c.h msx_slot.c nc.c ncr5380.h nes.c nes_mmc.h orao.c orion.c special.c trs80.c ut88.c vc1541.c |
| [src/mess/video] | amstrad.c apf.c apogee.c atarist.h atom.c b2m.c bk.c cgapal.h* epnick.h galeb.c m6845.h mekd2.c mikro80.c mikrosha.c nc.c orao.c orion.c partner.c pc_aga.c pc_cga.c pc_cga.h pcw.c radio86.c special.c tmc600.c ut88.c x68k.c z88.c |
| r2854 | r2855 | |
|---|---|---|
| 16 | 16 | #include "image.h" |
| 17 | 17 | #include "artworkx.h" |
| 18 | 18 | #include "memory.h" |
| 19 | #include "compcfg.h" | |
| 20 | #include "configms.h" | |
| 21 | #include "messopts.h" | |
| 19 | 22 | |
| 20 | 23 | |
| 21 | 24 | |
| r2854 | r2855 | |
| 44 | 47 | |
| 45 | 48 | /***************************************************************************/ |
| 46 | 49 | |
| 47 | void mess_options_init(core_options *opts); | |
| 48 | ||
| 49 | 50 | extern const char mess_disclaimer[]; |
| 50 | 51 | |
| 51 | 52 | UINT32 hash_data_extract_crc32(const char *d); |
| r2854 | r2855 | |
| 68 | 69 | void mess_predevice_init(running_machine *machine); |
| 69 | 70 | void mess_postdevice_init(running_machine *machine); |
| 70 | 71 | |
| 71 | void mess_config_init(running_machine *machine); | |
| 72 | ||
| 73 | 72 | enum |
| 74 | 73 | { |
| 75 | 74 | OSD_FOPEN_READ, |
| r2854 | r2855 | |
| 93 | 92 | extern UINT8 *mess_ram; |
| 94 | 93 | extern UINT8 mess_ram_default_value; |
| 95 | 94 | |
| 96 | /* RAM parsing options */ | |
| 97 | 95 | #define RAM_STRING_BUFLEN 16 |
| 98 | UINT32 ram_option(const game_driver *gamedrv, unsigned int i); | |
| 99 | int ram_option_count(const game_driver *gamedrv); | |
| 100 | int ram_is_valid_option(const game_driver *gamedrv, UINT32 ram); | |
| 101 | UINT32 ram_default(const game_driver *gamedrv); | |
| 102 | UINT32 ram_parse_string(const char *s); | |
| 103 | const char *ram_string(char *buffer, UINT32 ram); | |
| 104 | int ram_validate_option(void); | |
| 105 | 96 | void ram_dump(const char *filename); |
| 106 | 97 | |
| 107 | UINT8 *memory_install_ram8_handler(running_machine *machine, int cpunum, int spacenum, offs_t start, offs_t end, offs_t ram_offset, int bank); | |
| 108 | ||
| 109 | 98 | /* --------------------------------------------------------------------------------------------- */ |
| 110 | 99 | |
| 111 | 100 | /* dummy read handlers */ |
| r2854 | r2855 | |
|---|---|---|
| 4 | 4 | |
| 5 | 5 | #include "mame.h" |
| 6 | 6 | #include "driver.h" |
| 7 | #include "compcfg.h" | |
| 7 | 8 | |
| 8 | 9 | #define MAX_RAM_OPTIONS 16 |
| 9 | 10 |
| r2854 | r2855 | |
|---|---|---|
| 13 | 13 | #include "includes/dai.h" |
| 14 | 14 | #include "streams.h" |
| 15 | 15 | #include "deprecat.h" |
| 16 | #include "includes/special.h" | |
| 16 | 17 | |
| 17 | 18 | static void *specimx_sh_start(int clock, const struct CustomSound_interface *config); |
| 18 | 19 | static void specimx_sh_update(void *param,stream_sample_t **inputs, stream_sample_t **_buffer,int length); |
| r2854 | r2855 | |
|---|---|---|
| 13 | 13 | #include "info.h" |
| 14 | 14 | #include "hash.h" |
| 15 | 15 | #include "xmlfile.h" |
| 16 | #include "infomess.h" | |
| 16 | 17 | |
| 17 | 18 | /************************************* |
| 18 | 19 | * |
| r0 | r2855 | |
|---|---|---|
| 1 | /**************************************************************************** | |
| 2 | ||
| 3 | compcfg.h | |
| 4 | ||
| 5 | ****************************************************************************/ | |
| 6 | ||
| 7 | #ifndef COMPCFG_H | |
| 8 | #define COMPCFG_H | |
| 9 | ||
| 10 | /* RAM parsing options */ | |
| 11 | UINT32 ram_option(const game_driver *gamedrv, unsigned int i); | |
| 12 | int ram_option_count(const game_driver *gamedrv); | |
| 13 | int ram_is_valid_option(const game_driver *gamedrv, UINT32 ram); | |
| 14 | UINT32 ram_default(const game_driver *gamedrv); | |
| 15 | UINT32 ram_parse_string(const char *s); | |
| 16 | const char *ram_string(char *buffer, UINT32 ram); | |
| 17 | ||
| 18 | UINT8 *memory_install_ram8_handler(running_machine *machine, int cpunum, int spacenum, offs_t start, offs_t end, offs_t ram_offset, int bank); | |
| 19 | ||
| 20 | #endif |
| r2854 | r2855 | |
|---|---|---|
| 1 | /***************************************************************************** | |
| 2 | * | |
| 3 | * includes/genesis.h | |
| 4 | * | |
| 5 | ****************************************************************************/ | |
| 6 | ||
| 7 | #ifndef GENESIS_H_ | |
| 8 | #define GENESIS_H_ | |
| 9 | ||
| 10 | ||
| 11 | READ16_HANDLER( genesis_68000_z80_read ); | |
| 12 | READ16_HANDLER ( genesis_68000_io_r ); | |
| 13 | READ16_HANDLER( genesis_68000_z80_busreq_r ); | |
| 14 | READ16_HANDLER( genesis_68000_vdp_r ); | |
| 15 | READ8_HANDLER ( genesis_banked_68k_r ); | |
| 16 | WRITE8_HANDLER( genesis_z80_vdp_w ); | |
| 17 | ||
| 18 | WRITE16_HANDLER( genesis_68000_z80_write ); | |
| 19 | WRITE16_HANDLER ( genesis_68000_io_w ); | |
| 20 | WRITE16_HANDLER( genesis_68000_z80_busreq_w ); | |
| 21 | WRITE16_HANDLER ( genesis_68000_z80_reset_w ); | |
| 22 | WRITE16_HANDLER( genesis_68000_vdp_w ); | |
| 23 | WRITE8_HANDLER ( z80_ym2612_w ); | |
| 24 | WRITE8_HANDLER( genesis_z80_bank_sel_w ); | |
| 25 | ||
| 26 | VIDEO_START(genesis); | |
| 27 | VIDEO_UPDATE(genesis); | |
| 28 | MACHINE_RESET ( genesis ); | |
| 29 | INTERRUPT_GEN( genesis_interrupt ); | |
| 30 | DRIVER_INIT ( genesis ); | |
| 31 | ||
| 32 | extern UINT16 *genesis_cartridge; | |
| 33 | extern int genesis_is_ntsc; | |
| 34 | extern int genesis_region; | |
| 35 | ||
| 36 | ||
| 37 | #endif /* GENESIS_H_ */ |
| r2854 | r2855 | |
|---|---|---|
| 35 | 35 | extern int ula_nmi_active; |
| 36 | 36 | extern int ula_frame_vsync; |
| 37 | 37 | extern int ula_scanline_count; |
| 38 | extern int ula_scancode_count; | |
| 38 | //extern int ula_scancode_count; | |
| 39 | 39 | |
| 40 | 40 | |
| 41 | 41 | #endif /* ZX_H_ */ |
| r2854 | r2855 | |
|---|---|---|
| 18 | 18 | (hp48_io[(x)+3] << 12) | (hp48_io[(x)+4] << 16)) |
| 19 | 19 | |
| 20 | 20 | |
| 21 | /*----------- defined in machine/hp48.c -----------*/ | |
| 21 | 22 | |
| 22 | 23 | /*************************************************************************** |
| 23 | 24 | GLOBAL VARIABLES & CONSTANTS |
| r2854 | r2855 | |
| 57 | 58 | extern void hp48_rs232_start_recv_byte( running_machine *machine, UINT8 data ); |
| 58 | 59 | |
| 59 | 60 | |
| 60 | /****************************** video ********************************/ | |
| 61 | ||
| 62 | extern VIDEO_UPDATE ( hp48 ); | |
| 63 | extern PALETTE_INIT ( hp48 ); | |
| 64 | ||
| 65 | ||
| 66 | 61 | /****************************** cards ********************************/ |
| 67 | 62 | |
| 68 | 63 | struct hp48_port_config; |
| r2854 | r2855 | |
| 87 | 82 | extern MACHINE_START( hp48gx ); |
| 88 | 83 | |
| 89 | 84 | extern MACHINE_RESET( hp48 ); |
| 85 | ||
| 86 | /*----------- defined in video/hp48.c -----------*/ | |
| 87 | ||
| 88 | /****************************** video ********************************/ | |
| 89 | ||
| 90 | extern VIDEO_UPDATE ( hp48 ); | |
| 91 | extern PALETTE_INIT ( hp48 ); | |
| 92 | ||
| 93 |
| r2854 | r2855 | |
|---|---|---|
| 30 | 30 | /*----------- defined in video/dai.c -----------*/ |
| 31 | 31 | |
| 32 | 32 | extern const unsigned char dai_palette[16*3]; |
| 33 | ||
| 33 | ||
| 34 | 34 | VIDEO_START( dai ); |
| 35 | 35 | VIDEO_UPDATE( dai ); |
| 36 | 36 | PALETTE_INIT( dai ); |
| r2854 | r2855 | |
|---|---|---|
| 36 | 36 | |
| 37 | 37 | /*----------- defined in drivers/nc.c -----------*/ |
| 38 | 38 | |
| 39 | /* pointer to loaded data */ | |
| 40 | extern unsigned char *nc_card_ram; | |
| 41 | /* mask used to stop access over end of card ram area */ | |
| 42 | extern int nc_membank_card_ram_mask; | |
| 43 | ||
| 44 | extern unsigned long nc_display_memory_start; | |
| 45 | extern UINT8 nc_type; | |
| 46 | ||
| 39 | 47 | void nc_set_card_present_state(int); |
| 40 | 48 | |
| 41 | 49 |
| r2854 | r2855 | |
|---|---|---|
| 37 | 37 | WRITE8_HANDLER ( adam_paddle_toggle_on ); |
| 38 | 38 | WRITE8_HANDLER ( adam_memory_map_controller_w ); |
| 39 | 39 | READ8_HANDLER ( adam_memory_map_controller_r ); |
| 40 | READ8_HANDLER ( adam_mem_r ); | |
| 41 | 40 | READ8_HANDLER ( adam_video_r ); |
| 42 | 41 | WRITE8_HANDLER ( adam_video_w ); |
| 43 | 42 | WRITE8_HANDLER ( common_writes_w ); |
| r2854 | r2855 | |
|---|---|---|
| 14 | 14 | MACHINE_START( mbee ); |
| 15 | 15 | |
| 16 | 16 | extern UINT8 *mbee_workram; |
| 17 | READ8_HANDLER( mbee_lowram_r ); | |
| 18 | 17 | |
| 19 | 18 | INTERRUPT_GEN( mbee_interrupt ); |
| 20 | 19 | |
| r2854 | r2855 | |
| 29 | 28 | |
| 30 | 29 | /*----------- defined in video/mbee.c -----------*/ |
| 31 | 30 | |
| 32 | extern char mbee_frame_message[128+1]; | |
| 33 | 31 | extern int mbee_frame_counter; |
| 34 | 32 | extern UINT8 *pcgram; |
| 35 | 33 |
| r2854 | r2855 | |
|---|---|---|
| 86 | 86 | unsigned long length, unsigned int functions); |
| 87 | 87 | |
| 88 | 88 | |
| 89 | /*----------- defined in machine/nes_mmc.c -----------*/ | |
| 90 | ||
| 91 | WRITE8_HANDLER( nes_low_mapper_w ); | |
| 92 | READ8_HANDLER ( nes_low_mapper_r ); | |
| 93 | WRITE8_HANDLER( nes_mid_mapper_w ); | |
| 94 | READ8_HANDLER ( nes_mid_mapper_r ); | |
| 95 | WRITE8_HANDLER( nes_mapper_w ); | |
| 96 | ||
| 97 | ||
| 98 | 89 | /*----------- defined in video/nes.c -----------*/ |
| 99 | 90 | |
| 91 | extern bitmap_t *nes_zapper_hack; | |
| 100 | 92 | extern int nes_vram_sprite[8]; |
| 101 | 93 | |
| 102 | 94 | PALETTE_INIT( nes ); |
| r2854 | r2855 | |
|---|---|---|
| 76 | 76 | }; |
| 77 | 77 | |
| 78 | 78 | |
| 79 | /*----------- defined in drivers/z88.c -----------*/ | |
| 80 | ||
| 81 | extern struct blink_hw blink; | |
| 82 | ||
| 79 | 83 | /*----------- defined in video/z88.c -----------*/ |
| 80 | 84 | |
| 81 | 85 | extern PALETTE_INIT( z88 ); |
| r2854 | r2855 | |
|---|---|---|
| 20 | 20 | |
| 21 | 21 | /*----------- defined in video/pcw16.c -----------*/ |
| 22 | 22 | |
| 23 | extern int pcw16_colour_palette[16]; | |
| 24 | extern int pcw16_video_control; | |
| 25 | ||
| 23 | 26 | extern PALETTE_INIT( pcw16 ); |
| 24 | 27 | extern VIDEO_START( pcw16 ); |
| 25 | 28 | extern VIDEO_UPDATE( pcw16 ); |
| r2854 | r2855 | |
|---|---|---|
| 46 | 46 | |
| 47 | 47 | /*----------- defined in machine/msx.c -----------*/ |
| 48 | 48 | |
| 49 | extern MSX msx1; | |
| 49 | 50 | extern const ppi8255_interface msx_ppi8255_interface; |
| 50 | 51 | |
| 51 | 52 | /* start/stop functions */ |
| r2854 | r2855 | |
|---|---|---|
| 7 | 7 | #ifndef radio86_H_ |
| 8 | 8 | #define radio86_H_ |
| 9 | 9 | |
| 10 | #include "machine/8255ppi.h" | |
| 11 | #include "video/i8275.h" | |
| 10 | 12 | |
| 11 | 13 | /*----------- defined in machine/radio86.c -----------*/ |
| 12 | 14 |
| r2854 | r2855 | |
|---|---|---|
| 41 | 41 | WRITE8_HANDLER( mz800_ramaddr_w ); |
| 42 | 42 | WRITE8_HANDLER( mz800_palette_w ); |
| 43 | 43 | |
| 44 | WRITE8_HANDLER( pcgram_w ); | |
| 45 | ||
| 46 | 44 | DRIVER_INIT( mz800 ); |
| 47 | 45 | |
| 48 | 46 |
| r2854 | r2855 | |
|---|---|---|
| 7 | 7 | #ifndef b2m_H_ |
| 8 | 8 | #define b2m_H_ |
| 9 | 9 | |
| 10 | #include "machine/8255ppi.h" | |
| 11 | #include "machine/pit8253.h" | |
| 12 | #include "machine/pic8259.h" | |
| 10 | 13 | |
| 11 | 14 | /*----------- defined in machine/b2m.c -----------*/ |
| 12 | 15 | |
| 16 | extern UINT8 b2m_video_page; | |
| 17 | extern UINT16 b2m_video_scroll; | |
| 18 | ||
| 13 | 19 | extern const struct pit8253_config b2m_pit8253_intf; |
| 14 | 20 | |
| 15 | 21 | extern const struct pic8259_interface b2m_pic8259_config; |
| r2854 | r2855 | |
| 25 | 31 | extern MACHINE_START( b2m ); |
| 26 | 32 | extern MACHINE_RESET( b2m ); |
| 27 | 33 | extern INTERRUPT_GEN( b2m_vblank_interrupt ); |
| 28 | extern READ8_HANDLER( b2m_disk_r ); | |
| 29 | extern WRITE8_HANDLER( b2m_disk_w ); | |
| 30 | 34 | extern READ8_HANDLER( b2m_8255_0_r ); |
| 31 | 35 | extern WRITE8_HANDLER( b2m_8255_0_w ); |
| 32 | 36 | extern READ8_HANDLER( b2m_8255_1_r ); |
| r2854 | r2855 | |
| 38 | 42 | extern READ8_HANDLER( b2m_localmachine_r ); |
| 39 | 43 | extern WRITE8_HANDLER( b2m_localmachine_w ); |
| 40 | 44 | extern DEVICE_IMAGE_LOAD( b2m_floppy ); |
| 45 | ||
| 46 | ||
| 41 | 47 | /*----------- defined in video/b2m.c -----------*/ |
| 48 | ||
| 42 | 49 | extern VIDEO_START( b2m ); |
| 43 | 50 | extern VIDEO_UPDATE( b2m ); |
| 44 | 51 | extern PALETTE_INIT( b2m ); |
| 52 | ||
| 45 | 53 | #endif |
| r2854 | r2855 | |
|---|---|---|
| 10 | 10 | #define _THOMSON_H_ |
| 11 | 11 | |
| 12 | 12 | |
| 13 | /*----------- defined in machine/thomson.c -----------*/ | |
| 14 | ||
| 13 | 15 | /*************************** common ********************************/ |
| 14 | 16 | |
| 15 | 17 | /* 6821 PIAs */ |
| r2854 | r2855 | |
| 182 | 184 | extern MACHINE_RESET ( mo5nr ); |
| 183 | 185 | |
| 184 | 186 | |
| 187 | /*----------- defined in video/thomson.c -----------*/ | |
| 188 | ||
| 185 | 189 | /* |
| 186 | 190 | TO7 video: |
| 187 | 191 | one line (64 us) = |
| r2854 | r2855 | |
|---|---|---|
| 18 | 18 | extern int lynx_rotate; |
| 19 | 19 | |
| 20 | 20 | |
| 21 | /*----------- defined in video/lynx.c -----------*/ | |
| 22 | ||
| 23 | 21 | extern UINT32 lynx_palette[0x10]; |
| 24 | 22 | |
| 25 | 23 | void lynx_draw_lines(running_machine *machine, int newline); |
| r2854 | r2855 | |
|---|---|---|
| 105 | 105 | extern int cgenie_get_register(int indx); |
| 106 | 106 | |
| 107 | 107 | extern void cgenie_mode_select(int graphics); |
| 108 | extern void cgenie_invalidate_range(int l, int h); | |
| 109 | 108 | |
| 110 | 109 | |
| 111 | 110 | #endif /* CGENIE_H_ */ |
| r2854 | r2855 | |
|---|---|---|
| 33 | 33 | extern VIDEO_START( pmd85 ); |
| 34 | 34 | extern VIDEO_UPDATE( pmd85 ); |
| 35 | 35 | extern const unsigned char pmd85_palette[3*3]; |
| 36 | extern const unsigned short pmd85_colortable[1][3]; | |
| 37 | 36 | extern PALETTE_INIT( pmd85 ); |
| 38 | 37 | |
| 39 | 38 |
| r2854 | r2855 | |
|---|---|---|
| 186 | 186 | } mouse; |
| 187 | 187 | }; |
| 188 | 188 | |
| 189 | /*----------- defined in drivers/x68k.c -----------*/ | |
| 189 | 190 | |
| 190 | ||
| 191 | ||
| 191 | 192 | |
| 192 | /* | |
| 193 | extern emu_timer* scanline_timer; | |
| 194 | extern emu_timer* raster_irq; | |
| 195 | extern emu_timer* vblank_irq; | |
| 196 | ||
| 197 | #ifdef UNUSED_FUNCTION | |
| 198 | void mfp_trigger_irq(int); | |
| 193 | 199 | TIMER_CALLBACK(mfp_timer_a_callback); |
| 194 | 200 | TIMER_CALLBACK(mfp_timer_b_callback); |
| 195 | 201 | TIMER_CALLBACK(mfp_timer_c_callback); |
| 196 | 202 | TIMER_CALLBACK(mfp_timer_d_callback); |
| 197 | void mfp_trigger_irq(int); | |
| 198 | */ | |
| 203 | #endif | |
| 204 | ||
| 205 | /*----------- defined in video/x68k.c -----------*/ | |
| 206 | ||
| 207 | extern UINT16* gvram; // Graphic VRAM | |
| 208 | extern UINT16* tvram; // Text VRAM | |
| 209 | extern UINT16* x68k_spriteram; // sprite/background RAM | |
| 210 | extern UINT16* x68k_spritereg; // sprite/background registers | |
| 211 | ||
| 199 | 212 | TIMER_CALLBACK(x68k_crtc_raster_irq); |
| 200 | 213 | TIMER_CALLBACK(x68k_crtc_vblank_irq); |
| 201 | 214 | TIMER_CALLBACK(x68k_hsync); |
| r2854 | r2855 | |
|---|---|---|
| 86 | 86 | /*----------- defined in drivers/spec128.c -----------*/ |
| 87 | 87 | MACHINE_DRIVER_EXTERN( spectrum_128 ); |
| 88 | 88 | |
| 89 | extern READ8_HANDLER(spectrum_128_port_fffd_r); | |
| 90 | extern WRITE8_HANDLER(spectrum_128_port_bffd_w); | |
| 91 | extern WRITE8_HANDLER(spectrum_128_port_fffd_w); | |
| 92 | 89 | extern unsigned char *spectrum_128_screen_location; |
| 93 | 90 | extern void spectrum_128_update_memory(running_machine *machine); |
| 94 | 91 | extern int spectrum_128_port_7ffd_data; |
| r2854 | r2855 | |
| 97 | 94 | extern int spectrum_plus3_port_1ffd_data; |
| 98 | 95 | extern void spectrum_plus3_update_memory(running_machine *machine); |
| 99 | 96 | |
| 100 | /*----------- defined in drivers/ | |
| 97 | /*----------- defined in drivers/timex | |
| 101 | 98 | extern void ts2068_update_memory(running_machine *machine); |
| 102 | 99 | extern int ts2068_port_ff_data; |
| 103 | 100 | extern int ts2068_port_f4_data; |
| r2854 | r2855 | |
|---|---|---|
| 26 | 26 | extern UINT8 *c128_external_function; |
| 27 | 27 | extern UINT8 *c128_vdcram; |
| 28 | 28 | |
| 29 | READ8_HANDLER(c128_m6510_port_r); | |
| 30 | 29 | WRITE8_HANDLER(c128_mmu8722_port_w); |
| 31 | 30 | READ8_HANDLER(c128_mmu8722_port_r); |
| 32 | 31 | WRITE8_HANDLER(c128_mmu8722_ff00_w); |
| r2854 | r2855 | |
|---|---|---|
| 20 | 20 | MC6845_UPDATE_ROW( pet80_update_row ); |
| 21 | 21 | MC6845_ON_DE_CHANGED( pet_display_enable_changed ); |
| 22 | 22 | |
| 23 | extern int pet_font; | |
| 24 | 23 | |
| 25 | ||
| 26 | 24 | /*----------- defined in machine/pet.c -----------*/ |
| 27 | 25 | |
| 26 | extern int pet_font; | |
| 27 | ||
| 28 | 28 | extern UINT8 *pet_memory; |
| 29 | 29 | extern UINT8 *pet_videoram; |
| 30 | 30 | extern UINT8 *superpet_memory; |
| r2854 | r2855 | |
|---|---|---|
| 18 | 18 | #define PCW_SCREEN_HEIGHT (PCW_DISPLAY_HEIGHT + (PCW_BORDER_HEIGHT<<1)) |
| 19 | 19 | |
| 20 | 20 | |
| 21 | /*----------- defined in drivers/pcw.c -----------*/ | |
| 22 | ||
| 23 | extern unsigned int roller_ram_addr; | |
| 24 | extern unsigned short roller_ram_offset; | |
| 25 | extern unsigned char pcw_vdu_video_control_register; | |
| 26 | ||
| 21 | 27 | /*----------- defined in video/pcw.c -----------*/ |
| 22 | 28 | |
| 23 | 29 | extern VIDEO_START( pcw ); |
| r2854 | r2855 | |
|---|---|---|
| 23 | 23 | |
| 24 | 24 | /*----------- defined in video/orao.c -----------*/ |
| 25 | 25 | |
| 26 | extern PALETTE_INIT( orao ); | |
| 27 | 26 | extern VIDEO_START( orao ); |
| 28 | 27 | extern VIDEO_UPDATE( orao ); |
| 29 | 28 |
| r2854 | r2855 | |
|---|---|---|
| 13 | 13 | |
| 14 | 14 | /*----------- defined in machine/atom.c -----------*/ |
| 15 | 15 | |
| 16 | extern UINT8 atom_8255_porta; | |
| 17 | extern UINT8 atom_8255_portc; | |
| 18 | ||
| 16 | 19 | extern const ppi8255_interface atom_8255_int; |
| 17 | 20 | |
| 18 | 21 | MACHINE_RESET( atom ); |
| r2854 | r2855 | |
|---|---|---|
| 10 | 10 | |
| 11 | 11 | /*----------- defined in machine/coleco.c -----------*/ |
| 12 | 12 | |
| 13 | extern int JoyStat[2]; | |
| 14 | ||
| 13 | 15 | int coleco_cart_verify(const UINT8 *buf, size_t size); |
| 14 | 16 | |
| 15 | 17 | READ8_HANDLER ( coleco_paddle_r ); |
| r2854 | r2855 | |
|---|---|---|
| 10 | 10 | |
| 11 | 11 | /*----------- defined in video/apf.c -----------*/ |
| 12 | 12 | |
| 13 | extern unsigned char *apf_video_ram; | |
| 14 | ||
| 15 | extern unsigned char apf_ints; | |
| 16 | ||
| 13 | 17 | VIDEO_START(apf); |
| 14 | 18 | extern UINT8 apf_m6847_attr; |
| 15 | 19 |
| r2854 | r2855 | |
|---|---|---|
| 20 | 20 | |
| 21 | 21 | extern const gfx_layout galeb_charlayout; |
| 22 | 22 | |
| 23 | extern PALETTE_INIT( galeb ); | |
| 24 | 23 | extern VIDEO_START( galeb ); |
| 25 | 24 | extern VIDEO_UPDATE( galeb ); |
| 26 | 25 |
| r2854 | r2855 | |
|---|---|---|
| 7 | 7 | #ifndef partner_H_ |
| 8 | 8 | #define partner_H_ |
| 9 | 9 | |
| 10 | #include "machine/8255ppi.h" | |
| 11 | #include "video/i8275.h" | |
| 10 | 12 | |
| 11 | 13 | /*----------- defined in machine/partner.c -----------*/ |
| 12 | 14 |
| r2854 | r2855 | |
|---|---|---|
| 7 | 7 | #ifndef MIKROSHA_H_ |
| 8 | 8 | #define MIKROSHA_H_ |
| 9 | 9 | |
| 10 | #include "machine/8255ppi.h" | |
| 11 | #include "video/i8275.h" | |
| 10 | 12 | |
| 11 | 13 | /*----------- defined in machine/mikrosha.c -----------*/ |
| 12 | 14 |
| r2854 | r2855 | |
|---|---|---|
| 7 | 7 | #ifndef ORION_H_ |
| 8 | 8 | #define ORION_H_ |
| 9 | 9 | |
| 10 | #include "machine/8255ppi.h" | |
| 10 | 11 | |
| 11 | 12 | /*----------- defined in machine/orion.c -----------*/ |
| 12 | 13 | |
| 14 | extern UINT8 orion128_video_mode; | |
| 15 | extern UINT8 orion128_video_page; | |
| 16 | extern UINT8 orion128_video_width; | |
| 17 | extern UINT8 orion_video_mode_mask ; | |
| 18 | extern UINT8 orionpro_pseudo_color; | |
| 19 | ||
| 13 | 20 | extern const ppi8255_interface orion128_ppi8255_interface_1; |
| 14 | 21 | extern const ppi8255_interface orion128_ppi8255_interface_2; |
| 15 | 22 |
| r2854 | r2855 | |
|---|---|---|
| 10 | 10 | |
| 11 | 11 | /*----------- defined in machine/bk.c -----------*/ |
| 12 | 12 | |
| 13 | extern UINT16 bk_scrool; | |
| 14 | ||
| 13 | 15 | extern DRIVER_INIT( bk0010 ); |
| 14 | 16 | extern MACHINE_RESET( bk0010 ); |
| 15 | 17 |
| r2854 | r2855 | |
|---|---|---|
| 32 | 32 | |
| 33 | 33 | READ8_HANDLER ( a7800_TIA_r ); |
| 34 | 34 | WRITE8_HANDLER ( a7800_TIA_w ); |
| 35 | READ8_HANDLER ( a7800_RIOT_r ); | |
| 36 | 35 | WRITE8_HANDLER ( a7800_RAM0_w ); |
| 37 | 36 | WRITE8_HANDLER ( a7800_cart_w ); |
| 38 | 37 |
| r2854 | r2855 | |
|---|---|---|
| 7 | 7 | #ifndef APOGEE_H_ |
| 8 | 8 | #define APOGEE_H_ |
| 9 | 9 | |
| 10 | #include "machine/8255ppi.h" | |
| 11 | #include "video/i8275.h" | |
| 10 | 12 | |
| 11 | 13 | /*----------- defined in machine/apogee.c -----------*/ |
| 12 | 14 |
| r2854 | r2855 | |
|---|---|---|
| 3 | 3 | |
| 4 | 4 | #include "sound/custom.h" |
| 5 | 5 | |
| 6 | /*----------- defined in audio/gmaster.c -----------*/ | |
| 7 | ||
| 6 | 8 | int gmaster_io_callback(int ioline, int state); |
| 7 | 9 | void* gmaster_custom_start (int clock, const struct CustomSound_interface *config); |
| 8 | 10 | //extern void gmaster_custom_stop (void); |
| r2854 | r2855 | |
|---|---|---|
| 8 | 8 | #define SPECIAL_H_ |
| 9 | 9 | |
| 10 | 10 | #include "machine/8255ppi.h" |
| 11 | #include "machine/pit8253.h" | |
| 11 | 12 | |
| 12 | 13 | /*----------- defined in machine/special.c -----------*/ |
| 13 | 14 | |
| 15 | extern UINT8 *specimx_colorram; | |
| 14 | 16 | extern const struct pit8253_config specimx_pit8253_intf; |
| 15 | 17 | extern const ppi8255_interface specialist_ppi8255_interface; |
| 16 | 18 | |
| r2854 | r2855 | |
| 46 | 48 | |
| 47 | 49 | /*----------- defined in video/special.c -----------*/ |
| 48 | 50 | |
| 51 | extern UINT8 erik_color_1; | |
| 52 | extern UINT8 erik_color_2; | |
| 53 | extern UINT8 erik_background; | |
| 54 | ||
| 49 | 55 | extern UINT8 *specialist_video_ram; |
| 50 | extern UINT8 *specimx_colorram; | |
| 51 | 56 | |
| 52 | 57 | extern UINT8 *erik_video_ram_page_1; |
| 53 | 58 | extern UINT8 *erik_video_ram_page_2; |
| r2854 | r2855 | |
| 66 | 71 | extern PALETTE_INIT( erik ); |
| 67 | 72 | |
| 68 | 73 | extern PALETTE_INIT( specimx ); |
| 69 | extern rgb_t specimx_palette; | |
| 74 | extern const rgb_t specimx_palette[16]; | |
| 70 | 75 | |
| 71 | 76 | /*----------- defined in audio/special.c -----------*/ |
| 72 | 77 |
| r2854 | r2855 | |
|---|---|---|
| 11 | 11 | /*----------- defined in video/intv.c -----------*/ |
| 12 | 12 | |
| 13 | 13 | extern VIDEO_START( intv ); |
| 14 | extern VIDEO_UPDATE( intv ); | |
| 15 | 14 | extern VIDEO_UPDATE( intvkbd ); |
| 16 | 15 | |
| 17 | 16 | void stic_screenrefresh(running_machine *machine); |
| r2854 | r2855 | |
|---|---|---|
| 23 | 23 | |
| 24 | 24 | /*----------- defined in video/jupiter.c -----------*/ |
| 25 | 25 | |
| 26 | VIDEO_START( jupiter ); | |
| 27 | 26 | VIDEO_UPDATE( jupiter ); |
| 28 | 27 | WRITE8_HANDLER( jupiter_vh_charram_w ); |
| 29 | 28 | extern unsigned char *jupiter_charram; |
| r2854 | r2855 | |
|---|---|---|
| 7 | 7 | #ifndef MIKRO80_H_ |
| 8 | 8 | #define MIKRO80_H_ |
| 9 | 9 | |
| 10 | #include "machine/8255ppi.h" | |
| 10 | 11 | |
| 11 | 12 | /*----------- defined in machine/mikro80.c -----------*/ |
| 12 | 13 |
| r2854 | r2855 | |
|---|---|---|
| 8 | 8 | #define SSYSTEM3_H_ |
| 9 | 9 | |
| 10 | 10 | |
| 11 | /*----------- defined in drivers/ssystem3.c -----------*/ | |
| 12 | ||
| 11 | 13 | void ssystem3_playfield_getfigure(int x, int y, int *figure, int *black); |
| 12 | 14 | |
| 13 | 15 | /*----------- defined in video/ssystem3.c -----------*/ |
| r2854 | r2855 | |
|---|---|---|
| 24 | 24 | |
| 25 | 25 | /*----------- defined in drivers/amstrad.c -----------*/ |
| 26 | 26 | |
| 27 | extern int amstrad_plus_asic_enabled; | |
| 28 | extern int amstrad_plus_pri; | |
| 29 | extern int amstrad_system_type; | |
| 30 | extern int amstrad_plus_irq_cause; | |
| 31 | extern int amstrad_plus_scroll_x; | |
| 32 | extern int amstrad_plus_scroll_y; | |
| 33 | extern int amstrad_plus_scroll_border; | |
| 34 | ||
| 35 | extern int amstrad_plus_dma_status; | |
| 36 | extern int amstrad_plus_dma_0_addr; // DMA channel address | |
| 37 | extern int amstrad_plus_dma_1_addr; | |
| 38 | extern int amstrad_plus_dma_2_addr; | |
| 39 | extern int amstrad_plus_dma_prescaler[3]; // DMA channel prescaler | |
| 40 | ||
| 41 | extern unsigned char *amstrad_plus_asic_ram; | |
| 42 | ||
| 43 | extern int aleste_mode; | |
| 44 | ||
| 27 | 45 | void amstrad_reset_machine(running_machine *machine); |
| 28 | 46 | void amstrad_GateArray_write(running_machine *machine,int); |
| 29 | 47 | void amstrad_rethinkMemory(running_machine *machine); |
| r2854 | r2855 | |
| 78 | 96 | #define AMSTRAD_FPS 50.080128205128205 |
| 79 | 97 | |
| 80 | 98 | extern VIDEO_START( amstrad ); |
| 81 | extern VIDEO_START( aleste ); | |
| 82 | 99 | extern VIDEO_UPDATE( amstrad ); |
| 83 | 100 | void amstrad_vh_execute_crtc_cycles(int); |
| 84 | 101 | void amstrad_vh_update_colour(int, int); |
| r2854 | r2855 | |
| 107 | 124 | extern PALETTE_INIT( aleste ); |
| 108 | 125 | void aleste_vh_update_colour(int, int); |
| 109 | 126 | |
| 127 | extern int prev_reg; | |
| 128 | ||
| 129 | /* The gate array counts CRTC HSYNC pulses. (It has a internal 6-bit counter). */ | |
| 130 | extern int amstrad_CRTC_HS_Counter; | |
| 131 | ||
| 110 | 132 | #endif /* AMSTRAD_H_ */ |
| r2854 | r2855 | |
|---|---|---|
| 65 | 65 | READ8_HANDLER( comx35_io2_r ); |
| 66 | 66 | WRITE8_HANDLER( comx35_io_w ); |
| 67 | 67 | |
| 68 | WRITE8_HANDLER( pl80_port_a_w ); | |
| 69 | WRITE8_HANDLER( pl80_port_c_w ); | |
| 70 | WRITE8_HANDLER( pl80_port_d_w ); | |
| 71 | READ8_HANDLER( pl80_port_d_r ); | |
| 72 | ||
| 73 | 68 | MACHINE_START( comx35p ); |
| 74 | 69 | MACHINE_START( comx35n ); |
| 75 | 70 | MACHINE_RESET( comx35 ); |
| r2854 | r2855 | |
|---|---|---|
| 49 | 49 | |
| 50 | 50 | /*----------- defined in video/trs80.c -----------*/ |
| 51 | 51 | |
| 52 | VIDEO_START( trs80 ); | |
| 53 | 52 | VIDEO_UPDATE( trs80 ); |
| 54 | 53 | |
| 55 | 54 | WRITE8_HANDLER( trs80_videoram_w ); |
| r2854 | r2855 | |
|---|---|---|
| 30 | 30 | |
| 31 | 31 | /*----------- defined in video/odyssey2.c -----------*/ |
| 32 | 32 | |
| 33 | extern int odyssey2_vh_hpos; | |
| 34 | ||
| 35 | 33 | extern const UINT8 odyssey2_colors[]; |
| 36 | 34 | |
| 37 | 35 | VIDEO_START( odyssey2 ); |
| r2854 | r2855 | |
| 46 | 44 | |
| 47 | 45 | extern const struct CustomSound_interface odyssey2_sound_interface; |
| 48 | 46 | |
| 47 | void ef9341_w( int command, int b, UINT8 data ); | |
| 48 | UINT8 ef9341_r( int command, int b ); | |
| 49 | ||
| 49 | 50 | /*----------- defined in machine/odyssey2.c -----------*/ |
| 50 | 51 | |
| 51 | 52 | DRIVER_INIT( odyssey2 ); |
| r2854 | r2855 | |
| 69 | 70 | |
| 70 | 71 | READ8_HANDLER ( g7400_bus_r ); |
| 71 | 72 | WRITE8_HANDLER ( g7400_bus_w ); |
| 72 | void ef9341_w( int command, int b, UINT8 data ); | |
| 73 | UINT8 ef9341_r( int command, int b ); | |
| 74 | 73 | |
| 75 | 74 | int odyssey2_cart_verify(const UINT8 *cartdata, size_t size); |
| 76 | 75 |
| r2854 | r2855 | |
|---|---|---|
| 45 | 45 | |
| 46 | 46 | MACHINE_START( c64 ); |
| 47 | 47 | INTERRUPT_GEN( c64_frame_interrupt ); |
| 48 | INTERRUPT_GEN( c128_frame_interrupt ); | |
| 49 | 48 | |
| 50 | 49 | void c64_rom_load(running_machine *machine); |
| 51 | 50 | void c64_rom_recognition (void); |
| r2854 | r2855 | |
|---|---|---|
| 19 | 19 | extern INTERRUPT_GEN( galaxy_interrupt ); |
| 20 | 20 | extern SNAPSHOT_LOAD( galaxy ); |
| 21 | 21 | extern READ8_HANDLER( galaxy_keyboard_r ); |
| 22 | extern READ8_HANDLER( galaxy_latch_r ); | |
| 23 | 22 | extern WRITE8_HANDLER( galaxy_latch_w ); |
| 24 | 23 | |
| 25 | 24 | extern MACHINE_RESET( galaxyp ); |
| 26 | 25 | |
| 27 | extern UINT32 gal_cnt; | |
| 28 | 26 | extern UINT8 gal_latch_value; |
| 29 | 27 | |
| 30 | 28 | extern DRIVER_INIT( galaxyp ); |
| 31 | ||
| 29 | ||
| 32 | 30 | /*----------- defined in video/galaxy.c -----------*/ |
| 33 | 31 | |
| 32 | extern UINT32 gal_cnt; | |
| 34 | 33 | extern const gfx_layout galaxy_charlayout; |
| 35 | 34 | extern const unsigned char galaxy_palette[2*3]; |
| 36 | 35 | extern PALETTE_INIT( galaxy ); |
| r2854 | r2855 | |
|---|---|---|
| 1 | 1 | #ifndef _GAMEPOCK_H_ |
| 2 | 2 | #define _GAMEPOCK_H_ |
| 3 | 3 | |
| 4 | /*----------- defined in machine/gamepock.c -----------*/ | |
| 5 | ||
| 4 | 6 | MACHINE_RESET( gamepock ); |
| 5 | 7 | |
| 6 | 8 | VIDEO_UPDATE( gamepock ); |
| r2854 | r2855 | |
|---|---|---|
| 39 | 39 | palette_set_colors(machine, 0, nc_palette, ARRAY_LENGTH(nc_palette)); |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | extern int nc_display_memory_start; | |
| 43 | extern UINT8 nc_type; | |
| 44 | ||
| 45 | 42 | static int nc200_backlight = 0; |
| 46 | 43 | |
| 47 | 44 | void nc200_video_set_backlight(int state) |
| r2854 | r2855 | |
|---|---|---|
| 42 | 42 | palette_set_colors(machine, 0, z88_palette, ARRAY_LENGTH(z88_palette)); |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | extern struct blink_hw blink; | |
| 46 | ||
| 47 | 45 | /* temp - change to gfxelement structure */ |
| 48 | 46 | |
| 49 | 47 | static void z88_vh_render_8x8(bitmap_t *bitmap, int x, int y, int pen0, int pen1, unsigned char *pData) |
| r2854 | r2855 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | 2 | #include "video/cdp1869.h" |
| 3 | #include "includes/tmc600.h" | |
| 3 | 4 | |
| 4 | 5 | #define SCREEN_TAG "main" |
| 5 | 6 | #define CDP1869_TAG "cdp1869" |
| r2854 | r2855 | |
|---|---|---|
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | 11 | #include "video/i8275.h" |
| 12 | #include "includes/radio86.h" | |
| 12 | 13 | |
| 13 | 14 | I8275_DISPLAY_PIXELS(radio86_display_pixels) |
| 14 | 15 | { |
| r2854 | r2855 | |
|---|---|---|
| 129 | 129 | int Nick_vh_start(void); |
| 130 | 130 | void Nick_DoScreen(bitmap_t *bm); |
| 131 | 131 | |
| 132 | #if 0 | |
| 132 | 133 | int Nick_reg_r(int); |
| 134 | #endif | |
| 133 | 135 | WRITE8_HANDLER ( Nick_reg_w ); |
| 134 | 136 | |
| 135 | 137 |
| r2854 | r2855 | |
|---|---|---|
| 8 | 8 | |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "includes/b2m.h" | |
| 11 | 12 | |
| 12 | extern UINT8 b2m_video_page; | |
| 13 | extern UINT16 b2m_video_scroll; | |
| 14 | 13 | VIDEO_START( b2m ) |
| 15 | 14 | { |
| 16 | 15 | } |
| r2854 | r2855 | |
|---|---|---|
| 29 | 29 | #include "includes/x68k.h" |
| 30 | 30 | #include "machine/68901mfp.h" |
| 31 | 31 | |
| 32 | extern struct x68k_system sys; | |
| 33 | ||
| 34 | extern emu_timer* scanline_timer; | |
| 35 | extern emu_timer* raster_irq; | |
| 36 | extern emu_timer* vblank_irq; | |
| 37 | ||
| 38 | 32 | UINT16* gvram; // Graphic VRAM |
| 39 | 33 | UINT16* tvram; // Text VRAM |
| 40 | 34 | UINT16* x68k_spriteram; // sprite/background RAM |
| r2854 | r2855 | |
| 54 | 48 | static tilemap* x68k_bg0_16; // two 64x64 tilemaps, 16x16 characters |
| 55 | 49 | static tilemap* x68k_bg1_16; |
| 56 | 50 | |
| 57 | extern unsigned int x68k_scanline; | |
| 58 | 51 | static int sprite_shift; |
| 59 | 52 | |
| 60 | 53 | static void x68k_render_video_word(int offset); |
| r2854 | r2855 | |
|---|---|---|
| 87 | 87 | WRITE16_HANDLER( atarist_blitter_count_x_w ); |
| 88 | 88 | WRITE16_HANDLER( atarist_blitter_count_y_w ); |
| 89 | 89 | WRITE16_HANDLER( atarist_blitter_op_w ); |
| 90 | WRITE16_HANDLER( atarist_blitter_op_w ); | |
| 91 | 90 | WRITE16_HANDLER( atarist_blitter_ctrl_w ); |
| 92 | 91 | |
| 93 | 92 | /* Video */ |
| r2854 | r2855 | |
|---|---|---|
| 22 | 22 | { |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | extern unsigned int roller_ram_addr; | |
| 26 | extern unsigned short roller_ram_offset; | |
| 27 | extern unsigned char pcw_vdu_video_control_register; | |
| 28 | ||
| 29 | 25 | /* two colours */ |
| 30 | 26 | static const unsigned short pcw_colour_table[PCW_NUM_COLOURS] = |
| 31 | 27 | { |
| r2854 | r2855 | |
|---|---|---|
| 8 | 8 | ****************************************************************************/ |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "includes/orao.h" | |
| 11 | 12 | |
| 12 | 13 | #define ORAO_VIDEO_MEMORY 0x6000 |
| 13 | 14 |
| r2854 | r2855 | |
|---|---|---|
| 7 | 7 | |
| 8 | 8 | #include "driver.h" |
| 9 | 9 | #include "video/m6847.h" |
| 10 | #include "includes/atom.h" | |
| 10 | 11 | |
| 11 | 12 | |
| 12 | 13 | static ATTR_CONST UINT8 atom_get_attributes(UINT8 c) |
| 13 | 14 | { |
| 14 | extern UINT8 atom_8255_porta; | |
| 15 | extern UINT8 atom_8255_portc; | |
| 16 | 15 | UINT8 result = 0x00; |
| 17 | 16 | if (c & 0x40) result |= M6847_AS | M6847_INTEXT; |
| 18 | 17 | if (c & 0x80) result |= M6847_INV; |
| r2854 | r2855 | |
|---|---|---|
| 9 | 9 | ******************************************************************************/ |
| 10 | 10 | |
| 11 | 11 | #include "driver.h" |
| 12 | #include "includes/mekd2.h" | |
| 12 | 13 | |
| 13 | 14 | PALETTE_INIT( mekd2 ) |
| 14 | 15 | { |
| r2854 | r2855 | |
|---|---|---|
| 33 | 33 | |
| 34 | 34 | static void apf_vsync_int(int line) |
| 35 | 35 | { |
| 36 | extern unsigned int apf_ints; | |
| 37 | 36 | if (line) |
| 38 | 37 | apf_ints |= 0x10; |
| 39 | 38 | else |
| r2854 | r2855 | |
|---|---|---|
| 9 | 9 | |
| 10 | 10 | |
| 11 | 11 | #include "driver.h" |
| 12 | #include "includes/galeb.h" | |
| 12 | 13 | |
| 13 | 14 | #define GALEB_VIDEO_MEMORY 0xB000 |
| 14 | 15 |
| r2854 | r2855 | |
|---|---|---|
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | 11 | #include "video/i8275.h" |
| 12 | #include "includes/partner.h" | |
| 12 | 13 | |
| 13 | 14 | I8275_DISPLAY_PIXELS(partner_display_pixels) |
| 14 | 15 | { |
| r2854 | r2855 | |
|---|---|---|
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | 11 | #include "video/i8275.h" |
| 12 | #include "includes/mikrosha.h" | |
| 12 | 13 | |
| 13 | 14 | UINT8 mikrosha_font_page; |
| 14 | 15 |
| r2854 | r2855 | |
|---|---|---|
| 9 | 9 | |
| 10 | 10 | |
| 11 | 11 | #include "driver.h" |
| 12 | #include "includes/orion.h" | |
| 12 | 13 | |
| 13 | 14 | |
| 14 | 15 | VIDEO_START( orion128 ) |
| 15 | 16 | { |
| 16 | 17 | } |
| 17 | 18 | |
| 18 | extern UINT8 orion128_video_mode; | |
| 19 | extern UINT8 orion128_video_page; | |
| 20 | extern UINT8 orion128_video_width; | |
| 21 | extern UINT8 orion_video_mode_mask ; | |
| 22 | extern UINT8 orionpro_pseudo_color; | |
| 23 | ||
| 24 | 19 | VIDEO_UPDATE( orion128 ) |
| 25 | 20 | { |
| 26 | 21 | UINT8 code1,code2,code3,code4,color,val; |
| r2854 | r2855 | |
|---|---|---|
| 8 | 8 | |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "includes/bk.h" | |
| 11 | 12 | |
| 12 | 13 | UINT16 *bk0010_video_ram; |
| 13 | extern UINT16 bk_scrool; | |
| 14 | 14 | |
| 15 | 15 | VIDEO_START( bk0010 ) |
| 16 | 16 | { |
| r2854 | r2855 | |
|---|---|---|
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | 11 | #include "video/i8275.h" |
| 12 | #include "includes/apogee.h" | |
| 12 | 13 | |
| 13 | 14 | I8275_DISPLAY_PIXELS(apogee_display_pixels) |
| 14 | 15 | { |
| r2854 | r2855 | |
|---|---|---|
| 13 | 13 | #include "includes/amstr_pc.h" |
| 14 | 14 | #include "video/mc6845.h" |
| 15 | 15 | #include "video/pc_video.h" |
| 16 | #include "video/cgapal.h" | |
| 16 | 17 | |
| 17 | 18 | |
| 18 | 19 | #define CGA_MONITOR (input_port_read(machine, "VIDEO") & 0x1C) |
| r2854 | r2855 | |
|---|---|---|
| 80 | 80 | #include "video/pc_cga.h" |
| 81 | 81 | #include "video/mc6845.h" |
| 82 | 82 | #include "video/pc_video.h" |
| 83 | #include "video/cgapal.h" | |
| 83 | 84 | #include "memconv.h" |
| 84 | 85 | |
| 85 | 86 | #define VERBOSE_CGA 0 /* CGA (Color Graphics Adapter) */ |
| r2854 | r2855 | |
| 98 | 99 | static PALETTE_INIT( pc_cga ); |
| 99 | 100 | |
| 100 | 101 | |
| 101 | /* In cgapal.c; it's quite big */ | |
| 102 | extern const unsigned char cga_palette[16 * CGA_PALETTE_SETS][3]; | |
| 103 | ||
| 104 | ||
| 105 | 102 | INPUT_PORTS_START( pcvideo_cga ) |
| 106 | 103 | PORT_START_TAG( "pcvideo_cga_config" ) |
| 107 | 104 | PORT_CONFNAME( 0x03, 0x00, "CGA character set") |
| r2854 | r2855 | |
|---|---|---|
| 8 | 8 | |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "includes/special.h" | |
| 11 | 12 | |
| 12 | 13 | UINT8 *specialist_video_ram; |
| 13 | 14 | //UINT8 erik_page_active; |
| r2854 | r2855 | |
| 86 | 87 | } |
| 87 | 88 | |
| 88 | 89 | |
| 89 | extern UINT8 *specimx_colorram; | |
| 90 | ||
| 91 | 90 | VIDEO_START( specimx ) |
| 92 | 91 | { |
| 93 | 92 | specimx_colorram = auto_malloc (0x3000); |
| r2854 | r2855 | |
|---|---|---|
| 8 | 8 | #define CGA_SCREEN_NAME "cga_screen" |
| 9 | 9 | #define CGA_MC6845_NAME "mc6845_cga" |
| 10 | 10 | |
| 11 | extern const unsigned char cga_palette[CGA_PALETTE_SETS * 16][3]; | |
| 12 | ||
| 13 | 11 | MACHINE_DRIVER_EXTERN( pcvideo_cga ); |
| 14 | 12 | INPUT_PORTS_EXTERN( pcvideo_cga ); |
| 15 | 13 | INPUT_PORTS_EXTERN( pcvideo_cga_at ); |
| r2854 | r2855 | |
|---|---|---|
| 8 | 8 | |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "includes/mikro80.h" | |
| 11 | 12 | |
| 12 | 13 | UINT8 *mikro80_video_ram; |
| 13 | 14 | UINT8 *mikro80_cursor_ram; |
| r2854 | r2855 | |
|---|---|---|
| 20 | 20 | static m6845_state amstrad_vidhrdw_6845_state; |
| 21 | 21 | int prev_reg; |
| 22 | 22 | |
| 23 | extern int amstrad_plus_asic_enabled; | |
| 24 | extern int amstrad_plus_pri; | |
| 25 | extern int amstrad_system_type; | |
| 26 | extern int amstrad_plus_irq_cause; | |
| 27 | extern int amstrad_plus_scroll_x; | |
| 28 | extern int amstrad_plus_scroll_y; | |
| 29 | extern int amstrad_plus_scroll_border; | |
| 30 | ||
| 31 | extern int amstrad_plus_dma_status; | |
| 32 | extern int amstrad_plus_dma_0_addr; // DMA channel address | |
| 33 | extern int amstrad_plus_dma_1_addr; | |
| 34 | extern int amstrad_plus_dma_2_addr; | |
| 35 | extern int amstrad_plus_dma_prescaler[3]; // DMA channel prescaler | |
| 36 | ||
| 37 | 23 | static int amstrad_plus_dma_repeat[3]; // marks the location of the channels' last repeat |
| 38 | 24 | static int amstrad_plus_dma_pause[3]; // pause count |
| 39 | 25 | static int amstrad_plus_dma_loopcount[3]; // counts loops taken on this channel |
| 40 | 26 | |
| 41 | extern unsigned char *amstrad_plus_asic_ram; | |
| 42 | ||
| 43 | 27 | static int amstrad_plus_split_scanline; // ASIC split screen |
| 44 | 28 | static int amstrad_plus_split_address; |
| 45 | 29 | static int amstrad_screen_width; // width in bytes |
| 46 | 30 | |
| 47 | 31 | static void amstrad_plus_handle_dma(running_machine *machine); |
| 48 | 32 | |
| 49 | extern int aleste_mode; | |
| 50 | ||
| 51 | #ifdef MAME_DEBUG | |
| 52 | extern int amstrad_plus_lower_enabled; | |
| 53 | #endif | |
| 54 | ||
| 55 | 33 | /*************************************************************************** |
| 56 | 34 | Start the video hardware emulation. |
| 57 | 35 | ***************************************************************************/ |
| r2854 | r2855 | |
|---|---|---|
| 8 | 8 | |
| 9 | 9 | |
| 10 | 10 | #include "driver.h" |
| 11 | #include "includes/ut88.h" | |
| 11 | 12 | |
| 12 | 13 | UINT8 *ut88_video_ram; |
| 13 | 14 |
| r2854 | r2855 | |
|---|---|---|
| 110 | 110 | int m6845_display_enabled_r(int offset); |
| 111 | 111 | int m6845_cursor_enabled_r(int offset); |
| 112 | 112 | |
| 113 | #if 0 | |
| 113 | 114 | void m6845_recalc(int offset, int cycles); |
| 115 | #endif | |
| 114 | 116 | |
| 115 | 117 | void m6845_set_state(int offset, m6845_state *state); |
| 116 | 118 | void m6845_get_state(int offset, m6845_state *state); |
| r2854 | r2855 | |
|---|---|---|
| 50 | 50 | |
| 51 | 51 | #if NCR5380_DEVICE_CONVERSION |
| 52 | 52 | #define NCR5380 DEVICE_GET_INFO_NAME(ncr5380) |
| 53 | ||
| 54 | DEVICE_GET_INFO(scsi5380); | |
| 55 | 53 | #endif |
| 56 | 54 | |
| 57 | 55 | #endif |
| r2854 | r2855 | |
|---|---|---|
| 26 | 26 | #include "sound/2413intf.h" |
| 27 | 27 | #include "sound/dac.h" |
| 28 | 28 | |
| 29 | extern MSX msx1; | |
| 30 | ||
| 31 | 29 | static void msx_cpu_setbank (running_machine *machine, int page, UINT8 *mem) |
| 32 | 30 | { |
| 33 | 31 | switch (page) { |
| r2854 | r2855 | |
|---|---|---|
| 37 | 37 | |
| 38 | 38 | /******************* 8-bit A/B port interfaces ******************************/ |
| 39 | 39 | |
| 40 | READ8_DEVICE_HANDLER( ins8154_porta_r ); | |
| 41 | READ8_DEVICE_HANDLER( ins8154_portb_r ); | |
| 42 | 40 | WRITE8_DEVICE_HANDLER( ins8154_porta_w ); |
| 43 | 41 | WRITE8_DEVICE_HANDLER( ins8154_portb_w ); |
| 44 | 42 |
| r2854 | r2855 | |
|---|---|---|
| 19 | 19 | #include "machine/msm8251.h" |
| 20 | 20 | #include "sound/custom.h" |
| 21 | 21 | #include "streams.h" |
| 22 | #include "includes/b2m.h" | |
| 22 | 23 | |
| 23 | 24 | static int b2m_8255_porta; |
| 24 | 25 | UINT16 b2m_video_scroll; |
| r2854 | r2855 | |
|---|---|---|
| 664 | 664 | } |
| 665 | 665 | |
| 666 | 666 | /* delivers status for displaying */ |
| 667 | ||
| 667 | ||
| 668 | 668 | { |
| 669 | 669 | #if 1||VERBOSE_DBG |
| 670 | 670 | if (vc1541->type==TypeVC1541) { |
| r2854 | r2855 | |
|---|---|---|
| 10 | 10 | #include "driver.h" |
| 11 | 11 | #include "sound/dac.h" |
| 12 | 12 | #include "devices/cassette.h" |
| 13 | #include "includes/orao.h" | |
| 13 | 14 | |
| 14 | 15 | UINT8 *orao_memory; |
| 15 | 16 |
| r2854 | r2855 | |
|---|---|---|
| 10 | 10 | |
| 11 | 11 | #include "driver.h" |
| 12 | 12 | #include "sound/dac.h" |
| 13 | #include "includes/galeb.h" | |
| 13 | 14 | |
| 14 | 15 | |
| 15 | 16 | /* Driver initialization */ |
| r2854 | r2855 | |
|---|---|---|
| 17 | 17 | *********************************************************************************/ |
| 18 | 18 | |
| 19 | 19 | #include "driver.h" |
| 20 | #include "machine/cbmipt.h" | |
| 20 | 21 | |
| 21 | ||
| 22 | 22 | /***************************** Commodore 64 **************************************** |
| 23 | 23 | * |
| 24 | 24 | * - common_cbm_keyboard: C64 keyboard; used by C16, C65 and C128 as well |
| r2854 | r2855 | |
|---|---|---|
| 17 | 17 | #include "machine/wd17xx.h" |
| 18 | 18 | #include "sound/speaker.h" |
| 19 | 19 | #include "sound/ay8910.h" |
| 20 | #include "includes/orion.h" | |
| 20 | 21 | |
| 21 | 22 | #define SCREEN_WIDTH_384 48 |
| 22 | 23 | #define SCREEN_WIDTH_480 60 |
| r2854 | r2855 | |
|---|---|---|
| 10 | 10 | #include "driver.h" |
| 11 | 11 | #include "devices/cassette.h" |
| 12 | 12 | #include "machine/8255ppi.h" |
| 13 | #include "includes/bk.h" | |
| 13 | 14 | |
| 14 | 15 | static UINT16 kbd_state; |
| 15 | 16 | UINT16 bk_scrool; |
| r2854 | r2855 | |
|---|---|---|
| 148 | 148 | cas_size = 0; |
| 149 | 149 | } |
| 150 | 150 | |
| 151 | ||
| 151 | ||
| 152 | 152 | { |
| 153 | 153 | UINT16 entry = 0, block_ofs = 0, block_len = 0; |
| 154 | 154 | unsigned offs = 0; |
| r2854 | r2855 | |
|---|---|---|
| 17 | 17 | |
| 18 | 18 | /* stores size of actual file on filesystem */ |
| 19 | 19 | static int nc_card_size; |
| 20 | /* pointer to loaded data */ | |
| 21 | extern unsigned char *nc_card_ram; | |
| 22 | /* mask used to stop access over end of card ram area */ | |
| 23 | extern int nc_membank_card_ram_mask; | |
| 24 | 20 | |
| 25 | 21 | /* save card data back */ |
| 26 | 22 | static void nc_card_save(const device_config *image) |
| r2854 | r2855 | |
|---|---|---|
| 202 | 202 | UINT16 pix = 0; |
| 203 | 203 | rgb_t col; |
| 204 | 204 | UINT8 r, g, b; |
| 205 | extern bitmap_t *nes_zapper_hack; | |
| 206 | 205 | |
| 207 | 206 | if (nes_zapper_hack) |
| 208 | 207 | pix = *BITMAP_ADDR16(nes_zapper_hack, input->i2, input->i1); |
| r2854 | r2855 | |
|---|---|---|
| 183 | 183 | } |
| 184 | 184 | |
| 185 | 185 | /* |
| 186 | Clean-up the tape controller core | |
| 187 | */ | |
| 188 | /*void ti990_tpc_exit(void) | |
| 189 | { | |
| 190 | }*/ | |
| 191 | ||
| 192 | /* | |
| 193 | 186 | Parse the tape select lines, and return the corresponding tape unit. |
| 194 | 187 | (-1 if none) |
| 195 | 188 | */ |
| r2854 | r2855 | |
|---|---|---|
| 7 | 7 | DEVICE_IMAGE_UNLOAD( ti990_tape ); |
| 8 | 8 | |
| 9 | 9 | void ti990_tpc_init(void (*interrupt_callback)(int state)); |
| 10 | void ti990_tpc_exit(void); | |
| 11 | 10 | |
| 12 | 11 | extern READ16_HANDLER(ti990_tpc_r); |
| 13 | 12 | extern WRITE16_HANDLER(ti990_tpc_w); |
| r2854 | r2855 | |
|---|---|---|
| 31 | 31 | |
| 32 | 32 | int mapper_reset (int mapperNum); |
| 33 | 33 | |
| 34 | WRITE8_HANDLER( nes_low_mapper_w ); | |
| 35 | READ8_HANDLER ( nes_low_mapper_r ); | |
| 36 | READ8_HANDLER ( nes_mid_mapper_r ); | |
| 34 | 37 | WRITE8_HANDLER ( nes_mid_mapper_w ); |
| 35 | 38 | WRITE8_HANDLER ( nes_mapper_w ); |
| 36 | 39 |
| r2854 | r2855 | |
|---|---|---|
| 10 | 10 | #include "driver.h" |
| 11 | 11 | #include "devices/basicdsk.h" |
| 12 | 12 | #include "machine/wd17xx.h" |
| 13 | #include "machine/beta.h" | |
| 13 | 14 | |
| 14 | 15 | static int betadisk_status; |
| 15 | 16 | static int betadisk_active; |
| r2854 | r2855 | |
|---|---|---|
| 6 | 6 | extern int mm58274c_r(int which, int offset); |
| 7 | 7 | extern void mm58274c_w(int which, int offset, int data); |
| 8 | 8 | |
| 9 | #ifdef UNUSED_FUNCTION | |
| 10 | extern READ8_HANDLER(mm58274c_0_r); | |
| 11 | extern WRITE8_HANDLER(mm58274c_0_w); | |
| 12 | ||
| 13 | extern READ8_HANDLER(mm58274c_1_r); | |
| 14 | extern WRITE8_HANDLER(mm58274c_1_w); | |
| 15 | #endif | |
| 16 | ||
| 17 | ||
| 18 | 9 | #endif /* MM58274C_H */ |
| r2854 | r2855 | |
|---|---|---|
| 16 | 16 | #include "machine/8255ppi.h" |
| 17 | 17 | #include "machine/pit8253.h" |
| 18 | 18 | #include "machine/wd17xx.h" |
| 19 | #include "includes/special.h" | |
| 19 | 20 | |
| 20 | 21 | static UINT8 specimx_color; |
| 21 | 22 | UINT8 *specimx_colorram; |
| r2854 | r2855 | |
| 373 | 374 | } |
| 374 | 375 | } |
| 375 | 376 | |
| 376 | extern UINT8 erik_color_1; | |
| 377 | extern UINT8 erik_color_2; | |
| 378 | extern UINT8 erik_background; | |
| 379 | ||
| 380 | 377 | DRIVER_INIT(erik) |
| 381 | 378 | { |
| 382 | 379 | memset(mess_ram,0,192*1024); |
| r2854 | r2855 | |
|---|---|---|
| 11 | 11 | #include "cpu/i8085/i8085.h" |
| 12 | 12 | #include "devices/cassette.h" |
| 13 | 13 | #include "machine/8255ppi.h" |
| 14 | #include "includes/mikro80.h" | |
| 14 | 15 | |
| 15 | 16 | static int mikro80_keyboard_mask; |
| 16 | 17 |
| r2854 | r2855 | |
|---|---|---|
| 12 | 12 | #include "sound/dac.h" |
| 13 | 13 | #include "devices/cassette.h" |
| 14 | 14 | #include "machine/8255ppi.h" |
| 15 | #include "includes/ut88.h" | |
| 15 | 16 | |
| 16 | 17 | static int ut88_keyboard_mask; |
| 17 | 18 |
| r2854 | r2855 | |
|---|---|---|
| 9 | 9 | |
| 10 | 10 | #include "formats/cassimg.h" |
| 11 | 11 | |
| 12 | extern const struct CassetteFormat uef_cassette_format; | |
| 13 | ||
| 12 | 14 | CASSETTE_FORMATLIST_EXTERN(uef_cassette_formats); |
| 13 | 15 | |
| 14 | 16 | #endif /* UEF_CAS_H */ |
| r2854 | r2855 | |
|---|---|---|
| 319 | 319 | NULL |
| 320 | 320 | }; |
| 321 | 321 | |
| 322 | extern struct CassetteFormat uef_cassette_format; | |
| 322 | extern const struct CassetteFormat uef_cassette_format; | |
| 323 | 323 | |
| 324 | 324 | CASSETTE_FORMATLIST_START(csw_cassette_formats) |
| 325 | 325 | CASSETTE_FORMAT(csw_cassette_format) |
| r2854 | r2855 | |
|---|---|---|
| 12 | 12 | |
| 13 | 13 | #include "driver.h" |
| 14 | 14 | #include "video/ppu2c0x.h" |
| 15 | #include "machine/nes_mmc.h" | |
| 15 | 16 | #include "includes/nes.h" |
| 16 | 17 | #include "cpu/m6502/m6502.h" |
| 17 | 18 | #include "devices/cartslot.h" |
| r2854 | r2855 | |
|---|---|---|
| 110 | 110 | |
| 111 | 111 | // interrupt counter |
| 112 | 112 | static unsigned long pcw16_interrupt_counter; |
| 113 | // video control | |
| 114 | extern int pcw16_video_control; | |
| 115 | 113 | /* controls which bank of 2mb address space is paged into memory */ |
| 116 | 114 | static int pcw16_banks[4]; |
| 117 | 115 | |
| r2854 | r2855 | |
| 168 | 166 | ADDRESS_MAP_END |
| 169 | 167 | |
| 170 | 168 | |
| 171 | extern int pcw16_colour_palette[16]; | |
| 172 | ||
| 173 | 169 | static WRITE8_HANDLER(pcw16_palette_w) |
| 174 | 170 | { |
| 175 | 171 | pcw16_colour_palette[offset & 0x0f] = data & 31; |
| r2854 | r2855 | |
|---|---|---|
| 141 | 141 | |
| 142 | 142 | struct x68k_system sys; |
| 143 | 143 | |
| 144 | extern UINT16* gvram; // Graphic VRAM | |
| 145 | extern UINT16* tvram; // Text VRAM | |
| 146 | 144 | static UINT16* sram; // SRAM |
| 147 | extern UINT16* x68k_spriteram; // sprite/background RAM | |
| 148 | extern UINT16* x68k_spritereg; // sprite/background registers | |
| 149 | 145 | static UINT8 ppi_port[3]; |
| 150 | 146 | static int current_vector[8]; |
| 151 | 147 | static UINT8 current_irq_line; |
| r2854 | r2855 | |
| 153 | 149 | |
| 154 | 150 | static UINT8 mfp_key; |
| 155 | 151 | |
| 156 | extern bitmap_t* x68k_text_bitmap; // 1024x1024 4x1bpp planes text | |
| 157 | extern bitmap_t* x68k_gfx_0_bitmap_16; // 16 colour, 512x512, 4 pages | |
| 158 | extern bitmap_t* x68k_gfx_1_bitmap_16; | |
| 159 | extern bitmap_t* x68k_gfx_2_bitmap_16; | |
| 160 | extern bitmap_t* x68k_gfx_3_bitmap_16; | |
| 161 | extern bitmap_t* x68k_gfx_0_bitmap_256; // 256 colour, 512x512, 2 pages | |
| 162 | extern bitmap_t* x68k_gfx_1_bitmap_256; | |
| 163 | extern bitmap_t* x68k_gfx_0_bitmap_65536; // 65536 colour, 512x512, 1 page | |
| 164 | ||
| 165 | extern tilemap* x68k_bg0_8; // two 64x64 tilemaps, 8x8 characters | |
| 166 | extern tilemap* x68k_bg1_8; | |
| 167 | extern tilemap* x68k_bg0_16; // two 64x64 tilemaps, 16x16 characters | |
| 168 | extern tilemap* x68k_bg1_16; | |
| 169 | ||
| 170 | 152 | static emu_timer* kb_timer; |
| 171 | 153 | //emu_timer* mfp_timer[4]; |
| 172 | 154 | //emu_timer* mfp_irq; |
| r2854 | r2855 | |
| 177 | 159 | |
| 178 | 160 | // MFP is clocked at 4MHz, so at /4 prescaler the timer is triggered after 1us (4 cycles) |
| 179 | 161 | // No longer necessary with the new MFP core |
| 180 | /*static attotime prescale(int val) | |
| 162 | #ifdef UNUSED_FUNCTION | |
| 163 | static attotime prescale(int val) | |
| 181 | 164 | { |
| 182 | 165 | switch(val) |
| 183 | 166 | { |
| r2854 | r2855 | |
| 192 | 175 | default: |
| 193 | 176 | fatalerror("out of range"); |
| 194 | 177 | } |
| 195 | }*/ | |
| 178 | } | |
| 179 | #endif | |
| 196 | 180 | |
| 197 | 181 | static void mfp_init(void); |
| 198 | 182 | //static TIMER_CALLBACK(mfp_update_irq); |
| r2854 | r2855 | |
| 212 | 196 | timer_adjust_periodic(mfp_irq, attotime_zero, 0, ATTOTIME_IN_USEC(32)); |
| 213 | 197 | */ |
| 214 | 198 | } |
| 215 | /* | |
| 199 | ||
| 200 | #ifdef UNUSED_FUNCTION | |
| 216 | 201 | TIMER_CALLBACK(mfp_update_irq) |
| 217 | 202 | { |
| 218 | 203 | int x; |
| r2854 | r2855 | |
| 339 | 324 | logerror("MFP: Timer #%i set to %2.1fus\n",timer, attotime_to_double(prescale(data & 0x07)) * 1000000); |
| 340 | 325 | |
| 341 | 326 | } |
| 342 | ||
| 327 | #endif | |
| 343 | 328 | |
| 344 | 329 | // 4 channel DMA controller (Hitachi HD63450) |
| 345 | 330 | static WRITE16_HANDLER( x68k_dmac_w ) |
| r2854 | r2855 | |
| 971 | 956 | return mc68901_register_r(x68k_mfp, offset); |
| 972 | 957 | } |
| 973 | 958 | |
| 974 | ||
| 959 | #ifdef UNUSED_FUNCTION | |
| 975 | 960 | READ16_HANDLER( x68k_mfp_r ) |
| 976 | 961 | { |
| 977 | 962 | int ret; |
| r2854 | r2855 | |
| 1033 | 1018 | return 0xff; |
| 1034 | 1019 | } |
| 1035 | 1020 | } |
| 1036 | ||
| 1021 | #endif | |
| 1037 | 1022 | |
| 1038 | 1023 | static WRITE16_HANDLER( x68k_mfp_w ) |
| 1039 | 1024 | { |
| r2854 | r2855 | |
|---|---|---|
| 172 | 172 | |
| 173 | 173 | ***************************************************************************/ |
| 174 | 174 | |
| 175 | extern int JoyStat[2]; | |
| 176 | ||
| 177 | 175 | static INTERRUPT_GEN( coleco_interrupt ) |
| 178 | 176 | { |
| 179 | 177 | TMS9928A_interrupt(machine); |
| r2854 | r2855 | |
|---|---|---|
| 320 | 320 | }; |
| 321 | 321 | |
| 322 | 322 | |
| 323 | extern unsigned char *apf_video_ram; | |
| 324 | ||
| 325 | 323 | static void apf_common_init(void) |
| 326 | 324 | { |
| 327 | 325 | apf_ints = 0; |
| r2854 | r2855 | |
|---|---|---|
| 169 | 169 | #include "sound/scsp.h" |
| 170 | 170 | #include "devices/chd_cd.h" |
| 171 | 171 | #include "devices/cartslot.h" |
| 172 | #include "includes/stv.h" | |
| 172 | 173 | |
| 173 | 174 | |
| 174 | extern UINT32* stv_vdp2_regs; | |
| 175 | extern UINT32* stv_vdp2_vram; | |
| 176 | extern UINT32* stv_vdp2_cram; | |
| 177 | extern UINT32* stv_vdp1_vram; | |
| 178 | ||
| 179 | 175 | #define USE_SLAVE 1 |
| 180 | 176 | |
| 181 | 177 | #ifdef MAME_DEBUG |
| r2854 | r2855 | |
| 199 | 195 | static UINT8 *smpc_ram; |
| 200 | 196 | //static void stv_dump_ram(void); |
| 201 | 197 | |
| 202 | static UINT32* stv_workram_l; | |
| 203 | static UINT32* stv_workram_h; | |
| 198 | UINT32* stv_workram_l; | |
| 199 | UINT32* stv_workram_h; | |
| 204 | 200 | //UINT32* stv_backupram; |
| 205 | extern UINT32* stv_scu; | |
| 206 | 201 | static UINT16* scsp_regs; |
| 207 | 202 | static UINT16* sound_ram; |
| 208 | 203 | |
| 209 | 204 | static int saturn_region; |
| 210 | 205 | |
| 211 | 206 | int stv_vblank,stv_hblank; |
| 212 | ||
| 207 | ||
| 213 | 208 | /*SMPC stuff*/ |
| 214 | 209 | static UINT8 NMI_reset; |
| 215 | 210 | static void system_reset(void); |
| r2854 | r2855 | |
| 242 | 237 | static void dma_indirect_lv2(running_machine *machine); /*DMA level 2 indirect transfer function*/ |
| 243 | 238 | |
| 244 | 239 | |
| 245 | static int minit_boost,sinit_boost; | |
| 246 | static double minit_boost_timeslice, sinit_boost_timeslice; | |
| 240 | int minit_boost,sinit_boost; | |
| 241 | attotime minit_boost_timeslice, sinit_boost_timeslice; | |
| 247 | 242 | |
| 248 | 243 | static int scanline; |
| 249 | 244 | |
| r2854 | r2855 | |
| 1866 | 1861 | static WRITE32_HANDLER( minit_w ) |
| 1867 | 1862 | { |
| 1868 | 1863 | logerror("cpu #%d (PC=%08X) MINIT write = %08x\n",cpu_getactivecpu(), activecpu_get_pc(),data); |
| 1869 | cpu_boost_interleave( | |
| 1864 | cpu_boost_interleave( | |
| 1870 | 1865 | cpu_trigger(machine, 1000); |
| 1871 | 1866 | cpunum_set_info_int(1, CPUINFO_INT_SH2_FRT_INPUT, PULSE_LINE); |
| 1872 | 1867 | } |
| r2854 | r2855 | |
| 1874 | 1869 | static WRITE32_HANDLER( sinit_w ) |
| 1875 | 1870 | { |
| 1876 | 1871 | logerror("cpu #%d (PC=%08X) SINIT write = %08x\n",cpu_getactivecpu(), activecpu_get_pc(),data); |
| 1877 | cpu_boost_interleave( | |
| 1872 | cpu_boost_interleave( | |
| 1878 | 1873 | cpunum_set_info_int(0, CPUINFO_INT_SH2_FRT_INPUT, PULSE_LINE); |
| 1879 | 1874 | } |
| 1880 | 1875 | |
| 1881 | extern WRITE32_HANDLER ( stv_vdp2_vram_w ); | |
| 1882 | extern READ32_HANDLER ( stv_vdp2_vram_r ); | |
| 1883 | ||
| 1884 | extern WRITE32_HANDLER ( stv_vdp2_cram_w ); | |
| 1885 | extern READ32_HANDLER ( stv_vdp2_cram_r ); | |
| 1886 | ||
| 1887 | extern WRITE32_HANDLER ( stv_vdp2_regs_w ); | |
| 1888 | extern READ32_HANDLER ( stv_vdp2_regs_r ); | |
| 1889 | ||
| 1890 | extern VIDEO_START ( stv_vdp2 ); | |
| 1891 | extern VIDEO_UPDATE( stv_vdp2 ); | |
| 1892 | ||
| 1893 | extern READ32_HANDLER( stv_vdp1_regs_r ); | |
| 1894 | extern WRITE32_HANDLER( stv_vdp1_regs_w ); | |
| 1895 | extern READ32_HANDLER ( stv_vdp1_vram_r ); | |
| 1896 | extern WRITE32_HANDLER ( stv_vdp1_vram_w ); | |
| 1897 | ||
| 1898 | extern WRITE32_HANDLER ( stv_vdp1_framebuffer0_w ); | |
| 1899 | extern READ32_HANDLER ( stv_vdp1_framebuffer0_r ); | |
| 1900 | ||
| 1901 | extern WRITE32_HANDLER ( stv_vdp1_framebuffer1_w ); | |
| 1902 | extern READ32_HANDLER ( stv_vdp1_framebuffer1_r ); | |
| 1903 | ||
| 1904 | 1876 | static UINT32 backup[64*1024/4]; |
| 1905 | 1877 | |
| 1906 | 1878 | static READ32_HANDLER(satram_r) |
| r2854 | r2855 | |
| 2072 | 2044 | /* amount of time to boost interleave for on MINIT / SINIT, needed for communication to work */ |
| 2073 | 2045 | minit_boost = 400; |
| 2074 | 2046 | sinit_boost = 400; |
| 2075 | minit_boost_timeslice = 0; | |
| 2076 | sinit_boost_timeslice = 0; | |
| 2047 | minit_boost_timeslice = attotime_zero; | |
| 2048 | sinit_boost_timeslice = attotime_zero; | |
| 2077 | 2049 | |
| 2078 | 2050 | smpc_ram = auto_malloc (0x80); |
| 2079 | 2051 | stv_scu = auto_malloc (0x100); |
| r2854 | r2855 | |
|---|---|---|
| 144 | 144 | int amstrad_plus_dma_prescaler[3]; // DMA channel prescaler |
| 145 | 145 | static int amstrad_plus_dma_clear; // set if DMA interrupts are to be cleared automatically |
| 146 | 146 | |
| 147 | extern int amstrad_scanline; | |
| 148 | extern int prev_reg; | |
| 149 | ||
| 150 | 147 | static void amstrad_plus_seqcheck(int data); |
| 151 | 148 | static WRITE8_HANDLER( amstrad_plus_asic_4000_w ); |
| 152 | 149 | static WRITE8_HANDLER( amstrad_plus_asic_6000_w ); |
| r2854 | r2855 | |
| 201 | 198 | static int amstrad_GateArray_ModeAndRomConfiguration = 0; |
| 202 | 199 | /* Ram configuration */ |
| 203 | 200 | static int amstrad_GateArray_RamConfiguration = 0; |
| 204 | /* The gate array counts CRTC HSYNC pulses. (It has a internal 6-bit counter). */ | |
| 205 | extern int amstrad_CRTC_HS_Counter; | |
| 201 | ||
| 206 | 202 | /*------------- |
| 207 | 203 | - MULTIFACE - |
| 208 | 204 | -------------*/ |
| Previous | 15994 Revisions | Next |