From ebb7bb3fd02e8f7e7b1146defa784bc5908b7fd3 Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Thu, 25 Apr 2024 14:48:23 +0200 Subject: [PATCH] shuffle bus.h --- bus.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bus.h b/bus.h index d9cb2bd..1065d03 100644 --- a/bus.h +++ b/bus.h @@ -98,19 +98,19 @@ public: ~bus(); void reset(); + void init(); // invoked by 'RESET' command void set_console_switches(const uint16_t new_state) { console_switches = new_state; } void set_console_switch(const int bit, const bool state) { console_switches &= ~(1 << bit); console_switches |= state << bit; } uint16_t get_console_switches() { return console_switches; } void set_debug_mode() { console_switches |= 128; } + uint16_t get_console_leds() { return console_leds; } int get_memory_size() const { return n_pages; } void set_memory_size(const int n_pages); void mmudebug(const uint16_t a); - uint16_t get_console_leds() { return console_leds; } - void add_cpu (cpu *const c ); void add_tm11(tm_11 *const tm11 ); void add_rk05(rk05 *const rk05_); @@ -122,8 +122,6 @@ public: tty *getTty() { return tty_; } mmu *getMMU() { return mmu_; } - void init(); // invoked by 'RESET' command - uint16_t read (const uint16_t a, const word_mode_t word_mode, const rm_selection_t mode_selection, const bool peek_only=false, const d_i_space_t s = i_space); uint16_t readByte(const uint16_t a) { return read(a, wm_byte, rm_cur); } uint16_t readWord(const uint16_t a, const d_i_space_t s = i_space);