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

Starts forming an Atari ST memory map.

This commit is contained in:
Thomas Harte
2019-10-04 22:38:46 -04:00
parent da1436abd2
commit 484a0ceeb8
3 changed files with 67 additions and 4 deletions
+5
View File
@@ -13,3 +13,8 @@ void Memory::PackBigEndian16(const std::vector<uint8_t> &source, uint16_t *targe
target[c >> 1] = uint16_t(source[c] << 8) | uint16_t(source[c+1]);
}
}
void Memory::PackBigEndian16(const std::vector<uint8_t> &source, std::vector<uint16_t> &target) {
target.resize(source.size() >> 1);
PackBigEndian16(source, target.data());
}