src/mess/video/pc_aga.c
| r2073 | r2074 | |
| 143 | 143 | |
| 144 | 144 | static READ8_HANDLER ( pc_aga_cga_r ) |
| 145 | 145 | { |
| 146 | | if (aga.mode==AGA_COLOR) |
| 147 | | return pc_cga8_r(machine, offset); |
| 146 | // if (aga.mode==AGA_COLOR) |
| 147 | // return pc_cga8_r(machine, offset); |
| 148 | 148 | return 0xff; |
| 149 | 149 | } |
| 150 | 150 | |
| 151 | 151 | static WRITE8_HANDLER ( pc_aga_cga_w ) |
| 152 | 152 | { |
| 153 | | if (aga.mode==AGA_COLOR) |
| 154 | | pc_cga8_w(machine, offset, data); |
| 153 | // if (aga.mode==AGA_COLOR) |
| 154 | // pc_cga8_w(machine, offset, data); |
| 155 | 155 | } |
| 156 | 156 | |
| 157 | 157 | static READ16_HANDLER ( pc16le_aga_mda_r ) { return read16le_with_read8_handler(pc_aga_mda_r, machine, offset, mem_mask); } |
| r2073 | r2074 | |
| 192 | 192 | { |
| 193 | 193 | switch (aga.mode) { |
| 194 | 194 | case AGA_COLOR: |
| 195 | | pc_cga_cursor(cursor); |
| 195 | // pc_cga_cursor(cursor); |
| 196 | 196 | break; |
| 197 | 197 | |
| 198 | 198 | case AGA_MONO: |
| r2073 | r2074 | |
| 274 | 274 | |
| 275 | 275 | switch (aga.mode) { |
| 276 | 276 | case AGA_COLOR: |
| 277 | | proc = pc_cga_choosevideomode(width, height, crtc); |
| 277 | // proc = pc_cga_choosevideomode(width, height, crtc); |
| 278 | 278 | break; |
| 279 | 279 | case AGA_MONO: |
| 280 | 280 | // proc = pc_mda_choosevideomode(width, height, crtc); |
| r2073 | r2074 | |
| 354 | 354 | switch(offset) { |
| 355 | 355 | case 4: |
| 356 | 356 | pc200.portd |= 0x20; |
| 357 | | pc_cga8_w(machine, offset,data); |
| 357 | // pc_cga8_w(machine, offset,data); |
| 358 | 358 | break; |
| 359 | 359 | case 8: |
| 360 | 360 | pc200.port8 = data; |
| 361 | 361 | pc200.portd |= 0x80; |
| 362 | | pc_cga8_w(machine, offset,data); |
| 362 | // pc_cga8_w(machine, offset,data); |
| 363 | 363 | break; |
| 364 | 364 | case 0xe: |
| 365 | 365 | pc200.portd = 0x1f; |
| r2073 | r2074 | |
| 384 | 384 | break; |
| 385 | 385 | |
| 386 | 386 | default: |
| 387 | | pc_cga8_w(machine, offset,data); |
| 387 | // pc_cga8_w(machine, offset,data); |
| 388 | 388 | break; |
| 389 | 389 | } |
| 390 | 390 | } |
| r2073 | r2074 | |
| 411 | 411 | break; |
| 412 | 412 | |
| 413 | 413 | default: |
| 414 | | result = pc_cga8_r(machine, offset); |
| 414 | // result = pc_cga8_r(machine, offset); |
| 415 | 415 | break; |
| 416 | 416 | } |
| 417 | 417 | return result; |