trunk/src/mess/video/isa_cga.c
| r20641 | r20642 | |
| 143 | 143 | |
| 144 | 144 | |
| 145 | 145 | /* Dipswitch for font selection */ |
| 146 | | #define CGA_FONT (ioport("cga_config")->read() & m_font_selection_mask) |
| 146 | #define CGA_FONT (m_cga_config->read() & m_font_selection_mask) |
| 147 | 147 | |
| 148 | 148 | /* Dipswitch for monitor selection */ |
| 149 | | #define CGA_MONITOR (ioport("cga_config")->read()&0x1C) |
| 149 | #define CGA_MONITOR (m_cga_config->read()&0x1C) |
| 150 | 150 | #define CGA_MONITOR_RGB 0x00 /* Colour RGB */ |
| 151 | 151 | #define CGA_MONITOR_MONO 0x04 /* Greyscale RGB */ |
| 152 | 152 | #define CGA_MONITOR_COMPOSITE 0x08 /* Colour composite */ |
| r20641 | r20642 | |
| 156 | 156 | |
| 157 | 157 | /* Dipswitch for chipset selection */ |
| 158 | 158 | /* TODO: Get rid of this; these should be handled by separate classes */ |
| 159 | | #define CGA_CHIPSET (ioport("cga_config")->read() & 0xE0) |
| 159 | #define CGA_CHIPSET (m_cga_config->read() & 0xE0) |
| 160 | 160 | #define CGA_CHIPSET_IBM 0x00 /* Original IBM CGA */ |
| 161 | 161 | #define CGA_CHIPSET_PC1512 0x20 /* PC1512 CGA subset */ |
| 162 | 162 | #define CGA_CHIPSET_PC200 0x40 /* PC200 in CGA mode */ |
| r20641 | r20642 | |
| 679 | 679 | isa8_cga_device::isa8_cga_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 680 | 680 | device_t(mconfig, ISA8_CGA, "IBM Color/Graphics Monitor Adapter", tag, owner, clock), |
| 681 | 681 | device_isa8_card_interface(mconfig, *this), |
| 682 | m_cga_config(*this, "cga_config"), |
| 682 | 683 | m_vram_size( 0x4000 ) |
| 683 | 684 | { |
| 684 | 685 | m_chr_gen_offset[0] = m_chr_gen_offset[2] = 0x1800; |
| r20641 | r20642 | |
| 690 | 691 | 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 | 692 | device_t(mconfig, type, name, tag, owner, clock), |
| 692 | 693 | device_isa8_card_interface(mconfig, *this), |
| 694 | m_cga_config(*this, "cga_config"), |
| 693 | 695 | m_vram_size( 0x4000 ) |
| 694 | 696 | { |
| 695 | 697 | m_chr_gen_offset[0] = m_chr_gen_offset[2] = 0x1800; |