trunk/src/mame/drivers/cardline.c
| r245636 | r245637 | |
| 13 | 13 | XTAL 12 MHz |
| 14 | 14 | XTAL 4 MHz |
| 15 | 15 | |
| 16 | TODO: |
| 17 | Hook up MC6845P |
| 18 | |
| 16 | 19 | ***********************************/ |
| 17 | 20 | |
| 18 | 21 | |
| r245636 | r245637 | |
| 99 | 102 | WRITE8_MEMBER(cardline_state::video_w) |
| 100 | 103 | { |
| 101 | 104 | m_video=data; |
| 105 | //printf("m_video %x\n", m_video); |
| 102 | 106 | } |
| 103 | 107 | |
| 104 | 108 | READ8_MEMBER(cardline_state::unk_r) |
| 105 | 109 | { |
| 110 | /* TODO: Certainly a hack. Most likely video related. |
| 111 | * Using VBLANK makes screen updates to slow. May be hblank. |
| 112 | */ |
| 106 | 113 | m_var^=0x10; |
| 107 | | //printf("var %d\n",m_var); |
| 114 | //printf("var %x\n",m_var); |
| 108 | 115 | return m_var; |
| 109 | 116 | } |
| 110 | 117 | |
| r245636 | r245637 | |
| 174 | 181 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) |
| 175 | 182 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 176 | 183 | PORT_BIT( 0xf5, IP_ACTIVE_HIGH, IPT_SPECIAL ) // h/w status bits |
| 184 | |
| 185 | PORT_START("VBLANK") |
| 186 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_CUSTOM ) PORT_VBLANK("screen") // VBLANK_Q |
| 187 | PORT_BIT( 0xef, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 188 | |
| 177 | 189 | INPUT_PORTS_END |
| 178 | 190 | |
| 179 | 191 | static const gfx_layout charlayout = |
| r245636 | r245637 | |
| 222 | 234 | |
| 223 | 235 | /* basic machine hardware */ |
| 224 | 236 | MCFG_CPU_ADD("maincpu", I80C32,12000000) |
| 237 | MCFG_MCS51_PORT1_CONFIG(0x10) |
| 225 | 238 | MCFG_CPU_PROGRAM_MAP(mem_prg) |
| 226 | 239 | MCFG_CPU_IO_MAP(mem_io) |
| 227 | 240 | //MCFG_CPU_VBLANK_INT_DRIVER("screen", cardline_state, irq1_line_hold) |