Previous 15994 Revisions Next

r1483 Friday 4th January, 2008 at 20:03:36 UTC by Dirk Best
Updated AIM-65 driver to use xtal.h
[src/mess/drivers]aim65.c
[src/mess/includes]aim65.h
[src/mess/machine]aim65.c

src/mess/includes/aim65.h
r1482r1483
1/*****************************************************************************
2 *
3 * Rockwell AIM-65
4 *
5 ****************************************************************************/
6
17#include "driver.h"
28
39/* R6502 Clock
r1482r1483
612 * crystal controllred oscillator. Dual D-type flip-flop Z10 devides the 4 MHz
713 * signal by four to drive the R6502 phase 0 (O0) input with a 1 MHz clock.
814 */
9#define OSC_Y1 4000000
15#define AIM65_CLOCK XTAL_4MHz/4
1016
17
1118/*----------- defined in machine/aim65.c -----------*/
1219
1320extern DRIVER_INIT( aim65 );
r1482r1483
1724
1825VIDEO_START( aim65 );
1926
27
2028/* Printer */
2129void aim65_printer_data_a(UINT8 data);
2230void aim65_printer_data_b(UINT8 data);
src/mess/machine/aim65.c
r1482r1483
266266   pia_config(0, &pia);
267267
268268   r6532_config(0, &r6532_interface);
269   r6532_set_clock(0, 1000000);
269   r6532_set_clock(0, AIM65_CLOCK);
270270   r6532_reset(0);
271271
272272   via_config(0, &via0);
src/mess/drivers/aim65.c
r1482r1483
156156
157157static MACHINE_DRIVER_START( aim65 )
158158   /* basic machine hardware */
159   MDRV_CPU_ADD(M6502, OSC_Y1/4) /* 1 MHz */
159   MDRV_CPU_ADD(M6502, AIM65_CLOCK) /* 1 MHz */
160160   MDRV_CPU_PROGRAM_MAP(aim65_mem, 0)
161161
162162   MDRV_DEFAULT_LAYOUT(layout_aim65)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team