mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-12-22 09:30:32 +00:00
Correct compilation warnings.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
parent
7d840f1a42
commit
6256d0bf8d
@ -72,7 +72,7 @@ inline void EightBit::assume(int expression) {
|
|||||||
|
|
||||||
# define PARITY(x) EightBit::oddParity(x)
|
# define PARITY(x) EightBit::oddParity(x)
|
||||||
|
|
||||||
# define UNREACHABLE ASSUME(0)
|
# define UNREACHABLE { ASSUME(0); throw new std::exception("unreachable"); }
|
||||||
|
|
||||||
#elif defined(__GNUG__)
|
#elif defined(__GNUG__)
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ void EightBit::Bus::loadHexFile(const std::string path) {
|
|||||||
const auto address = chunk.first;
|
const auto address = chunk.first;
|
||||||
const auto content = chunk.second;
|
const auto content = chunk.second;
|
||||||
for (size_t i = 0; i != content.size(); ++i)
|
for (size_t i = 0; i != content.size(); ++i)
|
||||||
write(address + i, content[i]);
|
write((uint16_t)(address + i), content[i]);
|
||||||
const auto mapped = mapping(address);
|
const auto mapped = mapping(address);
|
||||||
mapped.memory.load(content, address - mapped.begin);
|
mapped.memory.load(content, address - mapped.begin);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user