summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/accomm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/accomm.cpp')
-rw-r--r--src/mame/drivers/accomm.cpp60
1 files changed, 29 insertions, 31 deletions
diff --git a/src/mame/drivers/accomm.cpp b/src/mame/drivers/accomm.cpp
index 263feb6cba7..4012236b50e 100644
--- a/src/mame/drivers/accomm.cpp
+++ b/src/mame/drivers/accomm.cpp
@@ -39,6 +39,35 @@
#define INT_SET 0x100
#define INT_CLEAR 0x200
+/* ULA context */
+
+struct ULA
+{
+ uint8_t interrupt_status;
+ uint8_t interrupt_control;
+ uint8_t rompage;
+ uint16_t screen_start;
+ uint16_t screen_base;
+ int screen_size;
+ uint16_t screen_addr;
+ uint8_t *vram;
+ int current_pal[16];
+ int communication_mode;
+ int screen_mode;
+ int shiftlock_mode;
+ int capslock_mode;
+// int scanline;
+ /* tape reading related */
+ uint32_t tape_value;
+ int tape_steps;
+ int bit_count;
+ int high_tone_set;
+ int start_bit;
+ int stop_bit;
+ int tape_running;
+ uint8_t tape_byte;
+};
+
class accomm_state : public driver_device
{
public:
@@ -96,37 +125,6 @@ protected:
private:
bool m_ch00rom_enabled;
-
- /* ULA context */
-
- struct ULA
- {
- uint8_t interrupt_status;
- uint8_t interrupt_control;
- uint8_t rompage;
- uint16_t screen_start;
- uint16_t screen_base;
- int screen_size;
- uint16_t screen_addr;
- uint8_t *vram;
- int current_pal[16];
- int communication_mode;
- int screen_mode;
- int shiftlock_mode;
- int capslock_mode;
- // int scanline;
- /* tape reading related */
- uint32_t tape_value;
- int tape_steps;
- int bit_count;
- int high_tone_set;
- int start_bit;
- int stop_bit;
- int tape_running;
- uint8_t tape_byte;
- };
-
-
ULA m_ula;
int m_map4[256];
int m_map16[256];