Previous 15994 Revisions Next

r7512 Friday 5th March, 2010 at 14:14:06 UTC by Fabio Priuli
with these, MESS should compile again...
[src/mess/drivers]4004clk.c cdi.c einstein.c elwro800.c fk1.c mc10.c mod8.c ngp.c sord.c supracan.c vboy.c vii.c vtech1.c z9001.c
[src/mess/includes]samcoupe.h spectrum.h

src/mess/includes/spectrum.h
r7511r7512
7474   UINT8 *screen_location;
7575
7676   int ROMSelection;
77
78   /* for elwro800 */
79   /* RAM mapped at 0 */
80   UINT8 ram_at_0000;
81
82   /* NR signal */
83   UINT8 NR;
84   UINT8 df_on_databus;
7785};
7886
7987
src/mess/includes/samcoupe.h
r7511r7512
2020#define SAM_MIDIOUT_INT  0x10
2121
2222
23typedef struct _coupe_asic coupe_asic;
24struct _coupe_asic
23class coupe_asic
2524{
25public:
26   static void *alloc(running_machine &machine) { return auto_alloc_clear(&machine, coupe_asic(machine)); }
27
28   coupe_asic(running_machine &machine) { }
29
2630   UINT8 lmpr, hmpr, vmpr; /* memory pages */
2731   UINT8 lext, hext;       /* extended memory page */
2832   UINT8 border;           /* border */
src/mess/drivers/vii.c
r7511r7512
5353#define TILE_X_FLIP            0x0004
5454#define TILE_Y_FLIP            0x0008
5555
56typedef struct _vii_state vii_state;
57struct _vii_state
56class vii_state
5857{
58public:
59   static void *alloc(running_machine &machine) { return auto_alloc_clear(&machine, vii_state(machine)); }
60
61   vii_state(running_machine &machine) { }
62
5963   UINT16 *ram;
6064   UINT16 *cart;
6165   UINT16 *rowscroll;
src/mess/drivers/einstein.c
r7511r7512
9191    TYPE DEFINITIONS
9292***************************************************************************/
9393
94typedef struct _einstein_state einstein_state;
95struct _einstein_state
94class einstein_state
9695{
96public:
97   static void *alloc(running_machine &machine) { return auto_alloc_clear(&machine, einstein_state(machine)); }
98
99   einstein_state(running_machine &machine) { }
100
97101   running_device *color_screen;
98102   running_device *ctc;
99103
src/mess/drivers/vboy.c
r7511r7512
4545   UINT16 BKCOL;
4646};
4747
48typedef struct _vboy_state vboy_state;
49struct _vboy_state
48class vboy_state
5049{
50public:
51   static void *alloc(running_machine &machine) { return auto_alloc_clear(&machine, vboy_state(machine)); }
52
53   vboy_state(running_machine &machine) { }
54
5155   UINT16 *font;
5256   UINT16 *bgmap;
5357   UINT16 *l_frame_0;
src/mess/drivers/fk1.c
r7511r7512
1313#include "machine/msm8251.h"
1414#include "devices/messram.h"
1515
16typedef struct _fk1_state fk1_state;
17struct _fk1_state
16class fk1_state
1817{
18public:
19   static void *alloc(running_machine &machine) { return auto_alloc_clear(&machine, fk1_state(machine)); }
20
21   fk1_state(running_machine &machine) { }
22
1923   UINT8 video_rol;
2024   UINT8 int_vector;
2125};
src/mess/drivers/vtech1.c
r7511r7512
153153    TYPE DEFINITIONS
154154***************************************************************************/
155155
156typedef struct _vtech1_state vtech1_state;
157struct _vtech1_state
156class vtech1_state
158157{
158public:
159   static void *alloc(running_machine &machine) { return auto_alloc_clear(&machine, vtech1_state(machine)); }
160
161   vtech1_state(running_machine &machine) { }
162
159163   /* devices */
160164   running_device *mc6847;
161165   running_device *speaker;
src/mess/drivers/cdi.c
r7511r7512
559559   BYTE68K deltaUV[BYTE68K_MAX + 1];
560560};
561561
562typedef struct _cdi_state cdi_state;
563struct _cdi_state
562class cdi_state
564563{
564public:
565   static void *alloc(running_machine &machine) { return auto_alloc_clear(&machine, cdi_state(machine)); }
566
567   cdi_state(running_machine &machine) { }
568
565569   UINT16 *planea;
566570   UINT16 *planeb;
567571
src/mess/drivers/mod8.c
r7511r7512
1111#include "cpu/i8008/i8008.h"
1212#include "machine/teleprinter.h"
1313
14typedef struct _mod8_state mod8_state;
15struct _mod8_state
14class mod8_state
1615{
16public:
17   static void *alloc(running_machine &machine) { return auto_alloc_clear(&machine, mod8_state(machine)); }
18
19   mod8_state(running_machine &machine) { }
20
1721   UINT16 tty_data;
1822   UINT8 tty_key_data;
1923   int tty_cnt;
src/mess/drivers/z9001.c
r7511r7512
99#include "emu.h"
1010#include "cpu/z80/z80.h"
1111
12typedef struct _z9001_state z9001_state;
13struct _z9001_state
12class z9001_state
1413{
14public:
15   static void *alloc(running_machine &machine) { return auto_alloc_clear(&machine, z9001_state(machine)); }
16
17   z9001_state(running_machine &machine) { }
18
1519   UINT8 *videoram;
1620};
1721
src/mess/drivers/sord.c
r7511r7512
5858/* PI-5 interface is required. mode 2 of the 8255 is used to communicate with the FD-5 */
5959
6060
61typedef struct _sord_state sord_state;
62struct _sord_state
61class sord_state
6362{
63public:
64   static void *alloc(running_machine &machine) { return auto_alloc_clear(&machine, sord_state(machine)); }
65
66   sord_state(running_machine &machine) { }
67
6468   UINT8 fd5_databus;
6569   int fd5_port_0x020_data;
6670   int obfa;
src/mess/drivers/ngp.c
r7511r7512
117117};
118118
119119
120typedef struct _ngp_state ngp_state;
121struct _ngp_state {
120class ngp_state
121{
122public:
123   static void *alloc(running_machine &machine) { return auto_alloc_clear(&machine, ngp_state(machine)); }
124
125   ngp_state(running_machine &machine) { }
126
122127   UINT8 io_reg[0x40];
123128   UINT8 old_to3;
124129   emu_timer* seconds_timer;
src/mess/drivers/mc10.c
r7511r7512
2121    TYPE DEFINITIONS
2222***************************************************************************/
2323
24typedef struct _mc10_state mc10_state;
25struct _mc10_state
24class mc10_state
2625{
26public:
27   static void *alloc(running_machine &machine) { return auto_alloc_clear(&machine, mc10_state(machine)); }
28
29   mc10_state(running_machine &machine) { }
30
2731   running_device *mc6847;
2832   running_device *dac;
2933   running_device *cassette;
src/mess/drivers/supracan.c
r7511r7512
6565   UINT16 control;
6666};
6767
68typedef struct _supracan_state supracan_state;
69struct _supracan_state
68class supracan_state
7069{
70public:
71   static void *alloc(running_machine &machine) { return auto_alloc_clear(&machine, supracan_state(machine)); }
72
73   supracan_state(running_machine &machine) { }
74
7175   acan_dma_regs_t acan_dma_regs;
7276   acan_sprdma_regs_t acan_sprdma_regs;
7377
src/mess/drivers/4004clk.c
r7511r7512
1111#include "sound/dac.h"
1212#include "4004clk.lh"
1313
14typedef struct __4004clk_state _4004clk_state;
15struct __4004clk_state
14class _4004clk_state
1615{
16public:
17   static void *alloc(running_machine &machine) { return auto_alloc_clear(&machine, _4004clk_state(machine)); }
18
19   _4004clk_state(running_machine &machine) { }
20
1721   UINT16 nixie[16];
1822   UINT8 timer;
1923   running_device *dac;
src/mess/drivers/elwro800.c
r7511r7512
3232
3333/*************************************
3434 *
35 *  State/Globals
36 *
37 *************************************/
38
39typedef struct _elwro800_state elwro800_state;
40struct _elwro800_state
41{
42   spectrum_state spectrum;
43
44   /* RAM mapped at 0 */
45   UINT8 ram_at_0000;
46
47   /* NR signal */
48   UINT8 NR;
49   UINT8 df_on_databus;
50};
51
52/*************************************
53 *
5435 * When RAM is mapped at 0x0000 - 0x1fff (in CP/J mode), reading a location 66 with /M1=0
5536 * (effectively reading NMI vector) is hardwired to return 0xDF (RST #18)
5637 * (note that in CP/J mode address 66 is used for FCB)
r7511r7512
5839 *************************************/
5940static DIRECT_UPDATE_HANDLER(elwro800_direct_handler)
6041{
61   elwro800_state *state = (elwro800_state *)space->machine->driver_data;
42   spectrum_state *state = (spectrum_state *)space->machine->driver_data;
6243   if (state->ram_at_0000 && address == 0x66)
6344   {
6445      direct->raw = direct->decrypted = &state->df_on_databus;
r7511r7512
10990   UINT8 *messram = messram_get_ptr(devtag_get_device(machine, "messram"));
11091   UINT8 cs;
11192   UINT8 ls175;
112   elwro800_state *state = (elwro800_state *)machine->driver_data;
93   spectrum_state *state = (spectrum_state *)machine->driver_data;
11394
11495   ls175 = BITSWAP8(data, 7, 6, 5, 4, 4, 5, 7, 6) & 0x0f;
11596
r7511r7512
151132   if (BIT(ls175,2))
152133   {
153134      // relok
154      state->spectrum.screen_location = messram + 0xe000;
135      state->screen_location = messram + 0xe000;
155136   }
156137   else
157138   {
158      state->spectrum.screen_location = messram + 0x4000;
139      state->screen_location = messram + 0x4000;
159140   }
160141
161142   state->NR = BIT(ls175,3);
r7511r7512
227208{
228209   UINT8 *prom = memory_region(space->machine, "proms");
229210   UINT8 cs = prom[offset & 0x1ff];
230   elwro800_state *state = (elwro800_state *)space->machine->driver_data;
211   spectrum_state *state = (spectrum_state *)space->machine->driver_data;
231212
232213   if (!BIT(cs,0))
233214   {
r7511r7512
510491
511492static MACHINE_RESET(elwro800)
512493{
513   elwro800_state *state = (elwro800_state *)machine->driver_data;
494   spectrum_state *state = (spectrum_state *)machine->driver_data;
514495   UINT8 *messram = messram_get_ptr(devtag_get_device(machine, "messram"));
515496
516497   state->df_on_databus = 0xdf;
r7511r7512
518499
519500   memory_set_bankptr(machine, "bank3", messram + 0x4000);
520501
521   state->spectrum.port_7ffd_data = 0;
522   state->spectrum.port_1ffd_data = -1;
502   state->port_7ffd_data = 0;
503   state->port_1ffd_data = -1;
523504
524505   // this is a reset of ls175 in mmu
525506   elwro800jr_mmu_w(machine, 0);
r7511r7512
572553
573554static MACHINE_DRIVER_START( elwro800 )
574555
575   MDRV_DRIVER_DATA(elwro800_state)
556   MDRV_DRIVER_DATA(spectrum_state)
576557
577558   /* basic machine hardware */
578559   MDRV_CPU_ADD("maincpu",Z80, 3500000)   /* 3.5 MHz */

Previous 15994 Revisions Next


© 1998-2018 The MESS Team