summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/includes/apple2.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/includes/apple2.h')
-rw-r--r--src/mess/includes/apple2.h244
1 files changed, 122 insertions, 122 deletions
diff --git a/src/mess/includes/apple2.h b/src/mess/includes/apple2.h
index 544d4dcfc6f..7573ba11824 100644
--- a/src/mess/includes/apple2.h
+++ b/src/mess/includes/apple2.h
@@ -20,42 +20,42 @@
SOFTSWITCH VALUES
***************************************************************************/
-#define VAR_80STORE 0x000001
-#define VAR_RAMRD 0x000002
-#define VAR_RAMWRT 0x000004
-#define VAR_INTCXROM 0x000008
-#define VAR_ALTZP 0x000010
-#define VAR_SLOTC3ROM 0x000020
-#define VAR_80COL 0x000040
-#define VAR_ALTCHARSET 0x000080
-#define VAR_TEXT 0x000100
-#define VAR_MIXED 0x000200
-#define VAR_PAGE2 0x000400
-#define VAR_HIRES 0x000800
-#define VAR_AN0 0x001000
-#define VAR_AN1 0x002000
-#define VAR_AN2 0x004000
-#define VAR_AN3 0x008000
-#define VAR_LCRAM 0x010000
-#define VAR_LCRAM2 0x020000
-#define VAR_LCWRITE 0x040000
-#define VAR_ROMSWITCH 0x080000
+#define VAR_80STORE 0x000001
+#define VAR_RAMRD 0x000002
+#define VAR_RAMWRT 0x000004
+#define VAR_INTCXROM 0x000008
+#define VAR_ALTZP 0x000010
+#define VAR_SLOTC3ROM 0x000020
+#define VAR_80COL 0x000040
+#define VAR_ALTCHARSET 0x000080
+#define VAR_TEXT 0x000100
+#define VAR_MIXED 0x000200
+#define VAR_PAGE2 0x000400
+#define VAR_HIRES 0x000800
+#define VAR_AN0 0x001000
+#define VAR_AN1 0x002000
+#define VAR_AN2 0x004000
+#define VAR_AN3 0x008000
+#define VAR_LCRAM 0x010000
+#define VAR_LCRAM2 0x020000
+#define VAR_LCWRITE 0x040000
+#define VAR_ROMSWITCH 0x080000
#define VAR_TK2000RAM 0x100000 // ROM/RAM switch for TK2000
-#define VAR_DHIRES VAR_AN3
+#define VAR_DHIRES VAR_AN3
/***************************************************************************
SPECIAL KEYS
***************************************************************************/
-#define SPECIALKEY_CAPSLOCK 0x01
-#define SPECIALKEY_SHIFT 0x06
-#define SPECIALKEY_CONTROL 0x08
-#define SPECIALKEY_BUTTON0 0x10 /* open apple */
-#define SPECIALKEY_BUTTON1 0x20 /* closed apple */
-#define SPECIALKEY_BUTTON2 0x40
-#define SPECIALKEY_RESET 0x80
+#define SPECIALKEY_CAPSLOCK 0x01
+#define SPECIALKEY_SHIFT 0x06
+#define SPECIALKEY_CONTROL 0x08
+#define SPECIALKEY_BUTTON0 0x10 /* open apple */
+#define SPECIALKEY_BUTTON1 0x20 /* closed apple */
+#define SPECIALKEY_BUTTON2 0x40
+#define SPECIALKEY_RESET 0x80
/***************************************************************************
@@ -66,26 +66,26 @@
* New Apple II memory manager
* ----------------------------------------------------------------------- */
-#define APPLE2_MEM_AUX 0x40000000
-#define APPLE2_MEM_SLOT 0x80000000
-#define APPLE2_MEM_ROM 0xC0000000
-#define APPLE2_MEM_FLOATING 0xFFFFFFFF
-#define APPLE2_MEM_MASK 0x00FFFFFF
+#define APPLE2_MEM_AUX 0x40000000
+#define APPLE2_MEM_SLOT 0x80000000
+#define APPLE2_MEM_ROM 0xC0000000
+#define APPLE2_MEM_FLOATING 0xFFFFFFFF
+#define APPLE2_MEM_MASK 0x00FFFFFF
enum machine_type_t
{
- APPLE_II, // Apple II/II+
- APPLE_IIEPLUS, // Apple IIe/IIc/IIgs/IIc+
- TK2000, // Microdigital TK2000
- LASER128, // Laser 128/128EX/128EX2
- SPACE84 // "Space 84" with flipped text mode
+ APPLE_II, // Apple II/II+
+ APPLE_IIEPLUS, // Apple IIe/IIc/IIgs/IIc+
+ TK2000, // Microdigital TK2000
+ LASER128, // Laser 128/128EX/128EX2
+ SPACE84 // "Space 84" with flipped text mode
};
enum bank_disposition_t
{
- A2MEM_IO = 0, /* this is always handlers; never banked memory */
- A2MEM_MONO = 1, /* this is a bank where read and write are always in unison */
- A2MEM_DUAL = 2 /* this is a bank where read and write can go different places */
+ A2MEM_IO = 0, /* this is always handlers; never banked memory */
+ A2MEM_MONO = 1, /* this is a bank where read and write are always in unison */
+ A2MEM_DUAL = 2 /* this is a bank where read and write can go different places */
};
struct apple2_meminfo
@@ -117,16 +117,16 @@ class apple2_state : public driver_device
public:
apple2_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_ram(*this, RAM_TAG),
- m_a2bus(*this, "a2bus"),
- m_a2eauxslot(*this, AUXSLOT_TAG)
- { }
+ m_maincpu(*this, "maincpu"),
+ m_ram(*this, RAM_TAG),
+ m_a2bus(*this, "a2bus"),
+ m_a2eauxslot(*this, AUXSLOT_TAG)
+ { }
required_device<cpu_device> m_maincpu;
- required_device<ram_device> m_ram;
- required_device<a2bus_device> m_a2bus;
- optional_device<a2eauxslot_device> m_a2eauxslot;
+ required_device<ram_device> m_ram;
+ required_device<a2bus_device> m_a2bus;
+ optional_device<a2eauxslot_device> m_a2eauxslot;
UINT32 m_flags, m_flags_mask;
INT32 m_a2_cnxx_slot;
@@ -159,79 +159,79 @@ public:
int m_alt_charset_value;
UINT16 *m_hires_artifact_map;
UINT16 *m_dhires_artifact_map;
- bool m_monochrome_dhr;
- int m_inh_slot;
-
- UINT8 *m_rambase;
-
- machine_type_t m_machinetype;
-
- READ8_MEMBER(apple2_c0xx_r);
- WRITE8_MEMBER(apple2_c0xx_w);
- READ8_MEMBER(apple2_c080_r);
- WRITE8_MEMBER(apple2_c080_w);
-
- READ8_MEMBER ( apple2_c00x_r );
- READ8_MEMBER ( apple2_c01x_r );
- READ8_MEMBER ( apple2_c02x_r );
- READ8_MEMBER ( apple2_c03x_r );
- READ8_MEMBER ( apple2_c05x_r );
- READ8_MEMBER ( apple2_c06x_r );
- READ8_MEMBER ( apple2_c07x_r );
- WRITE8_MEMBER ( apple2_c00x_w );
- WRITE8_MEMBER ( apple2_c01x_w );
- WRITE8_MEMBER ( apple2_c02x_w );
- WRITE8_MEMBER ( apple2_c03x_w );
- WRITE8_MEMBER ( apple2_c05x_w );
- WRITE8_MEMBER ( apple2_c07x_w );
-
- WRITE8_MEMBER ( apple2_mainram0400_w );
- WRITE8_MEMBER ( apple2_mainram2000_w );
- WRITE8_MEMBER ( apple2_auxram0400_w );
- WRITE8_MEMBER ( apple2_auxram2000_w );
-
- READ8_MEMBER ( apple2_c1xx_r );
- WRITE8_MEMBER ( apple2_c1xx_w );
- READ8_MEMBER ( apple2_c3xx_r );
- WRITE8_MEMBER ( apple2_c3xx_w );
- READ8_MEMBER ( apple2_c4xx_r );
- WRITE8_MEMBER ( apple2_c4xx_w );
-
- READ8_MEMBER ( apple2_c800_r );
- WRITE8_MEMBER ( apple2_c800_w );
- READ8_MEMBER ( apple2_ce00_r );
- WRITE8_MEMBER ( apple2_ce00_w );
-
- READ8_MEMBER ( apple2_inh_d000_r );
- WRITE8_MEMBER ( apple2_inh_d000_w );
- READ8_MEMBER ( apple2_inh_e000_r );
- WRITE8_MEMBER ( apple2_inh_e000_w );
-
- READ8_MEMBER(read_floatingbus);
-
- READ8_MEMBER(apple2_cfff_r);
- WRITE8_MEMBER(apple2_cfff_w);
-
- void apple2_refresh_delegates();
-
- read8_delegate read_delegates_master[4];
- write8_delegate write_delegates_master[3];
- write8_delegate write_delegates_0400[2];
- write8_delegate write_delegates_2000[2];
- read8_delegate rd_c000;
- write8_delegate wd_c000;
- read8_delegate rd_c080;
- write8_delegate wd_c080;
- read8_delegate rd_cfff;
- write8_delegate wd_cfff;
- read8_delegate rd_c800;
- write8_delegate wd_c800;
- read8_delegate rd_ce00;
- write8_delegate wd_ce00;
- read8_delegate rd_inh_d000;
- write8_delegate wd_inh_d000;
- read8_delegate rd_inh_e000;
- write8_delegate wd_inh_e000;
+ bool m_monochrome_dhr;
+ int m_inh_slot;
+
+ UINT8 *m_rambase;
+
+ machine_type_t m_machinetype;
+
+ READ8_MEMBER(apple2_c0xx_r);
+ WRITE8_MEMBER(apple2_c0xx_w);
+ READ8_MEMBER(apple2_c080_r);
+ WRITE8_MEMBER(apple2_c080_w);
+
+ READ8_MEMBER ( apple2_c00x_r );
+ READ8_MEMBER ( apple2_c01x_r );
+ READ8_MEMBER ( apple2_c02x_r );
+ READ8_MEMBER ( apple2_c03x_r );
+ READ8_MEMBER ( apple2_c05x_r );
+ READ8_MEMBER ( apple2_c06x_r );
+ READ8_MEMBER ( apple2_c07x_r );
+ WRITE8_MEMBER ( apple2_c00x_w );
+ WRITE8_MEMBER ( apple2_c01x_w );
+ WRITE8_MEMBER ( apple2_c02x_w );
+ WRITE8_MEMBER ( apple2_c03x_w );
+ WRITE8_MEMBER ( apple2_c05x_w );
+ WRITE8_MEMBER ( apple2_c07x_w );
+
+ WRITE8_MEMBER ( apple2_mainram0400_w );
+ WRITE8_MEMBER ( apple2_mainram2000_w );
+ WRITE8_MEMBER ( apple2_auxram0400_w );
+ WRITE8_MEMBER ( apple2_auxram2000_w );
+
+ READ8_MEMBER ( apple2_c1xx_r );
+ WRITE8_MEMBER ( apple2_c1xx_w );
+ READ8_MEMBER ( apple2_c3xx_r );
+ WRITE8_MEMBER ( apple2_c3xx_w );
+ READ8_MEMBER ( apple2_c4xx_r );
+ WRITE8_MEMBER ( apple2_c4xx_w );
+
+ READ8_MEMBER ( apple2_c800_r );
+ WRITE8_MEMBER ( apple2_c800_w );
+ READ8_MEMBER ( apple2_ce00_r );
+ WRITE8_MEMBER ( apple2_ce00_w );
+
+ READ8_MEMBER ( apple2_inh_d000_r );
+ WRITE8_MEMBER ( apple2_inh_d000_w );
+ READ8_MEMBER ( apple2_inh_e000_r );
+ WRITE8_MEMBER ( apple2_inh_e000_w );
+
+ READ8_MEMBER(read_floatingbus);
+
+ READ8_MEMBER(apple2_cfff_r);
+ WRITE8_MEMBER(apple2_cfff_w);
+
+ void apple2_refresh_delegates();
+
+ read8_delegate read_delegates_master[4];
+ write8_delegate write_delegates_master[3];
+ write8_delegate write_delegates_0400[2];
+ write8_delegate write_delegates_2000[2];
+ read8_delegate rd_c000;
+ write8_delegate wd_c000;
+ read8_delegate rd_c080;
+ write8_delegate wd_c080;
+ read8_delegate rd_cfff;
+ write8_delegate wd_cfff;
+ read8_delegate rd_c800;
+ write8_delegate wd_c800;
+ read8_delegate rd_ce00;
+ write8_delegate wd_ce00;
+ read8_delegate rd_inh_d000;
+ write8_delegate wd_inh_d000;
+ read8_delegate rd_inh_e000;
+ write8_delegate wd_inh_e000;
DECLARE_MACHINE_START(apple2);
DECLARE_VIDEO_START(apple2);
DECLARE_PALETTE_INIT(apple2);