1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-27 15:50:56 +00:00

Reduce uninitialised usages.

This commit is contained in:
Thomas Harte 2024-10-15 22:10:16 -04:00
parent d35165bd8e
commit a1634ab496
2 changed files with 4 additions and 3 deletions

View File

@ -233,8 +233,8 @@ class Vic6560BusHandler {
}
// It is assumed that these pointers have been filled in by the machine.
uint8_t *video_memory_map[16]; // Segments video memory into 1kb portions.
uint8_t *colour_memory; // Colour memory must be contiguous.
uint8_t *video_memory_map[16]{}; // Segments video memory into 1kb portions.
uint8_t *colour_memory{}; // Colour memory must be contiguous.
};
/*!

View File

@ -36,6 +36,7 @@
#include "../../ClockReceiver/JustInTime.hpp"
#include <array>
#include <cstdint>
#include <memory>
#include <vector>
@ -715,7 +716,7 @@ template <Analyser::Static::Oric::Target::DiskInterface disk_interface, CPU::MOS
// RAM and ROM
std::vector<uint8_t> rom_, disk_rom_;
uint8_t ram_[65536];
std::array<uint8_t, 65536> ram_{};
// ROM bookkeeping
uint16_t tape_get_byte_address_ = 0, tape_speed_address_ = 0;