src/mess/drivers/pc100.c
| r11785 | r11786 | |
| 4 | 4 | |
| 5 | 5 | TODO: |
| 6 | 6 | - kanji rom has offsetted data for whatever reason. |
| 7 | | - there's a regression with push/pop sp, when it triggers an iret program |
| 8 | | flow jumps to la-la-land |
| 7 | - there's a regression with i8259, check this code: |
| 8 | F8209: B8 FB 00 mov ax,0FBh |
| 9 | F820C: E6 02 out 2h,al |
| 10 | F820E: B9 00 00 mov cx,0h |
| 11 | F8211: FB sti |
| 12 | F8212: 0A E4 or ah,ah <- it's supposed to trigger an irq there! |
| 13 | F8214: E1 FC loopz 0F8212h |
| 14 | F8216: FA cli |
| 15 | F8217: 0A E9 or ch,cl |
| 16 | F8219: 74 15 je 0F8230h |
| 9 | 17 | |
| 10 | 18 | ****************************************************************************/ |
| 11 | 19 | |
| r11785 | r11786 | |
| 317 | 325 | return pic8259_acknowledge( device->machine().device( "pic8259" ) ); |
| 318 | 326 | } |
| 319 | 327 | |
| 320 | | static WRITE_LINE_DEVICE_HANDLER( pc100_pic_irq ) |
| 328 | static WRITE_LINE_DEVICE_HANDLER( pc100_set_int_line ) |
| 321 | 329 | { |
| 322 | | cputag_set_input_line(device->machine(), "maincpu", 0, state ? ASSERT_LINE : CLEAR_LINE); |
| 323 | | // logerror("PIC#1: set IRQ line to %i\n",interrupt); |
| 330 | //printf("%02x\n",interrupt); |
| 331 | cputag_set_input_line(device->machine(), "maincpu", 0, state ? HOLD_LINE : CLEAR_LINE); |
| 324 | 332 | } |
| 325 | 333 | |
| 326 | | |
| 327 | 334 | static const struct pic8259_interface pc100_pic8259_config = |
| 328 | 335 | { |
| 329 | | DEVCB_LINE(pc100_pic_irq), |
| 330 | | DEVCB_LINE_VCC, |
| 336 | DEVCB_LINE(pc100_set_int_line), |
| 337 | DEVCB_LINE_GND, |
| 331 | 338 | DEVCB_NULL |
| 332 | 339 | }; |
| 333 | 340 | |
| 334 | 341 | static MACHINE_START(pc100) |
| 335 | 342 | { |
| 336 | 343 | pc100_state *state = machine.driver_data<pc100_state>(); |
| 344 | |
| 337 | 345 | device_set_irq_callback(machine.device("maincpu"), pc100_irq_callback); |
| 338 | | |
| 339 | 346 | state->m_kanji_rom = (UINT16 *)machine.region("kanji")->base(); |
| 340 | 347 | state->m_vram = (UINT16 *)machine.region("vram")->base(); |
| 341 | 348 | } |
| r11785 | r11786 | |
| 402 | 409 | MCFG_SCREEN_REFRESH_RATE(60) |
| 403 | 410 | MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 404 | 411 | MCFG_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 405 | | MCFG_SCREEN_SIZE(768, 560) |
| 412 | MCFG_SCREEN_SIZE(1024, 1024) |
| 406 | 413 | MCFG_SCREEN_VISIBLE_AREA(0, 768-1, 0, 512-1) |
| 407 | 414 | MCFG_SCREEN_UPDATE(pc100) |
| 408 | 415 | |