Previous 15994 Revisions Next

r11786 Thursday 2nd June, 2011 at 22:14:43 UTC by Angelo Salese
Last fixes, i8259 is basically broken and this proves it
[src/mess/drivers]pc100.c

src/mess/drivers/pc100.c
r11785r11786
44
55    TODO:
66    - 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
917
1018****************************************************************************/
1119
r11785r11786
317325   return pic8259_acknowledge( device->machine().device( "pic8259" ) );
318326}
319327
320static WRITE_LINE_DEVICE_HANDLER( pc100_pic_irq )
328static WRITE_LINE_DEVICE_HANDLER( pc100_set_int_line )
321329{
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);
324332}
325333
326
327334static const struct pic8259_interface pc100_pic8259_config =
328335{
329   DEVCB_LINE(pc100_pic_irq),
330   DEVCB_LINE_VCC,
336   DEVCB_LINE(pc100_set_int_line),
337   DEVCB_LINE_GND,
331338   DEVCB_NULL
332339};
333340
334341static MACHINE_START(pc100)
335342{
336343   pc100_state *state = machine.driver_data<pc100_state>();
344
337345   device_set_irq_callback(machine.device("maincpu"), pc100_irq_callback);
338
339346   state->m_kanji_rom = (UINT16 *)machine.region("kanji")->base();
340347   state->m_vram = (UINT16 *)machine.region("vram")->base();
341348}
r11785r11786
402409   MCFG_SCREEN_REFRESH_RATE(60)
403410   MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */
404411   MCFG_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
405   MCFG_SCREEN_SIZE(768, 560)
412   MCFG_SCREEN_SIZE(1024, 1024)
406413   MCFG_SCREEN_VISIBLE_AREA(0, 768-1, 0, 512-1)
407414   MCFG_SCREEN_UPDATE(pc100)
408415

Previous 15994 Revisions Next


© 1998-2018 The MESS Team