Debugger: Disassemble shifted registers in addressing mode 2

This commit is contained in:
Jeffrey Pfau 2014-11-15 17:16:11 -08:00
parent 8b44ea61ab
commit 6f4a6d6372
1 changed files with 4 additions and 1 deletions

View File

@ -153,7 +153,10 @@ static int _decodeMemory(struct ARMMemoryAccess memory, int pc, char* buffer, in
written = _decodeRegister(memory.offset.reg, buffer, blen);
ADVANCE(written);
}
// TODO: shifted registers
if (memory.format & ARM_MEMORY_SHIFTED_OFFSET) {
written = _decodeShift(memory.offset, false, buffer, blen);
ADVANCE(written);
}
if (!(memory.format & ARM_MEMORY_POST_INCREMENT)) {
strncpy(buffer, "]", blen - 1);