Skip to content

Commit cc50717

Browse files
committed
docs: fixed mapped instruction strings in instruction set overview
1 parent bf4b31f commit cc50717

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

docs/src/Instruction/InstructionInstance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class InstructionInstance {
3737
}
3838

3939
instanceString(): string {
40-
const operandString = this.operands.join(", ");
40+
const operandString = this.operands.map((operand) => operand.getValue()).join(", ");
4141
return this.definition.getMnemonic() + " " + operandString;
4242
}
4343
}

docs/src/PageLoader/loadOverviewData.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,16 @@ async function createPseudoInstructionRows(pseudoInstructions: PSEUDOInstruction
8686
pseudoInstruction.getOperands().map((operand) => operand.getName()),
8787
),
8888
);
89-
const mappedInstructionString = await Formatter.joinAndDecorateMappedInstructionsWithLink(
89+
let mappedInstructionString = await Formatter.joinAndDecorateMappedInstructionsWithLink(
9090
pseudoInstruction.getMappedInstructions().map((instr) => {
9191
return instr.instanceString();
9292
}),
9393
);
9494

95+
if (mnemonic == "call") {
96+
mappedInstructionString += "<br>nextInstructionAddress:";
97+
}
98+
9599
rows.push([mnemonicString, instructionString, mappedInstructionString]);
96100
}
97101

0 commit comments

Comments
 (0)