Remove NOP, fix word aligned state.current mask, overwrite unused entries on Configuration writeback
This commit is contained in:
parent
d40724c096
commit
2f81fe9539
|
@ -172,6 +172,10 @@ std::vector<uint8_t> ImageFormat::toBytes() const {
|
|||
}
|
||||
}
|
||||
|
||||
for (; offset < 0x10000; ++offset) {
|
||||
bytes[offset] = 0xFF;
|
||||
}
|
||||
|
||||
std::copy(baseImage.begin() + offset, baseImage.end(), bytes.begin() + offset);
|
||||
|
||||
for (const auto &entry : instructions) {
|
||||
|
@ -225,8 +229,6 @@ void ImageFormat::decodeAnalyzeInstructionsAt(uint32_t offset) {
|
|||
state.previous = state.current;
|
||||
auto &instruction = findInstructionByAddress(state.current);
|
||||
|
||||
state.current &= 0xfffffffc;
|
||||
|
||||
if (instruction == nullptr) {
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -68,8 +68,7 @@ namespace Instruction {
|
|||
RETURN = 0b11110000,
|
||||
SET = 0b11111000,
|
||||
WAIT = 0xFE,
|
||||
END = 0xFF,
|
||||
NOP = 0xFF
|
||||
END = 0xFF
|
||||
};
|
||||
|
||||
static std::unique_ptr<Instruction>
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <sstream>
|
||||
#include <iomanip>
|
||||
#include <cstring>
|
||||
|
||||
|
|
Loading…
Reference in a new issue