diff options
author | 2015-12-25 20:53:59 +0100 | |
---|---|---|
committer | 2015-12-25 20:53:59 +0100 | |
commit | c6d27c753f68cb22d8f88d031ae0645ab80c72b6 (patch) | |
tree | 814fb384b0024aa03da79a806d7674624abace47 /src/devices/cpu/avr8 | |
parent | a8ef53fa51dcc81dbb9a647dfc1777ef72ee2f93 (diff) |
cleanups (nw)
Diffstat (limited to 'src/devices/cpu/avr8')
-rw-r--r-- | src/devices/cpu/avr8/avr8.h | 11 | ||||
-rw-r--r-- | src/devices/cpu/avr8/avr8dasm.cpp | 2 |
2 files changed, 1 insertions, 12 deletions
diff --git a/src/devices/cpu/avr8/avr8.h b/src/devices/cpu/avr8/avr8.h index 715b12a0432..45174d48741 100644 --- a/src/devices/cpu/avr8/avr8.h +++ b/src/devices/cpu/avr8/avr8.h @@ -79,9 +79,6 @@ class avr8_device; class avr8_device : public cpu_device { public: - // construction/destruction - avr8_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock, const device_type type, UINT32 address_mask); - // inline configuration helpers static void set_eeprom_tag(device_t &device, const char *tag) { downcast<avr8_device &>(device).m_eeprom_tag = tag; } @@ -188,13 +185,6 @@ protected: UINT64 m_elapsed_cycles; // memory access - inline UINT8 program_read8(UINT32 addr); - inline UINT16 program_read16(UINT32 addr); - inline void program_write8(UINT32 addr, UINT8 data); - inline void program_write16(UINT32 addr, UINT16 data); - inline UINT8 io_read8(UINT16 addr); - inline void io_write8(UINT16 addr, UINT8 data); - inline UINT16 opcode_read(); inline void push(UINT8 val); inline UINT8 pop(); inline bool is_long_opcode(UINT16 op); @@ -204,7 +194,6 @@ protected: // interrupts void set_irq_line(UINT16 vector, int state); - void update_interrupt_internal(int source); // timers void timer_tick(int cycles); diff --git a/src/devices/cpu/avr8/avr8dasm.cpp b/src/devices/cpu/avr8/avr8dasm.cpp index 31b149d5737..cc5fcecf3a9 100644 --- a/src/devices/cpu/avr8/avr8dasm.cpp +++ b/src/devices/cpu/avr8/avr8dasm.cpp @@ -31,7 +31,7 @@ CPU_DISASSEMBLE( avr8 ) int pos = 0; UINT32 op = oprom[pos++]; op |= oprom[pos++] << 8; - UINT32 addr = 0; + UINT32 addr; const char* register_names[0x40] = {"PINA", "DDRA", "PORTA", "PINB", "DDRB", "PORTB", "PINC", "DDRC", "PORTC", "PIND", "DDRD", "PORTD", "PINE", "DDRE", "PORTE", "PINF", "DDRF", "PORTF", "PING", "DDRG", "PORTG", "TIFR0", "TIFR1", "TIFR2","TIFR3", "TIFR4", "TIFR5", "PCIFR", "EIFR", "EIMSK", "GPIOR0", "EECR", "EEDR", "EEARL", "EEARH", "GTCCR", "TCCR0A", "TCCR0B", "TCNT0", "OCR0A", "OCR0B", "0x29", "GPIOR1", "GPIOR2", "SPCR", "SPSR", "SPDR", "0x2F", "ACSR", "OCDR", "0x32", "SMCR", "MCUSR", "MCUCR", "0x36", "SPMCSR", "0x38", "0x39", "0x3A", "RAMPZ", "EIND", "SPL", "SPH", "SREG"}; const char* register_bit_names[0x40][8] = { |