1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-20 10:17:05 +00:00

Ensures that the Mac now retains its ROM properly.

This commit is contained in:
Thomas Harte
2019-05-03 22:39:09 -04:00
parent 5f385e15f6
commit 6873f62ad8
7 changed files with 67 additions and 14 deletions
+15
View File
@@ -0,0 +1,15 @@
//
// MemoryPacker.cpp
// Clock Signal
//
// Created by Thomas Harte on 03/05/2019.
// Copyright © 2019 Thomas Harte. All rights reserved.
//
#include "MemoryPacker.hpp"
void Memory::PackBigEndian16(const std::vector<uint8_t> &source, uint16_t *target) {
for(std::size_t c = 0; c < source.size(); c += 2) {
target[c >> 1] = uint16_t(source[c] << 8) | uint16_t(source[c+1]);
}
}