src/mess/video/partner.c
| r2904 | r2905 | |
| 1 | | /*************************************************************************** |
| 2 | | |
| 3 | | Partner driver by Miodrag Milanovic |
| 4 | | |
| 5 | | 09/06/2008 Preliminary driver. |
| 6 | | |
| 7 | | ****************************************************************************/ |
| 8 | | |
| 9 | | |
| 10 | | #include "driver.h" |
| 11 | | #include "video/i8275.h" |
| 12 | | #include "includes/partner.h" |
| 13 | | |
| 14 | | I8275_DISPLAY_PIXELS(partner_display_pixels) |
| 15 | | { |
| 16 | | int i; |
| 17 | | bitmap_t *bitmap = tmpbitmap; |
| 18 | | UINT8 *charmap = memory_region(device->machine, REGION_GFX1) + 0x400 * (gpa * 2 + hlgt); |
| 19 | | UINT8 pixels = charmap[(linecount & 7) + (charcode << 3)] ^ 0xff; |
| 20 | | if (vsp) { |
| 21 | | pixels = 0; |
| 22 | | } |
| 23 | | if (lten) { |
| 24 | | pixels = 0xff; |
| 25 | | } |
| 26 | | if (rvv) { |
| 27 | | pixels ^= 0xff; |
| 28 | | } |
| 29 | | for(i=0;i<6;i++) { |
| 30 | | *BITMAP_ADDR16(bitmap, y, x + i) = (pixels >> (5-i)) & 1; |
| 31 | | } |
| 32 | | } |
| 33 | | |
| 34 | | VIDEO_UPDATE( partner ) |
| 35 | | { |
| 36 | | device_config *devconf = (device_config *) device_list_find_by_tag(screen->machine->config->devicelist, I8275, "i8275"); |
| 37 | | i8275_update( devconf, bitmap, cliprect); |
| 38 | | VIDEO_UPDATE_CALL ( generic_bitmapped ); |
| 39 | | return 0; |
| 40 | | } |
| 41 | | |
| 42 | | static const rgb_t partner_palette[3] = { |
| 43 | | MAKE_RGB(0x00, 0x00, 0x00), // black |
| 44 | | MAKE_RGB(0xa0, 0xa0, 0xa0), // white |
| 45 | | MAKE_RGB(0xff, 0xff, 0xff) // highlight |
| 46 | | }; |
| 47 | | |
| 48 | | PALETTE_INIT( partner ) |
| 49 | | { |
| 50 | | palette_set_colors(machine, 0, partner_palette, ARRAY_LENGTH(partner_palette)); |
| 51 | | } |
| 52 | | |
src/mess/video/mikrosha.c
| r2904 | r2905 | |
| 1 | | /*************************************************************************** |
| 2 | | |
| 3 | | Mikrosha video driver by Miodrag Milanovic |
| 4 | | |
| 5 | | 06/03/2008 Preliminary driver. |
| 6 | | |
| 7 | | ****************************************************************************/ |
| 8 | | |
| 9 | | |
| 10 | | #include "driver.h" |
| 11 | | #include "video/i8275.h" |
| 12 | | #include "includes/mikrosha.h" |
| 13 | | |
| 14 | | UINT8 mikrosha_font_page; |
| 15 | | |
| 16 | | I8275_DISPLAY_PIXELS(mikrosha_display_pixels) |
| 17 | | { |
| 18 | | int i; |
| 19 | | bitmap_t *bitmap = tmpbitmap; |
| 20 | | UINT8 *charmap = memory_region(device->machine, REGION_GFX1) + (mikrosha_font_page & 1) * 0x400; |
| 21 | | UINT8 pixels = charmap[(linecount & 7) + (charcode << 3)] ^ 0xff; |
| 22 | | if (vsp) { |
| 23 | | pixels = 0; |
| 24 | | } |
| 25 | | if (lten) { |
| 26 | | pixels = 0xff; |
| 27 | | } |
| 28 | | if (rvv) { |
| 29 | | pixels ^= 0xff; |
| 30 | | } |
| 31 | | for(i=0;i<6;i++) { |
| 32 | | *BITMAP_ADDR16(bitmap, y, x + i) = (pixels >> (5-i)) & 1 ? (hlgt ? 2 : 1) : 0; |
| 33 | | } |
| 34 | | } |
| 35 | | |
| 36 | | VIDEO_UPDATE( mikrosha ) |
| 37 | | { |
| 38 | | device_config *devconf = (device_config *) device_list_find_by_tag(screen->machine->config->devicelist, I8275, "i8275"); |
| 39 | | i8275_update( devconf, bitmap, cliprect); |
| 40 | | VIDEO_UPDATE_CALL ( generic_bitmapped ); |
| 41 | | return 0; |
| 42 | | } |
| 43 | | |
| 44 | | static const rgb_t mikrosha_palette[3] = { |
| 45 | | MAKE_RGB(0x00, 0x00, 0x00), // black |
| 46 | | MAKE_RGB(0xa0, 0xa0, 0xa0), // white |
| 47 | | MAKE_RGB(0xff, 0xff, 0xff) // highlight |
| 48 | | }; |
| 49 | | |
| 50 | | PALETTE_INIT( mikrosha ) |
| 51 | | { |
| 52 | | palette_set_colors(machine, 0, mikrosha_palette, ARRAY_LENGTH(mikrosha_palette)); |
| 53 | | } |
| 54 | | |
src/mess/video/apogee.c
| r2904 | r2905 | |
| 1 | | /*************************************************************************** |
| 2 | | |
| 3 | | Apogee BK-01 driver by Miodrag Milanovic |
| 4 | | |
| 5 | | 05/06/2008 Preliminary driver. |
| 6 | | |
| 7 | | ****************************************************************************/ |
| 8 | | |
| 9 | | |
| 10 | | #include "driver.h" |
| 11 | | #include "video/i8275.h" |
| 12 | | #include "includes/apogee.h" |
| 13 | | |
| 14 | | I8275_DISPLAY_PIXELS(apogee_display_pixels) |
| 15 | | { |
| 16 | | int i; |
| 17 | | bitmap_t *bitmap = tmpbitmap; |
| 18 | | UINT8 *charmap = memory_region(device->machine, REGION_GFX1) + (gpa & 1) * 0x400; |
| 19 | | UINT8 pixels = charmap[(linecount & 7) + (charcode << 3)] ^ 0xff; |
| 20 | | if (vsp) { |
| 21 | | pixels = 0; |
| 22 | | } |
| 23 | | if (lten) { |
| 24 | | pixels = 0xff; |
| 25 | | } |
| 26 | | if (rvv) { |
| 27 | | pixels ^= 0xff; |
| 28 | | } |
| 29 | | for(i=0;i<6;i++) { |
| 30 | | *BITMAP_ADDR16(bitmap, y, x + i) = (pixels >> (5-i)) & 1 ? (hlgt ? 2 : 1) : 0; |
| 31 | | } |
| 32 | | } |
| 33 | | |
| 34 | | VIDEO_UPDATE( apogee ) |
| 35 | | { |
| 36 | | device_config *devconf = (device_config *) device_list_find_by_tag(screen->machine->config->devicelist, I8275, "i8275"); |
| 37 | | i8275_update( devconf, bitmap, cliprect); |
| 38 | | VIDEO_UPDATE_CALL ( generic_bitmapped ); |
| 39 | | return 0; |
| 40 | | } |
| 41 | | |
| 42 | | static const rgb_t apogee_palette[3] = { |
| 43 | | MAKE_RGB(0x00, 0x00, 0x00), // black |
| 44 | | MAKE_RGB(0xa0, 0xa0, 0xa0), // white |
| 45 | | MAKE_RGB(0xff, 0xff, 0xff) // highlight |
| 46 | | }; |
| 47 | | |
| 48 | | PALETTE_INIT( apogee ) |
| 49 | | { |
| 50 | | palette_set_colors(machine, 0, apogee_palette, ARRAY_LENGTH(apogee_palette)); |
| 51 | | } |
| 52 | | |
src/mess/video/radio86.c
| r2904 | r2905 | |
| 31 | 31 | } |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | UINT8 mikrosha_font_page; |
| 35 | |
| 36 | I8275_DISPLAY_PIXELS(mikrosha_display_pixels) |
| 37 | { |
| 38 | int i; |
| 39 | bitmap_t *bitmap = tmpbitmap; |
| 40 | UINT8 *charmap = memory_region(device->machine, REGION_GFX1) + (mikrosha_font_page & 1) * 0x400; |
| 41 | UINT8 pixels = charmap[(linecount & 7) + (charcode << 3)] ^ 0xff; |
| 42 | if (vsp) { |
| 43 | pixels = 0; |
| 44 | } |
| 45 | if (lten) { |
| 46 | pixels = 0xff; |
| 47 | } |
| 48 | if (rvv) { |
| 49 | pixels ^= 0xff; |
| 50 | } |
| 51 | for(i=0;i<6;i++) { |
| 52 | *BITMAP_ADDR16(bitmap, y, x + i) = (pixels >> (5-i)) & 1 ? (hlgt ? 2 : 1) : 0; |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | I8275_DISPLAY_PIXELS(apogee_display_pixels) |
| 57 | { |
| 58 | int i; |
| 59 | bitmap_t *bitmap = tmpbitmap; |
| 60 | UINT8 *charmap = memory_region(device->machine, REGION_GFX1) + (gpa & 1) * 0x400; |
| 61 | UINT8 pixels = charmap[(linecount & 7) + (charcode << 3)] ^ 0xff; |
| 62 | if (vsp) { |
| 63 | pixels = 0; |
| 64 | } |
| 65 | if (lten) { |
| 66 | pixels = 0xff; |
| 67 | } |
| 68 | if (rvv) { |
| 69 | pixels ^= 0xff; |
| 70 | } |
| 71 | for(i=0;i<6;i++) { |
| 72 | *BITMAP_ADDR16(bitmap, y, x + i) = (pixels >> (5-i)) & 1 ? (hlgt ? 2 : 1) : 0; |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | I8275_DISPLAY_PIXELS(partner_display_pixels) |
| 77 | { |
| 78 | int i; |
| 79 | bitmap_t *bitmap = tmpbitmap; |
| 80 | UINT8 *charmap = memory_region(device->machine, REGION_GFX1) + 0x400 * (gpa * 2 + hlgt); |
| 81 | UINT8 pixels = charmap[(linecount & 7) + (charcode << 3)] ^ 0xff; |
| 82 | if (vsp) { |
| 83 | pixels = 0; |
| 84 | } |
| 85 | if (lten) { |
| 86 | pixels = 0xff; |
| 87 | } |
| 88 | if (rvv) { |
| 89 | pixels ^= 0xff; |
| 90 | } |
| 91 | for(i=0;i<6;i++) { |
| 92 | *BITMAP_ADDR16(bitmap, y, x + i) = (pixels >> (5-i)) & 1; |
| 93 | } |
| 94 | } |
| 95 | |
| 34 | 96 | VIDEO_UPDATE( radio86 ) |
| 35 | 97 | { |
| 36 | 98 | device_config *devconf = (device_config *) device_list_find_by_tag(screen->machine->config->devicelist, I8275, "i8275"); |
src/mess/includes/mikrosha.h
| r2904 | r2905 | |
| 1 | | /***************************************************************************** |
| 2 | | * |
| 3 | | * includes/mikrosha.h |
| 4 | | * |
| 5 | | ****************************************************************************/ |
| 6 | | |
| 7 | | #ifndef MIKROSHA_H_ |
| 8 | | #define MIKROSHA_H_ |
| 9 | | |
| 10 | | #include "machine/8255ppi.h" |
| 11 | | #include "machine/8257dma.h" |
| 12 | | #include "video/i8275.h" |
| 13 | | |
| 14 | | /*----------- defined in machine/mikrosha.c -----------*/ |
| 15 | | |
| 16 | | extern DRIVER_INIT( mikrosha ); |
| 17 | | extern MACHINE_RESET( mikrosha ); |
| 18 | | |
| 19 | | extern const ppi8255_interface mikrosha_ppi8255_interface_1; |
| 20 | | extern const ppi8255_interface mikrosha_ppi8255_interface_2; |
| 21 | | extern const i8275_interface mikrosha_i8275_interface; |
| 22 | | extern const dma8257_interface mikrosha_dma; |
| 23 | | |
| 24 | | /*----------- defined in video/mikrosha.c -----------*/ |
| 25 | | |
| 26 | | extern I8275_DISPLAY_PIXELS(mikrosha_display_pixels); |
| 27 | | extern UINT8 mikrosha_font_page; |
| 28 | | extern VIDEO_UPDATE( mikrosha ); |
| 29 | | extern PALETTE_INIT( mikrosha ); |
| 30 | | |
| 31 | | |
| 32 | | #endif /* MIKROSHA_H_ */ |
src/mess/includes/apogee.h
| r2904 | r2905 | |
| 1 | | /***************************************************************************** |
| 2 | | * |
| 3 | | * includes/apogee.h |
| 4 | | * |
| 5 | | ****************************************************************************/ |
| 6 | | |
| 7 | | #ifndef APOGEE_H_ |
| 8 | | #define APOGEE_H_ |
| 9 | | |
| 10 | | #include "machine/8255ppi.h" |
| 11 | | #include "machine/8257dma.h" |
| 12 | | #include "video/i8275.h" |
| 13 | | |
| 14 | | /*----------- defined in machine/apogee.c -----------*/ |
| 15 | | |
| 16 | | extern DRIVER_INIT( apogee ); |
| 17 | | extern MACHINE_RESET( apogee ); |
| 18 | | |
| 19 | | extern const ppi8255_interface apogee_ppi8255_interface_1; |
| 20 | | extern const i8275_interface apogee_i8275_interface; |
| 21 | | extern const dma8257_interface apogee_dma; |
| 22 | | |
| 23 | | /*----------- defined in video/apogee.c -----------*/ |
| 24 | | |
| 25 | | extern I8275_DISPLAY_PIXELS(apogee_display_pixels); |
| 26 | | |
| 27 | | extern VIDEO_UPDATE( apogee ); |
| 28 | | extern PALETTE_INIT( apogee ); |
| 29 | | |
| 30 | | |
| 31 | | #endif /* APOGEE_H_ */ |
src/mess/includes/radio86.h
| r2904 | r2905 | |
| 18 | 18 | |
| 19 | 19 | extern const ppi8255_interface radio86_ppi8255_interface_1; |
| 20 | 20 | extern const ppi8255_interface radio86_ppi8255_interface_2; |
| 21 | |
| 22 | extern const ppi8255_interface mikrosha_ppi8255_interface_1; |
| 23 | extern const ppi8255_interface mikrosha_ppi8255_interface_2; |
| 24 | |
| 21 | 25 | extern const i8275_interface radio86_i8275_interface; |
| 26 | extern const i8275_interface partner_i8275_interface; |
| 27 | extern const i8275_interface mikrosha_i8275_interface; |
| 28 | extern const i8275_interface apogee_i8275_interface; |
| 29 | |
| 22 | 30 | extern WRITE8_HANDLER ( radio86_pagesel ); |
| 31 | |
| 23 | 32 | extern const dma8257_interface radio86_dma; |
| 24 | 33 | |
| 34 | extern UINT8 radio86_tape_value; |
| 35 | |
| 25 | 36 | /*----------- defined in video/radio86.c -----------*/ |
| 37 | extern UINT8 mikrosha_font_page; |
| 26 | 38 | |
| 27 | 39 | extern I8275_DISPLAY_PIXELS(radio86_display_pixels); |
| 40 | extern I8275_DISPLAY_PIXELS(partner_display_pixels); |
| 41 | extern I8275_DISPLAY_PIXELS(mikrosha_display_pixels); |
| 42 | extern I8275_DISPLAY_PIXELS(apogee_display_pixels); |
| 28 | 43 | |
| 29 | 44 | extern VIDEO_UPDATE( radio86 ); |
| 30 | 45 | extern PALETTE_INIT( radio86 ); |
| 31 | 46 | |
| 32 | | |
| 33 | 47 | #endif /* radio86_H_ */ |
src/mess/includes/partner.h
| r2904 | r2905 | |
| 9 | 9 | |
| 10 | 10 | #include "machine/8255ppi.h" |
| 11 | 11 | #include "machine/8257dma.h" |
| 12 | | #include "video/i8275.h" |
| 13 | 12 | |
| 14 | 13 | /*----------- defined in machine/partner.c -----------*/ |
| 15 | 14 | |
| 16 | 15 | extern DRIVER_INIT( partner ); |
| 17 | 16 | extern MACHINE_RESET( partner ); |
| 18 | 17 | |
| 19 | | extern const ppi8255_interface partner_ppi8255_interface_1; |
| 20 | | extern const i8275_interface partner_i8275_interface; |
| 21 | | extern const dma8257_interface partner_dma; |
| 22 | | |
| 23 | 18 | extern WRITE8_HANDLER (partner_mem_page_w ); |
| 24 | 19 | extern WRITE8_HANDLER (partner_win_memory_page_w); |
| 25 | | |
| 26 | | /*----------- defined in video/partner.c -----------*/ |
| 27 | | |
| 28 | | extern I8275_DISPLAY_PIXELS(partner_display_pixels); |
| 29 | | |
| 30 | | extern VIDEO_UPDATE( partner ); |
| 31 | | extern PALETTE_INIT( partner ); |
| 32 | | |
| 33 | | |
| 34 | 20 | #endif /* partner_H_ */ |
src/mess/machine/mikrosha.c
| r2904 | r2905 | |
| 1 | | /*************************************************************************** |
| 2 | | |
| 3 | | Mikrosha machine driver by Miodrag Milanovic |
| 4 | | |
| 5 | | 06/03/2008 Preliminary driver. |
| 6 | | |
| 7 | | ****************************************************************************/ |
| 8 | | |
| 9 | | |
| 10 | | #include "driver.h" |
| 11 | | #include "cpu/i8085/i8085.h" |
| 12 | | #include "devices/cassette.h" |
| 13 | | #include "machine/8255ppi.h" |
| 14 | | #include "machine/8257dma.h" |
| 15 | | #include "video/i8275.h" |
| 16 | | #include "includes/mikrosha.h" |
| 17 | | |
| 18 | | static int mikrosha_keyboard_mask; |
| 19 | | |
| 20 | | |
| 21 | | /* Driver initialization */ |
| 22 | | DRIVER_INIT(mikrosha) |
| 23 | | { |
| 24 | | /* set initialy ROM to be visible on first bank */ |
| 25 | | UINT8 *RAM = memory_region(machine, REGION_CPU1); |
| 26 | | memset(RAM,0x0000,0x1000); // make frist page empty by default |
| 27 | | memory_configure_bank(1, 1, 2, RAM, 0x0000); |
| 28 | | memory_configure_bank(1, 0, 2, RAM, 0xf800); |
| 29 | | } |
| 30 | | |
| 31 | | static READ8_HANDLER (mikrosha_8255_porta_r2 ) |
| 32 | | { |
| 33 | | UINT8 key = 0xff; |
| 34 | | if ((mikrosha_keyboard_mask & 0x01)!=0) { key &= input_port_read(machine,"LINE0"); } |
| 35 | | if ((mikrosha_keyboard_mask & 0x02)!=0) { key &= input_port_read(machine,"LINE1"); } |
| 36 | | if ((mikrosha_keyboard_mask & 0x04)!=0) { key &= input_port_read(machine,"LINE2"); } |
| 37 | | if ((mikrosha_keyboard_mask & 0x08)!=0) { key &= input_port_read(machine,"LINE3"); } |
| 38 | | if ((mikrosha_keyboard_mask & 0x10)!=0) { key &= input_port_read(machine,"LINE4"); } |
| 39 | | if ((mikrosha_keyboard_mask & 0x20)!=0) { key &= input_port_read(machine,"LINE5"); } |
| 40 | | if ((mikrosha_keyboard_mask & 0x40)!=0) { key &= input_port_read(machine,"LINE6"); } |
| 41 | | if ((mikrosha_keyboard_mask & 0x80)!=0) { key &= input_port_read(machine,"LINE7"); } |
| 42 | | return key; |
| 43 | | } |
| 44 | | |
| 45 | | static READ8_HANDLER (mikrosha_8255_portc_r2 ) |
| 46 | | { |
| 47 | | double level = cassette_input(image_from_devtype_and_index(IO_CASSETTE, 0)); |
| 48 | | UINT8 dat = input_port_read(machine,"LINE8"); |
| 49 | | if (level < 0) { |
| 50 | | dat ^= 0x10; |
| 51 | | } |
| 52 | | return dat; |
| 53 | | } |
| 54 | | |
| 55 | | static WRITE8_HANDLER (mikrosha_8255_portb_w2 ) |
| 56 | | { |
| 57 | | mikrosha_keyboard_mask = data ^ 0xff; |
| 58 | | } |
| 59 | | |
| 60 | | const ppi8255_interface mikrosha_ppi8255_interface_1 = |
| 61 | | { |
| 62 | | mikrosha_8255_porta_r2, |
| 63 | | NULL, |
| 64 | | mikrosha_8255_portc_r2, |
| 65 | | NULL, |
| 66 | | mikrosha_8255_portb_w2, |
| 67 | | NULL, |
| 68 | | }; |
| 69 | | |
| 70 | | static WRITE8_HANDLER (mikrosha_8255_font_page_w ) |
| 71 | | { |
| 72 | | mikrosha_font_page = (data > 7) & 1; |
| 73 | | } |
| 74 | | |
| 75 | | const ppi8255_interface mikrosha_ppi8255_interface_2 = |
| 76 | | { |
| 77 | | NULL, |
| 78 | | NULL, |
| 79 | | NULL, |
| 80 | | NULL, |
| 81 | | mikrosha_8255_font_page_w, |
| 82 | | NULL |
| 83 | | }; |
| 84 | | |
| 85 | | static I8275_DMA_REQUEST(mikrosha_video_dma_request) { |
| 86 | | const device_config *dma8257 = device_list_find_by_tag(device->machine->config->devicelist, VIDEO_SCREEN, "dma8257"); |
| 87 | | dma8257_drq_w(dma8257, 2, state); |
| 88 | | } |
| 89 | | |
| 90 | | const i8275_interface mikrosha_i8275_interface = { |
| 91 | | "main", |
| 92 | | 6, |
| 93 | | 0, |
| 94 | | mikrosha_video_dma_request, |
| 95 | | NULL, |
| 96 | | mikrosha_display_pixels |
| 97 | | }; |
| 98 | | |
| 99 | | static READ8_HANDLER( mikrosha_dma_read_byte ) |
| 100 | | { |
| 101 | | UINT8 result; |
| 102 | | cpuintrf_push_context(0); |
| 103 | | result = program_read_byte(offset); |
| 104 | | cpuintrf_pop_context(); |
| 105 | | return result; |
| 106 | | } |
| 107 | | |
| 108 | | static WRITE8_HANDLER( mikrosha_write_video ) |
| 109 | | { |
| 110 | | i8275_dack_set_data((device_config*)device_list_find_by_tag( machine->config->devicelist, I8275, "i8275" ),data); |
| 111 | | } |
| 112 | | |
| 113 | | const dma8257_interface mikrosha_dma = |
| 114 | | { |
| 115 | | 0, |
| 116 | | XTAL_16MHz / 9, |
| 117 | | |
| 118 | | mikrosha_dma_read_byte, |
| 119 | | 0, |
| 120 | | |
| 121 | | { 0, 0, 0, 0 }, |
| 122 | | { 0, 0, mikrosha_write_video, 0 }, |
| 123 | | { 0, 0, 0, 0 } |
| 124 | | }; |
| 125 | | |
| 126 | | static TIMER_CALLBACK( mikrosha_reset ) |
| 127 | | { |
| 128 | | memory_set_bank(1, 0); |
| 129 | | } |
| 130 | | |
| 131 | | MACHINE_RESET( mikrosha ) |
| 132 | | { |
| 133 | | timer_set(ATTOTIME_IN_USEC(10), NULL, 0, mikrosha_reset); |
| 134 | | memory_set_bank(1, 1); |
| 135 | | |
| 136 | | mikrosha_keyboard_mask = 0; |
| 137 | | } |
src/mess/machine/apogee.c
| r2904 | r2905 | |
| 1 | | /*************************************************************************** |
| 2 | | |
| 3 | | Apogee BK-01 driver by Miodrag Milanovic |
| 4 | | |
| 5 | | 05/06/2008 Preliminary driver. |
| 6 | | |
| 7 | | ****************************************************************************/ |
| 8 | | |
| 9 | | |
| 10 | | #include "driver.h" |
| 11 | | #include "cpu/i8085/i8085.h" |
| 12 | | #include "devices/cassette.h" |
| 13 | | #include "machine/8255ppi.h" |
| 14 | | #include "machine/8257dma.h" |
| 15 | | #include "video/i8275.h" |
| 16 | | #include "includes/apogee.h" |
| 17 | | |
| 18 | | static int apogee_keyboard_mask; |
| 19 | | |
| 20 | | |
| 21 | | /* Driver initialization */ |
| 22 | | DRIVER_INIT(apogee) |
| 23 | | { |
| 24 | | /* set initialy ROM to be visible on first bank */ |
| 25 | | UINT8 *RAM = memory_region(machine, REGION_CPU1); |
| 26 | | memset(RAM,0x0000,0x1000); // make frist page empty by default |
| 27 | | memory_configure_bank(1, 1, 2, RAM, 0x0000); |
| 28 | | memory_configure_bank(1, 0, 2, RAM, 0xf800); |
| 29 | | } |
| 30 | | |
| 31 | | static READ8_HANDLER (apogee_8255_portb_r2 ) |
| 32 | | { |
| 33 | | UINT8 key = 0xff; |
| 34 | | if ((apogee_keyboard_mask & 0x01)!=0) { key &= input_port_read(machine,"LINE0"); } |
| 35 | | if ((apogee_keyboard_mask & 0x02)!=0) { key &= input_port_read(machine,"LINE1"); } |
| 36 | | if ((apogee_keyboard_mask & 0x04)!=0) { key &= input_port_read(machine,"LINE2"); } |
| 37 | | if ((apogee_keyboard_mask & 0x08)!=0) { key &= input_port_read(machine,"LINE3"); } |
| 38 | | if ((apogee_keyboard_mask & 0x10)!=0) { key &= input_port_read(machine,"LINE4"); } |
| 39 | | if ((apogee_keyboard_mask & 0x20)!=0) { key &= input_port_read(machine,"LINE5"); } |
| 40 | | if ((apogee_keyboard_mask & 0x40)!=0) { key &= input_port_read(machine,"LINE6"); } |
| 41 | | if ((apogee_keyboard_mask & 0x80)!=0) { key &= input_port_read(machine,"LINE7"); } |
| 42 | | return key; |
| 43 | | } |
| 44 | | |
| 45 | | static READ8_HANDLER (apogee_8255_portc_r2 ) |
| 46 | | { |
| 47 | | double level = cassette_input(image_from_devtype_and_index(IO_CASSETTE, 0)); |
| 48 | | UINT8 dat = input_port_read(machine,"LINE8"); |
| 49 | | if (level < 0) { |
| 50 | | dat ^= 0x10; |
| 51 | | } |
| 52 | | return dat; |
| 53 | | } |
| 54 | | |
| 55 | | static WRITE8_HANDLER (apogee_8255_porta_w2 ) |
| 56 | | { |
| 57 | | apogee_keyboard_mask = data ^ 0xff; |
| 58 | | } |
| 59 | | |
| 60 | | const ppi8255_interface apogee_ppi8255_interface_1 = |
| 61 | | { |
| 62 | | NULL, |
| 63 | | apogee_8255_portb_r2, |
| 64 | | apogee_8255_portc_r2, |
| 65 | | apogee_8255_porta_w2, |
| 66 | | NULL, |
| 67 | | NULL, |
| 68 | | }; |
| 69 | | |
| 70 | | static I8275_DMA_REQUEST(apogee_video_dma_request) { |
| 71 | | const device_config *dma8257 = device_list_find_by_tag(device->machine->config->devicelist, VIDEO_SCREEN, "dma8257"); |
| 72 | | dma8257_drq_w(dma8257, 2, state); |
| 73 | | } |
| 74 | | |
| 75 | | const i8275_interface apogee_i8275_interface = { |
| 76 | | "main", |
| 77 | | 6, |
| 78 | | 0, |
| 79 | | apogee_video_dma_request, |
| 80 | | NULL, |
| 81 | | apogee_display_pixels |
| 82 | | }; |
| 83 | | |
| 84 | | static READ8_HANDLER( apogee_dma_read_byte ) |
| 85 | | { |
| 86 | | UINT8 result; |
| 87 | | cpuintrf_push_context(0); |
| 88 | | result = program_read_byte(offset); |
| 89 | | cpuintrf_pop_context(); |
| 90 | | return result; |
| 91 | | } |
| 92 | | |
| 93 | | static WRITE8_HANDLER( apogee_write_video ) |
| 94 | | { |
| 95 | | i8275_dack_set_data((device_config*)device_list_find_by_tag( machine->config->devicelist, I8275, "i8275" ),data); |
| 96 | | } |
| 97 | | |
| 98 | | const dma8257_interface apogee_dma = |
| 99 | | { |
| 100 | | 0, |
| 101 | | XTAL_16MHz / 9, |
| 102 | | |
| 103 | | apogee_dma_read_byte, |
| 104 | | 0, |
| 105 | | |
| 106 | | { 0, 0, 0, 0 }, |
| 107 | | { 0, 0, apogee_write_video, 0 }, |
| 108 | | { 0, 0, 0, 0 } |
| 109 | | }; |
| 110 | | |
| 111 | | static TIMER_CALLBACK( apogee_reset ) |
| 112 | | { |
| 113 | | memory_set_bank(1, 0); |
| 114 | | } |
| 115 | | |
| 116 | | MACHINE_RESET( apogee ) |
| 117 | | { |
| 118 | | timer_set(ATTOTIME_IN_USEC(1), NULL, 0, apogee_reset); |
| 119 | | memory_set_bank(1, 1); |
| 120 | | |
| 121 | | apogee_keyboard_mask = 0; |
| 122 | | } |
src/mess/machine/radio86.c
| r2904 | r2905 | |
| 16 | 16 | #include "includes/radio86.h" |
| 17 | 17 | |
| 18 | 18 | static int radio86_keyboard_mask; |
| 19 | UINT8 radio86_tape_value; |
| 19 | 20 | |
| 20 | 21 | static UINT8 radio_ram_disk[0x10000]; |
| 21 | 22 | |
| r2904 | r2905 | |
| 29 | 30 | memory_configure_bank(1, 0, 2, RAM, 0xf800); |
| 30 | 31 | |
| 31 | 32 | memset(radio_ram_disk,0,0x10000); |
| 33 | radio86_tape_value = 0x10; |
| 32 | 34 | } |
| 33 | 35 | |
| 34 | 36 | static READ8_HANDLER (radio86_8255_portb_r2 ) |
| r2904 | r2905 | |
| 50 | 52 | double level = cassette_input(image_from_devtype_and_index(IO_CASSETTE, 0)); |
| 51 | 53 | UINT8 dat = input_port_read(machine,"LINE8"); |
| 52 | 54 | if (level < 0) { |
| 53 | | dat ^= 0x10; |
| 55 | dat ^= radio86_tape_value; |
| 54 | 56 | } |
| 55 | 57 | return dat; |
| 56 | 58 | } |
| r2904 | r2905 | |
| 70 | 72 | NULL, |
| 71 | 73 | }; |
| 72 | 74 | |
| 75 | const ppi8255_interface mikrosha_ppi8255_interface_1 = |
| 76 | { |
| 77 | radio86_8255_portb_r2, |
| 78 | NULL, |
| 79 | radio86_8255_portc_r2, |
| 80 | NULL, |
| 81 | radio86_8255_porta_w2, |
| 82 | NULL, |
| 83 | }; |
| 84 | |
| 85 | |
| 73 | 86 | static I8275_DMA_REQUEST(radio86_video_dma_request) { |
| 74 | | const device_config *dma8257 = device_list_find_by_tag(device->machine->config->devicelist, VIDEO_SCREEN, "dma8257"); |
| 87 | const device_config *dma8257 = device_list_find_by_tag(device->machine->config->devicelist, DMA8257, "dma8257"); |
| 75 | 88 | dma8257_drq_w(dma8257, 2, state); |
| 76 | 89 | } |
| 77 | 90 | |
| 78 | | const i8275_interface radio86_i8275_interface = { |
| 79 | | "main", |
| 80 | | 6, |
| 81 | | 0, |
| 82 | | radio86_video_dma_request, |
| 83 | | NULL, |
| 84 | | radio86_display_pixels |
| 85 | | }; |
| 86 | | |
| 87 | 91 | static READ8_HANDLER(radio86_dma_read_byte) |
| 88 | 92 | { |
| 89 | 93 | UINT8 result; |
| r2904 | r2905 | |
| 120 | 124 | |
| 121 | 125 | MACHINE_RESET( radio86 ) |
| 122 | 126 | { |
| 123 | | timer_set(ATTOTIME_IN_USEC(1000), NULL, 0, radio86_reset); |
| 127 | timer_set(ATTOTIME_IN_USEC(10), NULL, 0, radio86_reset); |
| 124 | 128 | memory_set_bank(1, 1); |
| 125 | 129 | |
| 126 | 130 | radio86_keyboard_mask = 0; |
| r2904 | r2905 | |
| 162 | 166 | radio86_romdisk_portb_w, |
| 163 | 167 | radio86_romdisk_portc_w |
| 164 | 168 | }; |
| 169 | |
| 170 | static WRITE8_HANDLER (mikrosha_8255_font_page_w ) |
| 171 | { |
| 172 | mikrosha_font_page = (data > 7) & 1; |
| 173 | } |
| 174 | |
| 175 | const ppi8255_interface mikrosha_ppi8255_interface_2 = |
| 176 | { |
| 177 | NULL, |
| 178 | NULL, |
| 179 | NULL, |
| 180 | NULL, |
| 181 | mikrosha_8255_font_page_w, |
| 182 | NULL |
| 183 | }; |
| 184 | |
| 185 | const i8275_interface radio86_i8275_interface = { |
| 186 | "main", |
| 187 | 6, |
| 188 | 0, |
| 189 | radio86_video_dma_request, |
| 190 | NULL, |
| 191 | radio86_display_pixels |
| 192 | }; |
| 193 | |
| 194 | const i8275_interface mikrosha_i8275_interface = { |
| 195 | "main", |
| 196 | 6, |
| 197 | 0, |
| 198 | radio86_video_dma_request, |
| 199 | NULL, |
| 200 | mikrosha_display_pixels |
| 201 | }; |
| 202 | |
| 203 | const i8275_interface apogee_i8275_interface = { |
| 204 | "main", |
| 205 | 6, |
| 206 | 0, |
| 207 | radio86_video_dma_request, |
| 208 | NULL, |
| 209 | apogee_display_pixels |
| 210 | }; |
| 211 | |
| 212 | const i8275_interface partner_i8275_interface = { |
| 213 | "main", |
| 214 | 6, |
| 215 | 1, |
| 216 | radio86_video_dma_request, |
| 217 | NULL, |
| 218 | partner_display_pixels |
| 219 | }; |
src/mess/machine/partner.c
| r2904 | r2905 | |
| 13 | 13 | #include "machine/8255ppi.h" |
| 14 | 14 | #include "machine/8257dma.h" |
| 15 | 15 | #include "video/i8275.h" |
| 16 | #include "includes/radio86.h" |
| 16 | 17 | #include "includes/partner.h" |
| 17 | 18 | |
| 18 | | static int partner_keyboard_mask; |
| 19 | | |
| 20 | 19 | static UINT8 partner_mem_page; |
| 21 | 20 | static UINT8 partner_win_mem_page; |
| 22 | 21 | |
| r2904 | r2905 | |
| 24 | 23 | DRIVER_INIT(partner) |
| 25 | 24 | { |
| 26 | 25 | memset(mess_ram,0,64*1024); |
| 26 | radio86_tape_value = 0x80; |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | | static READ8_HANDLER (partner_8255_portb_r2 ) |
| 30 | | { |
| 31 | | UINT8 key = 0xff; |
| 32 | | if ((partner_keyboard_mask & 0x01)!=0) { key &= input_port_read(machine,"LINE0"); } |
| 33 | | if ((partner_keyboard_mask & 0x02)!=0) { key &= input_port_read(machine,"LINE1"); } |
| 34 | | if ((partner_keyboard_mask & 0x04)!=0) { key &= input_port_read(machine,"LINE2"); } |
| 35 | | if ((partner_keyboard_mask & 0x08)!=0) { key &= input_port_read(machine,"LINE3"); } |
| 36 | | if ((partner_keyboard_mask & 0x10)!=0) { key &= input_port_read(machine,"LINE4"); } |
| 37 | | if ((partner_keyboard_mask & 0x20)!=0) { key &= input_port_read(machine,"LINE5"); } |
| 38 | | if ((partner_keyboard_mask & 0x40)!=0) { key &= input_port_read(machine,"LINE6"); } |
| 39 | | if ((partner_keyboard_mask & 0x80)!=0) { key &= input_port_read(machine,"LINE7"); } |
| 40 | | return key; |
| 41 | | } |
| 42 | 29 | |
| 43 | | static READ8_HANDLER (partner_8255_portc_r2 ) |
| 44 | | { |
| 45 | | double level = cassette_input(image_from_devtype_and_index(IO_CASSETTE, 0)); |
| 46 | | UINT8 dat = input_port_read(machine,"LINE8"); |
| 47 | | if (level < 0) { |
| 48 | | dat ^= 0x80; |
| 49 | | } |
| 50 | | return dat; |
| 51 | | } |
| 52 | | |
| 53 | | static WRITE8_HANDLER (partner_8255_porta_w2 ) |
| 54 | | { |
| 55 | | partner_keyboard_mask = data ^ 0xff; |
| 56 | | } |
| 57 | | |
| 58 | | const ppi8255_interface partner_ppi8255_interface_1 = |
| 59 | | { |
| 60 | | NULL, |
| 61 | | partner_8255_portb_r2, |
| 62 | | partner_8255_portc_r2, |
| 63 | | partner_8255_porta_w2, |
| 64 | | NULL, |
| 65 | | NULL, |
| 66 | | }; |
| 67 | | |
| 68 | | |
| 69 | | static I8275_DMA_REQUEST(partner_video_dma_request) { |
| 70 | | const device_config *dma8257 = device_list_find_by_tag(device->machine->config->devicelist, VIDEO_SCREEN, "dma8257"); |
| 71 | | dma8257_drq_w(dma8257, 2, state); |
| 72 | | } |
| 73 | | |
| 74 | | const i8275_interface partner_i8275_interface = { |
| 75 | | "main", |
| 76 | | 6, |
| 77 | | 1, |
| 78 | | partner_video_dma_request, |
| 79 | | NULL, |
| 80 | | partner_display_pixels |
| 81 | | }; |
| 82 | | |
| 83 | | static READ8_HANDLER( partner_dma_read_byte ) |
| 84 | | { |
| 85 | | UINT8 result; |
| 86 | | cpuintrf_push_context(0); |
| 87 | | result = program_read_byte(offset); |
| 88 | | cpuintrf_pop_context(); |
| 89 | | return result; |
| 90 | | } |
| 91 | | |
| 92 | | static WRITE8_HANDLER( partner_write_video ) |
| 93 | | { |
| 94 | | i8275_dack_set_data((device_config*)device_list_find_by_tag( machine->config->devicelist, I8275, "i8275" ),data); |
| 95 | | } |
| 96 | | |
| 97 | | const dma8257_interface partner_dma = |
| 98 | | { |
| 99 | | 0, |
| 100 | | XTAL_16MHz / 9, |
| 101 | | |
| 102 | | partner_dma_read_byte, |
| 103 | | 0, |
| 104 | | |
| 105 | | { 0, 0, 0, 0 }, |
| 106 | | { 0, 0, partner_write_video, 0 }, |
| 107 | | { 0, 0, 0, 0 } |
| 108 | | }; |
| 109 | | |
| 110 | 30 | static void partner_bank_switch(running_machine *machine) |
| 111 | 31 | { |
| 112 | 32 | memory_install_write8_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0x0000, 0x07ff, 0, 0, SMH_BANK1); |
| r2904 | r2905 | |
| 268 | 188 | |
| 269 | 189 | MACHINE_RESET( partner ) |
| 270 | 190 | { |
| 271 | | partner_keyboard_mask = 0; |
| 272 | 191 | partner_mem_page = 0; |
| 273 | 192 | partner_bank_switch(machine); |
| 274 | 193 | } |
src/mess/drivers/partner.c
| r2904 | r2905 | |
| 14 | 14 | #include "video/i8275.h" |
| 15 | 15 | #include "devices/cassette.h" |
| 16 | 16 | #include "formats/rk_cas.h" |
| 17 | #include "includes/radio86.h" |
| 17 | 18 | #include "includes/partner.h" |
| 18 | 19 | |
| 19 | 20 | /* Address maps */ |
| r2904 | r2905 | |
| 127 | 128 | MDRV_MACHINE_RESET( partner ) |
| 128 | 129 | |
| 129 | 130 | MDRV_DEVICE_ADD( "ppi8255_1", PPI8255 ) |
| 130 | | MDRV_DEVICE_CONFIG( partner_ppi8255_interface_1 ) |
| 131 | MDRV_DEVICE_CONFIG( radio86_ppi8255_interface_1 ) |
| 131 | 132 | |
| 132 | 133 | MDRV_DEVICE_ADD( "i8275", I8275 ) |
| 133 | 134 | MDRV_DEVICE_CONFIG(partner_i8275_interface) |
| r2904 | r2905 | |
| 139 | 140 | MDRV_SCREEN_SIZE(78*6, 30*10) |
| 140 | 141 | MDRV_SCREEN_VISIBLE_AREA(0, 78*6-1, 0, 30*10-1) |
| 141 | 142 | MDRV_PALETTE_LENGTH(3) |
| 142 | | MDRV_PALETTE_INIT(partner) |
| 143 | MDRV_PALETTE_INIT(radio86) |
| 143 | 144 | |
| 144 | 145 | MDRV_VIDEO_START(generic_bitmapped) |
| 145 | | MDRV_VIDEO_UPDATE(partner) |
| 146 | MDRV_VIDEO_UPDATE(radio86) |
| 146 | 147 | |
| 147 | 148 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 148 | 149 | MDRV_SOUND_ADD(WAVE, 0) |
| 149 | 150 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) |
| 150 | 151 | |
| 151 | 152 | MDRV_DEVICE_ADD("dma8257", DMA8257) |
| 152 | | MDRV_DEVICE_CONFIG(partner_dma) |
| 153 | MDRV_DEVICE_CONFIG(radio86_dma) |
| 153 | 154 | MACHINE_DRIVER_END |
| 154 | 155 | |
| 155 | 156 | static void partner_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
src/mess/drivers/mikrosha.c
| r2904 | r2905 | |
| 14 | 14 | #include "video/i8275.h" |
| 15 | 15 | #include "devices/cassette.h" |
| 16 | 16 | #include "formats/rk_cas.h" |
| 17 | | #include "includes/mikrosha.h" |
| 17 | #include "includes/radio86.h" |
| 18 | 18 | |
| 19 | 19 | /* Address maps */ |
| 20 | 20 | static ADDRESS_MAP_START(mikrosha_mem, ADDRESS_SPACE_PROGRAM, 8) |
| r2904 | r2905 | |
| 24 | 24 | AM_RANGE( 0xc800, 0xc803 ) AM_DEVREADWRITE(PPI8255, "ppi8255_2", ppi8255_r, ppi8255_w) AM_MIRROR(0x07fc) |
| 25 | 25 | AM_RANGE( 0xd000, 0xd001 ) AM_DEVREADWRITE(I8275, "i8275", i8275_r, i8275_w) AM_MIRROR(0x07fe) // video |
| 26 | 26 | //AM_RANGE( 0xd800, 0xd603 ) AM_MIRROR(0x07fc) // Timer |
| 27 | | AM_RANGE( 0xdb00, 0xdbff ) AM_DEVWRITE(DMA8257, "dma8257", dma8257_w) // DMA |
| 27 | AM_RANGE( 0xf800, 0xffff ) AM_DEVWRITE(DMA8257, "dma8257", dma8257_w) // DMA |
| 28 | 28 | AM_RANGE( 0xf800, 0xffff ) AM_ROM // System ROM |
| 29 | 29 | ADDRESS_MAP_END |
| 30 | 30 | |
| r2904 | r2905 | |
| 118 | 118 | /* basic machine hardware */ |
| 119 | 119 | MDRV_CPU_ADD(8080, XTAL_16MHz / 9) |
| 120 | 120 | MDRV_CPU_PROGRAM_MAP(mikrosha_mem, 0) |
| 121 | | MDRV_MACHINE_RESET( mikrosha ) |
| 121 | MDRV_MACHINE_RESET( radio86 ) |
| 122 | 122 | |
| 123 | 123 | MDRV_DEVICE_ADD( "ppi8255_1", PPI8255 ) |
| 124 | 124 | MDRV_DEVICE_CONFIG( mikrosha_ppi8255_interface_1 ) |
| r2904 | r2905 | |
| 136 | 136 | MDRV_SCREEN_SIZE(78*6, 30*10) |
| 137 | 137 | MDRV_SCREEN_VISIBLE_AREA(0, 78*6-1, 0, 30*10-1) |
| 138 | 138 | MDRV_PALETTE_LENGTH(3) |
| 139 | | MDRV_PALETTE_INIT(mikrosha) |
| 139 | MDRV_PALETTE_INIT(radio86) |
| 140 | 140 | |
| 141 | 141 | MDRV_VIDEO_START(generic_bitmapped) |
| 142 | | MDRV_VIDEO_UPDATE(mikrosha) |
| 142 | MDRV_VIDEO_UPDATE(radio86) |
| 143 | 143 | |
| 144 | 144 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 145 | 145 | MDRV_SOUND_ADD(WAVE, 0) |
| 146 | 146 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) |
| 147 | 147 | |
| 148 | 148 | MDRV_DEVICE_ADD("dma8257", DMA8257) |
| 149 | | MDRV_DEVICE_CONFIG(mikrosha_dma) |
| 149 | MDRV_DEVICE_CONFIG(radio86_dma) |
| 150 | 150 | MACHINE_DRIVER_END |
| 151 | 151 | |
| 152 | 152 | static void mikrosha_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| r2904 | r2905 | |
| 178 | 178 | /* Driver */ |
| 179 | 179 | |
| 180 | 180 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME FLAGS */ |
| 181 | | COMP( 1987, mikrosha, radio86,0, mikrosha, mikrosha, mikrosha, mikrosha, "Lianozovo Electromechanical Factory", "Mikrosha", 0) |
| 181 | COMP( 1987, mikrosha, radio86,0, mikrosha, mikrosha, radio86, mikrosha, "Lianozovo Electromechanical Factory", "Mikrosha", 0) |
src/mess/drivers/apogee.c
| r2904 | r2905 | |
| 14 | 14 | #include "video/i8275.h" |
| 15 | 15 | #include "devices/cassette.h" |
| 16 | 16 | #include "formats/rk_cas.h" |
| 17 | | #include "includes/apogee.h" |
| 17 | #include "includes/radio86.h" |
| 18 | 18 | |
| 19 | 19 | /* Address maps */ |
| 20 | 20 | static ADDRESS_MAP_START(apogee_mem, ADDRESS_SPACE_PROGRAM, 8) |
| r2904 | r2905 | |
| 118 | 118 | /* basic machine hardware */ |
| 119 | 119 | MDRV_CPU_ADD(8080, XTAL_16MHz / 9) |
| 120 | 120 | MDRV_CPU_PROGRAM_MAP(apogee_mem, 0) |
| 121 | | MDRV_MACHINE_RESET( apogee ) |
| 121 | MDRV_MACHINE_RESET( radio86 ) |
| 122 | 122 | |
| 123 | 123 | MDRV_DEVICE_ADD( "ppi8255_1", PPI8255 ) |
| 124 | | MDRV_DEVICE_CONFIG( apogee_ppi8255_interface_1 ) |
| 124 | MDRV_DEVICE_CONFIG( radio86_ppi8255_interface_1 ) |
| 125 | 125 | |
| 126 | 126 | //MDRV_DEVICE_ADD( "ppi8255_2", PPI8255 ) |
| 127 | 127 | //MDRV_DEVICE_CONFIG( apogee_ppi8255_interface_2 ) |
| r2904 | r2905 | |
| 136 | 136 | MDRV_SCREEN_SIZE(78*6, 30*10) |
| 137 | 137 | MDRV_SCREEN_VISIBLE_AREA(0, 78*6-1, 0, 30*10-1) |
| 138 | 138 | MDRV_PALETTE_LENGTH(3) |
| 139 | | MDRV_PALETTE_INIT(apogee) |
| 139 | MDRV_PALETTE_INIT(radio86) |
| 140 | 140 | |
| 141 | 141 | MDRV_VIDEO_START(generic_bitmapped) |
| 142 | | MDRV_VIDEO_UPDATE(apogee) |
| 142 | MDRV_VIDEO_UPDATE(radio86) |
| 143 | 143 | |
| 144 | 144 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 145 | 145 | MDRV_SOUND_ADD(WAVE, 0) |
| 146 | 146 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) |
| 147 | 147 | |
| 148 | 148 | MDRV_DEVICE_ADD("dma8257", DMA8257) |
| 149 | | MDRV_DEVICE_CONFIG(apogee_dma) |
| 149 | MDRV_DEVICE_CONFIG(radio86_dma) |
| 150 | 150 | MACHINE_DRIVER_END |
| 151 | 151 | |
| 152 | 152 | static void apogee_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| r2904 | r2905 | |
| 178 | 178 | /* Driver */ |
| 179 | 179 | |
| 180 | 180 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME FLAGS */ |
| 181 | | COMP( 1989, apogee, radio86,0, apogee, apogee,apogee, apogee, "Zavod BRA", "Apogee BK-01", 0) |
| 181 | COMP( 1989, apogee, radio86,0, apogee, apogee,radio86, apogee, "Zavod BRA", "Apogee BK-01", 0) |