1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-26 19:17:52 +00:00

Added memory fuzzing as a way to verify state being written by the Z80. Eventually discovered the HALT problem as fixed in the last commit, so have stripped away the caveman stuff again.

This commit is contained in:
Thomas Harte
2017-06-05 10:36:07 -04:00
parent 3df6eba237
commit 23ca00fd9a
3 changed files with 12 additions and 13 deletions
+4
View File
@@ -22,3 +22,7 @@ void Memory::Fuzz(uint8_t *buffer, size_t size) {
buffer[c] = (uint8_t)(std::rand() >> shift);
}
}
void Memory::Fuzz(std::vector<uint8_t> &buffer) {
Fuzz(buffer.data(), buffer.size());
}