Compare commits

...

2 commits

Author SHA1 Message Date
DataHoarder 83a1b7d280 Fixed rrcc register naming
All checks were successful
continuous-integration/drone/push Build is passing
2021-08-03 00:26:32 +02:00
DataHoarder b019ab7684 Fixed Write command max length 2021-08-03 00:25:51 +02:00
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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));
}