mirror of
https://github.com/holub/mame
synced 2025-05-21 05:08:54 +03:00
move ULA struct out of global namespace (nw)
This commit is contained in:
parent
869185e70b
commit
84c968e516
@ -39,35 +39,6 @@
|
|||||||
#define INT_SET 0x100
|
#define INT_SET 0x100
|
||||||
#define INT_CLEAR 0x200
|
#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
|
class accomm_state : public driver_device
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -125,6 +96,37 @@ protected:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
bool m_ch00rom_enabled;
|
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;
|
ULA m_ula;
|
||||||
int m_map4[256];
|
int m_map4[256];
|
||||||
int m_map16[256];
|
int m_map16[256];
|
||||||
|
@ -30,36 +30,6 @@
|
|||||||
#define INT_SET 0x100
|
#define INT_SET 0x100
|
||||||
#define INT_CLEAR 0x200
|
#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 cassette_motor_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 electron_state : public driver_device
|
class electron_state : public driver_device
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -80,6 +50,35 @@ public:
|
|||||||
m_ram(*this, RAM_TAG)
|
m_ram(*this, RAM_TAG)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
|
/* 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 cassette_motor_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;
|
ULA m_ula;
|
||||||
emu_timer *m_tape_timer;
|
emu_timer *m_tape_timer;
|
||||||
int m_map4[256];
|
int m_map4[256];
|
||||||
|
Loading…
Reference in New Issue
Block a user