Previous 15994 Revisions Next

r2478 Saturday 26th April, 2008 at 09:35:41 UTC by Wilbert Pol
[IBMPCJR] Added specific pcjr pit8253 interface. Lowered the cpu clock to 5 mhz (still incorrect).
[src/mess/drivers]pc.c
[src/mess/includes]pc.h
[src/mess/machine]pc.c

src/mess/includes/pc.h
r2477r2478
1313
1414extern const struct dma8237_interface pc_dma8237_config;
1515extern const struct pit8253_config pc_pit8253_config;
16extern const struct pit8253_config pcjr_pit8253_config;
1617extern const struct pic8259_interface pc_pic8259_master_config;
1718extern const struct pic8259_interface pc_pic8259_slave_config;
1819extern const ins8250_interface ibmpc_com_interface[4];
src/mess/machine/pc.c
r2477r2478
215215};
216216
217217
218/*
219  On the PC Jr the input for clock 1 seems to be selectable
220  based on bit 4(/5?) written to output port A0h. This is not
221  supported yet.
222 */
223
224const struct pit8253_config pcjr_pit8253_config =
225{
226   {
227      {
228         4772720/4,              /* heartbeat IRQ */
229         pc_timer0_w,
230         NULL
231      }, {
232         4772720/4,              /* dram refresh */
233         NULL,
234         NULL
235      }, {
236         4772720/4,              /* pio port c pin 4, and speaker polling enough */
237         NULL,
238         NULL               /* TIMER AUDIO signal */
239      }
240   }
241};
242
218243/**********************************************************
219244 *
220245 * COM hardware
src/mess/drivers/pc.c
r2477r2478
3737Tandy 1000 (80386) variations:
38381000RSX/1000RSX-HD   1M-9M RAM         25.0/8.0 MHz   v01.10.00
3939
40IBM PC Jr:
41
42TODO: Which clock signals are available in a PC Jr?
43      - What clock is Y1? This eventually gets passed on to the CPU (ZM40?) and some other components by a 8284 (ZM8?).
44      - Is the clock attached to the Video Gate Array (ZM36?) exactly 14MHz?
45
4046***************************************************************************/
4147
4248
r2477r2478
17071713
17081714static MACHINE_DRIVER_START( ibmpcjr )
17091715   /* basic machine hardware */
1710   MDRV_CPU_PC(tandy1000, ibmpcjr, I8088, 8000000, tandy1000_frame_interrupt)
1716   MDRV_CPU_PC(tandy1000, ibmpcjr, I8088, 5000000, tandy1000_frame_interrupt)   /* TODO: Get correct cpu frequency */
17111717
17121718   MDRV_MACHINE_START(pc)
17131719   MDRV_MACHINE_RESET(pc)
17141720
17151721   MDRV_DEVICE_ADD( "pit8253", PIT8253 )
1716   MDRV_DEVICE_CONFIG( pc_pit8253_config )
1722   MDRV_DEVICE_CONFIG( pcjr_pit8253_config )
17171723
17181724   MDRV_DEVICE_ADD( "dma8237", DMA8237 )
17191725   MDRV_DEVICE_CONFIG( pc_dma8237_config )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team