| Previous | 15994 Revisions | Next |
| r7505 Friday 5th March, 2010 at 13:00:17 UTC by Fabio Priuli |
|---|
| Fixing compile, part 2 |
| [src/mess/includes] | abc80.h abc80x.h advision.h at.h atarist.h b2m.h beta.h bw12.h bw2.h c16.h c80.h cbmb.h |
| r7504 | r7505 | |
|---|---|---|
| 15 | 15 | #include "machine/6526cia.h" |
| 16 | 16 | #include "devices/cartslot.h" |
| 17 | 17 | |
| 18 | typedef struct _cbmb_state cbmb_state; | |
| 19 | struct _cbmb_state | |
| 18 | class cbmb_state | |
| 20 | 19 | { |
| 20 | public: | |
| 21 | static void *alloc(running_machine &machine) { return auto_alloc_clear(&machine, cbmb_state(machine)); } | |
| 22 | ||
| 23 | cbmb_state(running_machine &machine) { } | |
| 24 | ||
| 21 | 25 | /* keyboard lines */ |
| 22 | 26 | int cbmb_keyline_a; |
| 23 | 27 | int cbmb_keyline_b; |
| r7504 | r7505 | |
|---|---|---|
| 15 | 15 | #define BW12_VIDEORAM_MASK 0x7ff |
| 16 | 16 | #define BW12_CHARROM_MASK 0xfff |
| 17 | 17 | |
| 18 | typedef struct _bw12_state bw12_state; | |
| 19 | struct _bw12_state | |
| 18 | class bw12_state | |
| 20 | 19 | { |
| 20 | public: | |
| 21 | static void *alloc(running_machine &machine) { return auto_alloc_clear(&machine, bw12_state(machine)); } | |
| 22 | ||
| 23 | bw12_state(running_machine &machine) { } | |
| 24 | ||
| 21 | 25 | /* memory state */ |
| 22 | 26 | int bank; |
| 23 | 27 |
| r7504 | r7505 | |
|---|---|---|
| 11 | 11 | #define I8048_TAG "i8048" |
| 12 | 12 | #define COP411_TAG "cop411" |
| 13 | 13 | |
| 14 | typedef struct _advision_state advision_state; | |
| 15 | struct _advision_state | |
| 14 | class advision_state | |
| 16 | 15 | { |
| 16 | public: | |
| 17 | static void *alloc(running_machine &machine) { return auto_alloc_clear(&machine, advision_state(machine)); } | |
| 18 | ||
| 19 | advision_state(running_machine &machine) { } | |
| 20 | ||
| 17 | 21 | /* external RAM state */ |
| 18 | 22 | UINT8 *extram; |
| 19 | 23 | int rambank; |
| r7504 | r7505 | |
|---|---|---|
| 13 | 13 | #include "sound/speaker.h" |
| 14 | 14 | #include "sound/wave.h" |
| 15 | 15 | |
| 16 | typedef struct _b2m_state b2m_state; | |
| 17 | struct _b2m_state | |
| 16 | class b2m_state | |
| 18 | 17 | { |
| 18 | public: | |
| 19 | static void *alloc(running_machine &machine) { return auto_alloc_clear(&machine, b2m_state(machine)); } | |
| 20 | ||
| 21 | b2m_state(running_machine &machine) { } | |
| 22 | ||
| 19 | 23 | UINT8 b2m_8255_porta; |
| 20 | 24 | UINT8 b2m_video_scroll; |
| 21 | 25 | UINT8 b2m_8255_portc; |
| r7504 | r7505 | |
|---|---|---|
| 50 | 50 | #define SN76477_TAG "g8" |
| 51 | 51 | #define CASSETTE_TAG "cassette" |
| 52 | 52 | |
| 53 | typedef struct _abc80_state abc80_state; | |
| 54 | struct _abc80_state | |
| 53 | class abc80_state | |
| 55 | 54 | { |
| 55 | public: | |
| 56 | static void *alloc(running_machine &machine) { return auto_alloc_clear(&machine, abc80_state(machine)); } | |
| 57 | ||
| 58 | abc80_state(running_machine &machine) { } | |
| 59 | ||
| 56 | 60 | /* keyboard state */ |
| 57 | 61 | int key_data; |
| 58 | 62 | int key_strobe; |
| r7504 | r7505 | |
|---|---|---|
| 41 | 41 | IKBD_MOUSE_PHASE_NEGATIVE |
| 42 | 42 | }; |
| 43 | 43 | |
| 44 | typedef struct _atarist_state atarist_state; | |
| 45 | struct _atarist_state | |
| 44 | class atarist_state | |
| 46 | 45 | { |
| 46 | public: | |
| 47 | static void *alloc(running_machine &machine) { return auto_alloc_clear(&machine, atarist_state(machine)); } | |
| 48 | ||
| 49 | atarist_state(running_machine &machine) { } | |
| 50 | ||
| 47 | 51 | /* memory state */ |
| 48 | 52 | UINT8 mmu; |
| 49 | 53 | UINT16 megaste_cache; |
| r7504 | r7505 | |
|---|---|---|
| 7 | 7 | #define EPROM_TAG "eprom" |
| 8 | 8 | #define SPEAKER_TAG "b237" |
| 9 | 9 | |
| 10 | typedef struct _beta_state beta_state; | |
| 11 | struct _beta_state | |
| 10 | class beta_state | |
| 12 | 11 | { |
| 12 | public: | |
| 13 | static void *alloc(running_machine &machine) { return auto_alloc_clear(&machine, beta_state(machine)); } | |
| 14 | ||
| 15 | beta_state(running_machine &machine) { } | |
| 16 | ||
| 13 | 17 | /* EPROM state */ |
| 14 | 18 | int eprom_oe; |
| 15 | 19 | int eprom_ce; |
| r7504 | r7505 | |
|---|---|---|
| 7 | 7 | #ifndef __C16_H__ |
| 8 | 8 | #define __C16_H__ |
| 9 | 9 | |
| 10 | typedef struct _c16_state c16_state; | |
| 11 | struct _c16_state | |
| 10 | class c16_state | |
| 12 | 11 | { |
| 12 | public: | |
| 13 | static void *alloc(running_machine &machine) { return auto_alloc_clear(&machine, c16_state(machine)); } | |
| 14 | ||
| 15 | c16_state(running_machine &machine) { } | |
| 16 | ||
| 13 | 17 | /* memory pointers */ |
| 14 | 18 | UINT8 * mem10000; |
| 15 | 19 | UINT8 * mem14000; |
| r7504 | r7505 | |
|---|---|---|
| 24 | 24 | BANK_ROM |
| 25 | 25 | }; |
| 26 | 26 | |
| 27 | typedef struct _bw2_state bw2_state; | |
| 28 | struct _bw2_state | |
| 27 | class bw2_state | |
| 29 | 28 | { |
| 29 | public: | |
| 30 | static void *alloc(running_machine &machine) { return auto_alloc_clear(&machine, bw2_state(machine)); } | |
| 31 | ||
| 32 | bw2_state(running_machine &machine) { } | |
| 33 | ||
| 34 | ||
| 30 | 35 | /* keyboard state */ |
| 31 | 36 | UINT8 keyboard_row; |
| 32 | 37 |
| r7504 | r7505 | |
|---|---|---|
| 11 | 11 | |
| 12 | 12 | #include "machine/8237dma.h" |
| 13 | 13 | |
| 14 | typedef struct _at_state at_state; | |
| 15 | struct _at_state | |
| 14 | class at_state | |
| 16 | 15 | { |
| 16 | public: | |
| 17 | static void *alloc(running_machine &machine) { return auto_alloc_clear(&machine, at_state(machine)); } | |
| 18 | ||
| 19 | at_state(running_machine &machine) { } | |
| 20 | ||
| 17 | 21 | running_device *maincpu; |
| 18 | 22 | running_device *pic8259_master; |
| 19 | 23 | running_device *pic8259_slave; |
| r7504 | r7505 | |
|---|---|---|
| 36 | 36 | #define ABC800_CHAR_WIDTH 6 |
| 37 | 37 | #define ABC800_CCLK ABC800_X01/ABC800_CHAR_WIDTH |
| 38 | 38 | |
| 39 | typedef struct _abc800_state abc800_state; | |
| 40 | struct _abc800_state | |
| 39 | class abc800_state | |
| 41 | 40 | { |
| 41 | public: | |
| 42 | static void *alloc(running_machine &machine) { return auto_alloc_clear(&machine, abc800_state(machine)); } | |
| 43 | ||
| 44 | abc800_state(running_machine &machine) { } | |
| 45 | ||
| 42 | 46 | /* cpu state */ |
| 43 | 47 | int fetch_charram; /* opcode fetched from character RAM region (0x7800-0x7fff) */ |
| 44 | 48 | |
| r7504 | r7505 | |
| 62 | 66 | running_device *cassette; |
| 63 | 67 | }; |
| 64 | 68 | |
| 65 | typedef struct _abc802_state abc802_state; | |
| 66 | struct _abc802_state | |
| 69 | class abc802_state | |
| 67 | 70 | { |
| 71 | public: | |
| 72 | static void *alloc(running_machine &machine) { return auto_alloc_clear(&machine, abc802_state(machine)); } | |
| 73 | ||
| 74 | abc802_state(running_machine &machine) { } | |
| 75 | ||
| 68 | 76 | /* cpu state */ |
| 69 | 77 | int lrs; /* low RAM select */ |
| 70 | 78 | |
| r7504 | r7505 | |
| 88 | 96 | running_device *cassette; |
| 89 | 97 | }; |
| 90 | 98 | |
| 91 | typedef struct _abc806_state abc806_state; | |
| 92 | struct _abc806_state | |
| 99 | class abc806_state | |
| 93 | 100 | { |
| 101 | public: | |
| 102 | static void *alloc(running_machine &machine) { return auto_alloc_clear(&machine, abc806_state(machine)); } | |
| 103 | ||
| 104 | abc806_state(running_machine &machine) { } | |
| 105 | ||
| 94 | 106 | /* memory state */ |
| 95 | 107 | int keydtr; /* keyboard DTR */ |
| 96 | 108 | int eme; /* extended memory enable */ |
| r7504 | r7505 | |
|---|---|---|
| 7 | 7 | #define Z80PIO2_TAG "d12" |
| 8 | 8 | #define CASSETTE_TAG "cassette" |
| 9 | 9 | |
| 10 | typedef struct _c80_state c80_state; | |
| 11 | struct _c80_state | |
| 10 | class c80_state | |
| 12 | 11 | { |
| 12 | public: | |
| 13 | static void *alloc(running_machine &machine) { return auto_alloc_clear(&machine, c80_state(machine)); } | |
| 14 | ||
| 15 | c80_state(running_machine &machine) { } | |
| 16 | ||
| 13 | 17 | /* keyboard state */ |
| 14 | 18 | int keylatch; |
| 15 | 19 |
| Previous | 15994 Revisions | Next |