src/mess/video/isa_cga.c
| r14591 | r14592 | |
| 684 | 684 | m_chr_gen_offset[0] = m_chr_gen_offset[2] = 0x1800; |
| 685 | 685 | m_chr_gen_offset[1] = m_chr_gen_offset[3] = 0x1000; |
| 686 | 686 | m_font_selection_mask = 0x01; |
| 687 | | m_shortname = "cga"; |
| 688 | 687 | } |
| 689 | 688 | |
| 690 | | isa8_cga_device::isa8_cga_device(const machine_config &mconfig, device_type type, const char *name, const char *shortname, const char *tag, device_t *owner, UINT32 clock) : |
| 689 | isa8_cga_device::isa8_cga_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : |
| 691 | 690 | device_t(mconfig, type, name, tag, owner, clock), |
| 692 | 691 | device_isa8_card_interface(mconfig, *this), |
| 693 | 692 | m_vram_size( 0x4000 ) |
| r14591 | r14592 | |
| 695 | 694 | m_chr_gen_offset[0] = m_chr_gen_offset[2] = 0x1800; |
| 696 | 695 | m_chr_gen_offset[1] = m_chr_gen_offset[3] = 0x1000; |
| 697 | 696 | m_font_selection_mask = 0x01; |
| 698 | | m_shortname = shortname; |
| 699 | 697 | } |
| 700 | 698 | |
| 701 | 699 | |
| r14591 | r14592 | |
| 766 | 764 | //------------------------------------------------- |
| 767 | 765 | |
| 768 | 766 | isa8_cga_mc1502_device::isa8_cga_mc1502_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 769 | | isa8_cga_device( mconfig, ISA8_CGA_MC1502, "ISA8_CGA_MC1502", "cga_mc1502", tag, owner, clock ) |
| 767 | isa8_cga_device( mconfig, ISA8_CGA_MC1502, "ISA8_CGA_MC1502", tag, owner, clock ) |
| 770 | 768 | { |
| 771 | 769 | m_vram_size = 0x8000; |
| 772 | 770 | } |
| r14591 | r14592 | |
| 819 | 817 | //------------------------------------------------- |
| 820 | 818 | |
| 821 | 819 | isa8_cga_poisk1_device::isa8_cga_poisk1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 822 | | isa8_cga_device( mconfig, ISA8_CGA_POISK1, "ISA8_CGA_POISK1", "cga_poisk1", tag, owner, clock ) |
| 820 | isa8_cga_device( mconfig, ISA8_CGA_POISK1, "ISA8_CGA_POISK1", tag, owner, clock ) |
| 823 | 821 | { |
| 824 | 822 | m_chr_gen_offset[0] = 0x0000; |
| 825 | 823 | m_font_selection_mask = 0; |
| r14591 | r14592 | |
| 847 | 845 | //------------------------------------------------- |
| 848 | 846 | |
| 849 | 847 | isa8_cga_poisk2_device::isa8_cga_poisk2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 850 | | isa8_cga_device( mconfig, ISA8_CGA_POISK2, "ISA8_CGA_POISK2", "cga_poisk2", tag, owner, clock ) |
| 848 | isa8_cga_device( mconfig, ISA8_CGA_POISK2, "ISA8_CGA_POISK2", tag, owner, clock ) |
| 851 | 849 | { |
| 852 | 850 | m_chr_gen_offset[0] = 0x0000; |
| 853 | 851 | m_chr_gen_offset[1] = 0x0800; |
| r14591 | r14592 | |
| 876 | 874 | //------------------------------------------------- |
| 877 | 875 | |
| 878 | 876 | isa8_cga_superimpose_device::isa8_cga_superimpose_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 879 | | isa8_cga_device( mconfig, ISA8_CGA_SUPERIMPOSE, "ISA8_CGA_SUPERIMPOSE", "cga_superimpose", tag, owner, clock ) |
| 877 | isa8_cga_device( mconfig, ISA8_CGA_SUPERIMPOSE, "ISA8_CGA_SUPERIMPOSE", tag, owner, clock ) |
| 880 | 878 | { |
| 881 | 879 | m_superimpose = true; |
| 882 | 880 | } |
| r14591 | r14592 | |
| 1984 | 1982 | //------------------------------------------------- |
| 1985 | 1983 | |
| 1986 | 1984 | isa8_cga_pc1512_device::isa8_cga_pc1512_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 1987 | | isa8_cga_device( mconfig, ISA8_CGA_PC1512, "ISA8_CGA_PC1512", "cga_pc1512", tag, owner, clock ) |
| 1985 | isa8_cga_device( mconfig, ISA8_CGA_PC1512, "ISA8_CGA_PC1512", tag, owner, clock ) |
| 1988 | 1986 | { |
| 1989 | 1987 | m_vram_size = 0x10000; |
| 1990 | 1988 | m_chr_gen_offset[0] = 0x0000; |
src/mess/video/isa_cga.h
| r14591 | r14592 | |
| 26 | 26 | public: |
| 27 | 27 | // construction/destruction |
| 28 | 28 | isa8_cga_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 29 | | isa8_cga_device(const machine_config &mconfig, device_type type, const char *name, const char *shortname, const char *tag, device_t *owner, UINT32 clock); |
| 29 | isa8_cga_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); |
| 30 | 30 | |
| 31 | 31 | // optional information overrides |
| 32 | 32 | virtual machine_config_constructor device_mconfig_additions() const; |
| r14591 | r14592 | |
| 37 | 37 | // device-level overrides |
| 38 | 38 | virtual void device_start(); |
| 39 | 39 | virtual void device_reset(); |
| 40 | | |
| 40 | virtual void device_config_complete() { m_shortname = "cga"; } |
| 41 | 41 | public: |
| 42 | 42 | void mode_control_w(UINT8 data); |
| 43 | 43 | void set_palette_luts(); |
| r14591 | r14592 | |
| 84 | 84 | public: |
| 85 | 85 | // construction/destruction |
| 86 | 86 | isa8_cga_superimpose_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 87 | virtual void device_config_complete() { m_shortname = "cga_superimpose"; } |
| 87 | 88 | }; |
| 88 | 89 | |
| 89 | 90 | // device type definition |
| r14591 | r14592 | |
| 100 | 101 | isa8_cga_mc1502_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 101 | 102 | // optional information overrides |
| 102 | 103 | virtual const rom_entry *device_rom_region() const; |
| 104 | virtual void device_config_complete() { m_shortname = "cga_mc1502"; } |
| 103 | 105 | }; |
| 104 | 106 | |
| 105 | 107 | // device type definition |
| r14591 | r14592 | |
| 116 | 118 | isa8_cga_poisk1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 117 | 119 | // optional information overrides |
| 118 | 120 | virtual const rom_entry *device_rom_region() const; |
| 121 | virtual void device_config_complete() { m_shortname = "cga_poisk1"; } |
| 119 | 122 | }; |
| 120 | 123 | |
| 121 | 124 | // device type definition |
| r14591 | r14592 | |
| 132 | 135 | isa8_cga_poisk2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 133 | 136 | // optional information overrides |
| 134 | 137 | virtual const rom_entry *device_rom_region() const; |
| 138 | virtual void device_config_complete() { m_shortname = "cga_poisk2"; } |
| 135 | 139 | }; |
| 136 | 140 | |
| 137 | 141 | // device type definition |
| r14591 | r14592 | |
| 149 | 153 | // optional information overrides |
| 150 | 154 | virtual ioport_constructor device_input_ports() const; |
| 151 | 155 | virtual const rom_entry *device_rom_region() const; |
| 156 | virtual void device_config_complete() { m_shortname = "cga_pc1512"; } |
| 152 | 157 | |
| 153 | 158 | protected: |
| 154 | 159 | // device-level overrides |