Skip to content

Commit

Permalink
Fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
ZehMatt committed Nov 3, 2021
1 parent 7415e1a commit 802aa3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/dotplugins/example/ExamplePlugin.Disassembler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ public void DisassembleAtIP(string[] args)
switch (op.Type)
{
case OperandType.Immediate:
var imm = op as Operand.OpImm;
var imm = op as Operand.Immediate;
instrText += $"{{ {visibility}, Imm({imm.Value:X}) }},\n";
break;
case OperandType.Register:
var reg = op as Operand.OpReg;
var reg = op as Operand.Register;
instrText += $"{{ {visibility}, Reg({reg}) }},\n";
break;
case OperandType.Memory:
var mem = op as Operand.OpMem;
var mem = op as Operand.Memory;
instrText += $"{{ {visibility}, Memory {{\n";
instrText += $" Base = {mem.Base},\n";
instrText += $" Index = {mem.Index},\n";
Expand Down

0 comments on commit 802aa3b

Please sign in to comment.