GUI: added INT3 color customization
This commit is contained in:
parent
0cf41d2d55
commit
91beff6211
|
|
@ -136,6 +136,8 @@ void BeaTokenizer::Mnemonic(BeaInstructionToken* instr, const DISASM* disasm)
|
|||
type = TokenMnemonicPushPop;
|
||||
else if(IsNopInstruction(mnemonic, disasm)) //nop instructions
|
||||
type = TokenMnemonicNop;
|
||||
else if(mnemonic == "int3" || mnemonic == "int 3") //int3 instruction on request
|
||||
type = TokenMnemonicInt3;
|
||||
else if(completeInstr.contains("movs") || completeInstr.contains("cmps") || completeInstr.contains("scas") || completeInstr.contains("lods") || completeInstr.contains("stos") || completeInstr.contains("outs"))
|
||||
{
|
||||
completeInstr = completeInstr.replace("rep ", "").replace("repne ", "");
|
||||
|
|
@ -470,6 +472,7 @@ void BeaTokenizer::Init()
|
|||
AddColorName(TokenMnemonicUncondJump, "InstructionUnconditionalJumpColor", "InstructionUnconditionalJumpBackgroundColor");
|
||||
AddColorName(TokenMnemonicNop, "InstructionNopColor", "InstructionNopBackgroundColor");
|
||||
AddColorName(TokenMnemonicFar, "InstructionFarColor", "InstructionFarBackgroundColor");
|
||||
AddColorName(TokenMnemonicInt3, "InstructionInt3Color", "InstructionInt3BackgroundColor");
|
||||
//memory
|
||||
AddColorName(TokenMemorySize, "InstructionMemorySizeColor", "InstructionMemorySizeBackgroundColor");
|
||||
AddColorName(TokenMemorySegment, "InstructionMemorySegmentColor", "InstructionMemorySegmentBackgroundColor");
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@ public:
|
|||
TokenMnemonicUncondJump,
|
||||
TokenMnemonicNop,
|
||||
TokenMnemonicFar,
|
||||
TokenMnemonicInt3,
|
||||
//memory
|
||||
TokenMemorySize,
|
||||
TokenMemorySegment,
|
||||
|
|
|
|||
|
|
@ -476,6 +476,7 @@ void AppearanceDialog::colorInfoListInit()
|
|||
colorInfoListAppend("Unconditional Jumps", "InstructionUnconditionalJumpColor", "InstructionUnconditionalJumpBackgroundColor");
|
||||
colorInfoListAppend("NOPs", "InstructionNopColor", "InstructionNopBackgroundColor");
|
||||
colorInfoListAppend("FAR", "InstructionFarColor", "InstructionFarBackgroundColor");
|
||||
colorInfoListAppend("INT3s", "InstructionInt3Color", "InstructionInt3BackgroundColor");
|
||||
colorInfoListAppend("General Registers", "InstructionGeneralRegisterColor", "InstructionGeneralRegisterBackgroundColor");
|
||||
colorInfoListAppend("FPU Registers", "InstructionFpuRegisterColor", "InstructionFpuRegisterBackgroundColor");
|
||||
colorInfoListAppend("SSE Registers", "InstructionSseRegisterColor", "InstructionSseRegisterBackgroundColor");
|
||||
|
|
|
|||
|
|
@ -88,6 +88,8 @@ Configuration::Configuration() : QObject()
|
|||
defaultColors.insert("InstructionNopBackgroundColor", Qt::transparent);
|
||||
defaultColors.insert("InstructionFarColor", QColor("#000000"));
|
||||
defaultColors.insert("InstructionFarBackgroundColor", Qt::transparent);
|
||||
defaultColors.insert("InstructionInt3Color", QColor("#000000"));
|
||||
defaultColors.insert("InstructionInt3BackgroundColor", Qt::transparent);
|
||||
defaultColors.insert("InstructionMemorySizeColor", QColor("#000080"));
|
||||
defaultColors.insert("InstructionMemorySizeBackgroundColor", Qt::transparent);
|
||||
defaultColors.insert("InstructionMemorySegmentColor", QColor("#FF00FF"));
|
||||
|
|
|
|||
Loading…
Reference in New Issue