Table of Contents Previous topic Next topic
The Extension Interface->Variant Specific Interface Calls->GetReservedInstructionMnemonic()
extern "C" LONG GetReservedInstructionMnemonic(LONG nExtensionState, BYTE* pnBytes)
If a variant makes use of the unused opcode A5 to provide an additional assembler instruction, the disassembler will need to correctly display it. The disassembler therefore needs to know what string it should display and so the extension should return a const char * (cast to LONG) pointing to the appropriate string. The disassembler also needs to know how many bytes the additional instruction uses so that it can identify the start of the next assembler instruction. The number of bytes should therefore be placed in *pnBytes.
If the extension does not wish to handle this call it should return zero.