trunk/src/mess/drivers/apc.c
| r19057 | r19058 | |
| 57 | 57 | #include "machine/pit8253.h" |
| 58 | 58 | #include "machine/am9517a.h" |
| 59 | 59 | #include "machine/upd765.h" |
| 60 | #include "machine/nvram.h" |
| 60 | 61 | #include "video/upd7220.h" |
| 61 | 62 | #include "imagedev/flopdrv.h" |
| 62 | 63 | #include "formats/mfi_dsk.h" |
| 63 | 64 | #include "formats/d88_dsk.h" |
| 64 | 65 | #include "formats/imd_dsk.h" |
| 66 | |
| 65 | 67 | //#include "sound/ay8910.h" |
| 66 | 68 | |
| 67 | 69 | class apc_state : public driver_device |
| r19057 | r19058 | |
| 227 | 229 | if(reverse) { tile_data^=0xff; } |
| 228 | 230 | if(u_line && yi == lr-1) { tile_data = 0xff; } |
| 229 | 231 | if(o_line && yi == 0) { tile_data = 0xff; } |
| 230 | | if(v_line) { tile_data|=8; } |
| 231 | | if(blink && device->machine().primary_screen->frame_number() & 0x10) { tile_data = 0; } // TODO: rate & correct behaviour |
| 232 | if(v_line) { tile_data|=1; } |
| 233 | if(blink && device->machine().primary_screen->frame_number() & 0x20) { tile_data = 0; } // TODO: rate & correct behaviour |
| 232 | 234 | |
| 233 | 235 | if(cursor_on && cursor_addr == tile_addr && device->machine().primary_screen->frame_number() & 0x10) |
| 234 | 236 | tile_data^=0xff; |
| r19057 | r19058 | |
| 405 | 407 | |
| 406 | 408 | static ADDRESS_MAP_START( apc_map, AS_PROGRAM, 16, apc_state ) |
| 407 | 409 | AM_RANGE(0x00000, 0x9ffff) AM_RAM |
| 408 | | // AM_RANGE(0xa0000, 0xa0fff) CMOS |
| 410 | AM_RANGE(0xa0000, 0xa0fff) AM_RAM AM_SHARE("cmos") |
| 409 | 411 | // AM_RANGE(0xc0000, 0xcffff) standard character ROM |
| 410 | | // AM_RANGE(0xde000, 0xdffff) AUX character RAM |
| 412 | AM_RANGE(0xd8000, 0xdffff) AM_RAM // AUX character RAM |
| 411 | 413 | // AM_RANGE(0xe0000, 0xeffff) Special Character RAM |
| 412 | 414 | AM_RANGE(0xfe000, 0xfffff) AM_ROM AM_REGION("ipl", 0) |
| 413 | 415 | ADDRESS_MAP_END |
| r19057 | r19058 | |
| 910 | 912 | MCFG_PIC8259_ADD( "pic8259_slave", pic8259_slave_config ) |
| 911 | 913 | MCFG_I8237_ADD("i8237", MAIN_CLOCK, dmac_intf) |
| 912 | 914 | |
| 915 | MCFG_NVRAM_ADD_1FILL("cmos") |
| 916 | |
| 913 | 917 | MCFG_UPD765A_ADD("upd765", true, true) |
| 914 | 918 | MCFG_FLOPPY_DRIVE_ADD("upd765:0", apc_floppies, "8", 0, apc_floppy_formats) |
| 915 | 919 | MCFG_FLOPPY_DRIVE_ADD("upd765:1", apc_floppies, "8", 0, apc_floppy_formats) |