mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-15 09:21:00 +00:00
Trying to fix issue #1354: Program memory width is 16 bit, JMP/CALL addresses should be converted to 8 bit memory width when disassembling.
This commit is contained in:
parent
90dad36646
commit
c9ea8bc718
@ -78,8 +78,11 @@ int disassembleInstruction(disassembledInstruction *dInstruction, const assemble
|
||||
* so in order to jump/call to the right address (which increments by
|
||||
* two for every instruction), we must multiply this distance by two. */
|
||||
//printf ("ii=%d\n", insidx);
|
||||
if (insidx==86)
|
||||
if(!strcmp(longInstruction.instruction->mnemonic,"call")||
|
||||
!strcmp(longInstruction.instruction->mnemonic,"jmp"))
|
||||
{
|
||||
AVR_Long_Address *= 2;
|
||||
}
|
||||
*dInstruction = longInstruction;
|
||||
return 0;
|
||||
/* If a long instruction was printed in the last instruction disassembly,
|
||||
|
Loading…
Reference in New Issue
Block a user