Compare commits
2 commits
6a5d9696e7
...
83a1b7d280
Author | SHA1 | Date | |
---|---|---|---|
DataHoarder | 83a1b7d280 | ||
DataHoarder | b019ab7684 |
|
@ -36,7 +36,7 @@ void Instruction::Write::fromBytes(uint32_t offset, const std::vector<uint8_t> &
|
|||
|
||||
uint32_t command = bytes[offset++];
|
||||
|
||||
uint8_t count = (1 + (command >> 2) & 0b1111);
|
||||
uint8_t count = (1 + ((command >> 2) & 0b1111));
|
||||
address.offset = command & 0b11;
|
||||
|
||||
address.address = bytes[offset++] << 16;
|
||||
|
|
|
@ -358,7 +358,7 @@ void decodeImage(const std::string &fileName) {
|
|||
}
|
||||
|
||||
for(uint32_t i = 0; i < 16; ++i){
|
||||
ctx.addRegister(Instruction::AddressWithOffset{static_cast<uint32_t>(KnownRegisters::BSM_SCRATCH_START) + 0x1F0, 0}, "rrcc_R" +
|
||||
ctx.addRegister(Instruction::AddressWithOffset{static_cast<uint32_t>(KnownRegisters::BSM_SCRATCH_START) + 0x1F0 + i, 0}, "rrcc_R" +
|
||||
std::to_string(i));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue