Previous 15994 Revisions Next

r2032 Thursday 20th March, 2008 at 20:49:58 UTC by Firewave
More Machine -> machine cleanups
[src/mess/includes]kc.h
[src/mess/machine]kc.c
[src/mess/video]coco.c kc.c zx.c

src/mess/includes/kc.h
r2031r2032
2525
2626extern PALETTE_INIT( kc85 );
2727
28void kc85_video_set_blink_state(int data);
28void kc85_video_set_blink_state(running_machine *machine, int data);
2929
3030VIDEO_START( kc85_3 );
3131VIDEO_START( kc85_4 );
src/mess/video/zx.c
r2031r2032
1717****************************************************************************/
1818
1919#include "driver.h"
20#include "deprecat.h"
2120#include "cpu/z80/z80.h"
2221#include "includes/zx.h"
2322#include "sound/dac.h"
src/mess/video/coco.c
r2031r2032
1616
1717***************************************************************************/
1818
19#include <assert.h>
20#include <math.h>
21
2219#include "driver.h"
2320#include "deprecat.h"
2421#include "machine/6821pia.h"
r2031r2032
6461
6562
6663
67static void internal_video_start_coco(m6847_type type)
64static void internal_video_start_coco(running_machine *machine, m6847_type type)
6865{
6966   m6847_config cfg;
7067
r2031r2032
7370
7471   /* NPW 14-May-2006 - Ugly hack; using CPU timing factor seems to break some
7572    * Dragon games */
76   if (Machine->gamedrv->name[0] == 'c')
73   if (machine->gamedrv->name[0] == 'c')
7774      cfg.cpu0_timing_factor = 4;
7875
7976   cfg.get_attributes = coco_get_attributes;
r2031r2032
8885
8986VIDEO_START( dragon )
9087{
91   internal_video_start_coco(M6847_VERSION_ORIGINAL_PAL);
88   internal_video_start_coco(machine, M6847_VERSION_ORIGINAL_PAL);
9289}
9390
9491VIDEO_START( coco )
9592{
96   internal_video_start_coco(M6847_VERSION_ORIGINAL_NTSC);
93   internal_video_start_coco(machine, M6847_VERSION_ORIGINAL_NTSC);
9794}
9895
9996VIDEO_START( coco2b )
10097{
101   internal_video_start_coco(M6847_VERSION_M6847T1_NTSC);
98   internal_video_start_coco(machine, M6847_VERSION_M6847T1_NTSC);
10299}
103100
src/mess/video/kc.c
r2031r2032
77***************************************************************************/
88
99#include "driver.h"
10#include "deprecat.h"
1110#include "includes/kc.h"
1211#include "eventlst.h"
1312
r2031r2032
110109};
111110
112111/* set new blink state - record blink state in event list */
113void   kc85_video_set_blink_state(int data)
112void kc85_video_set_blink_state(running_machine *machine, int data)
114113{
115   EventList_AddItemOffset(KC85_VIDEO_EVENT_SET_BLINK_STATE, ((data & 0x01)<<7), ATTOTIME_TO_CYCLES(0, attotime_mul(video_screen_get_scan_period(Machine->primary_screen), video_screen_get_vpos(Machine->primary_screen))));
114   EventList_AddItemOffset(KC85_VIDEO_EVENT_SET_BLINK_STATE, ((data & 0x01)<<7), ATTOTIME_TO_CYCLES(0, attotime_mul(video_screen_get_scan_period(machine->primary_screen), video_screen_get_vpos(machine->primary_screen))));
116115}
117116
118117
src/mess/machine/kc.c
r2031r2032
18171817   {
18181818      /* yes */
18191819      /* toggle state of blink to video hardware */
1820      kc85_video_set_blink_state(data);
1820      kc85_video_set_blink_state(machine, data);
18211821   }
18221822}
18231823

Previous 15994 Revisions Next


© 1998-2018 The MESS Team