src/mess/video/m6847.c
| r5852 | r5853 | |
| 1199 | 1199 | |
| 1200 | 1200 | bg_color = color(m6847->colordata[attr_index][byte / 16][0]); |
| 1201 | 1201 | fg_color = color(m6847->colordata[attr_index][byte / 16][1]); |
| 1202 | | |
| 1202 | |
| 1203 | 1203 | if( (!m6847->has_lowercase) && (attr & M6847_INTEXT) && !(attr & M6847_AS)) { |
| 1204 | 1204 | if (m6847->get_char_rom) { |
| 1205 | 1205 | char_data = m6847->get_char_rom(machine,byte,scanline % 12); |
| r5852 | r5853 | |
| 1207 | 1207 | char_data = 0xff; |
| 1208 | 1208 | } |
| 1209 | 1209 | } else { |
| 1210 | | char_data = m6847->fontdata[attr_index][byte][scanline % 12]; |
| 1210 | if (m6847->get_char_rom) |
| 1211 | char_data = m6847->get_char_rom(machine,byte,scanline % 12); |
| 1212 | else |
| 1213 | char_data = m6847->fontdata[attr_index][byte][scanline % 12]; |
| 1211 | 1214 | } |
| 1212 | 1215 | |
| 1213 | 1216 | line[x*8+0] = (char_data & 0x80) ? fg_color : bg_color; |
| r5852 | r5853 | |
| 1760 | 1763 | |
| 1761 | 1764 | if (attr & M6847_GM1) |
| 1762 | 1765 | attr ^= M6847_INV; |
| 1763 | | |
| 1766 | |
| 1764 | 1767 | } |
| 1765 | 1768 | |
| 1766 | 1769 | if (attr & M6847_INV) |
src/mess/drivers/mc1000.c
| r5852 | r5853 | |
| 84 | 84 | static READ8_HANDLER( printer_r ) |
| 85 | 85 | { |
| 86 | 86 | mc1000_state *state = space->machine->driver_data; |
| 87 | | |
| 87 | |
| 88 | 88 | return centronics_busy_r(state->centronics); |
| 89 | 89 | } |
| 90 | 90 | |
| r5852 | r5853 | |
| 148 | 148 | AM_RANGE(0x05, 0x05) AM_DEVWRITE(CENTRONICS_TAG, centronics_data_w) |
| 149 | 149 | // AM_RANGE(0x10, 0x10) AM_DEVWRITE(MC6845_TAG, mc6845_address_w) |
| 150 | 150 | // AM_RANGE(0x11, 0x11) AM_DEVREADWRITE(MC6845_TAG, mc6845_register_r, mc6845_register_w) |
| 151 | | AM_RANGE(0x12, 0x12) AM_WRITE(mc6845_ctrl_w) |
| 151 | AM_RANGE(0x12, 0x12) AM_WRITE(mc6845_ctrl_w) |
| 152 | 152 | AM_RANGE(0x20, 0x20) AM_DEVWRITE(AY8910_TAG, ay8910_address_w) |
| 153 | 153 | AM_RANGE(0x40, 0x40) AM_DEVREAD(AY8910_TAG, ay8910_r) |
| 154 | 154 | AM_RANGE(0x60, 0x60) AM_DEVWRITE(AY8910_TAG, ay8910_data_w) |
| r5852 | r5853 | |
| 271 | 271 | return data; |
| 272 | 272 | } |
| 273 | 273 | |
| 274 | #if 0 |
| 274 | 275 | static UINT8 mc1000_get_char_rom(running_machine *machine, UINT8 ch,int line) |
| 275 | 276 | { |
| 276 | 277 | return ch; |
| 277 | 278 | } |
| 279 | #endif |
| 278 | 280 | |
| 279 | 281 | static const UINT8 *mc1000_get_video_ram(running_machine *machine, int scanline) |
| 280 | 282 | { |
| 281 | 283 | mc1000_state *state = machine->driver_data; |
| 282 | | |
| 284 | |
| 283 | 285 | UINT16 addr = 0; |
| 284 | 286 | |
| 285 | 287 | if (BIT(state->mc6847_attr, 7)) |
| r5852 | r5853 | |
| 312 | 314 | cfg.field_sync_callback = mc1000_vsync; |
| 313 | 315 | cfg.get_attributes = mc1000_get_attributes; |
| 314 | 316 | cfg.get_video_ram = mc1000_get_video_ram; |
| 315 | | cfg.get_char_rom = mc1000_get_char_rom; |
| 317 | // cfg.get_char_rom = mc1000_get_char_rom; |
| 316 | 318 | |
| 317 | 319 | m6847_init(machine, &cfg); |
| 318 | 320 | } |