diff options
Diffstat (limited to 'src/devices/cpu/alto2/a2mem.h')
-rw-r--r-- | src/devices/cpu/alto2/a2mem.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/devices/cpu/alto2/a2mem.h b/src/devices/cpu/alto2/a2mem.h index 3ce43a4da9f..f58d6aed5ae 100644 --- a/src/devices/cpu/alto2/a2mem.h +++ b/src/devices/cpu/alto2/a2mem.h @@ -25,14 +25,14 @@ enum { }; struct { - uint32_t size; //!< main memory size (64K or 128K) - std::unique_ptr<uint32_t[]> ram; //!< main memory organized as double-words - std::unique_ptr<uint8_t[]> hpb; //!< Hamming Code bits (6) and Parity bits (1) per double word - uint32_t mar; //!< memory address register - uint32_t rmdd; //!< read memory data double-word - uint32_t wmdd; //!< write memory data double-word - uint32_t md; //!< memory data register - uint64_t cycle; //!< cycle when the memory address register was loaded + uint32_t size = 0; //!< main memory size (64K or 128K) + std::unique_ptr<uint32_t []> ram; //!< main memory organized as double-words + std::unique_ptr<uint8_t []> hpb; //!< Hamming Code bits (6) and Parity bits (1) per double word + uint32_t mar = 0; //!< memory address register + uint32_t rmdd = 0; //!< read memory data double-word + uint32_t wmdd = 0; //!< write memory data double-word + uint32_t md = 0; //!< memory data register + uint64_t cycle = 0; //!< cycle when the memory address register was loaded /** * @brief memory access under the way if non-zero @@ -41,11 +41,11 @@ struct { * 2: memory access even word (MEM_RAM) * 3: memory access odd word (MEM_RAM | MEM_ODD) */ - int access; - bool error; //!< non-zero after a memory error was detected - uint32_t mear; //!< memory error address register - uint32_t mesr; //!< memory error status register - uint32_t mecr; //!< memory error control register + int access = 0; + bool error = false; //!< non-zero after a memory error was detected + uint32_t mear = 0; //!< memory error address register + uint32_t mesr = 0; //!< memory error status register + uint32_t mecr = 0; //!< memory error control register } m_mem; /** |