mirror of
https://github.com/TomHarte/CLK.git
synced 2026-04-21 17:16:44 +00:00
Ensure RAM is properly sized and available.
This commit is contained in:
@@ -39,16 +39,18 @@ uint8_t *MemorySlot::write_pointer(int segment) const {
|
||||
return write_pointers_[subslot][segment];
|
||||
}
|
||||
|
||||
void MemorySlot::apply_mapping(uint8_t port, uint8_t value) {
|
||||
// TODO.
|
||||
(void)port;
|
||||
(void)value;
|
||||
}
|
||||
|
||||
void MemorySlot::set_source(const std::vector<uint8_t> &source) {
|
||||
source_ = source;
|
||||
}
|
||||
|
||||
void MemorySlot::resize_source(std::size_t size) {
|
||||
source_.resize(size);
|
||||
}
|
||||
|
||||
std::vector<uint8_t> &MemorySlot::source() {
|
||||
return source_;
|
||||
}
|
||||
|
||||
const std::vector<uint8_t> &MemorySlot::source() const {
|
||||
return source_;
|
||||
}
|
||||
@@ -71,7 +73,6 @@ void MemorySlot::map(int subslot, std::size_t source_address, uint16_t destinati
|
||||
source_address += 8192;
|
||||
}
|
||||
|
||||
// TODO: allow write_pointers_ to be set.
|
||||
// TODO: need to indicate that mapping changed.
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user