Beispiel #1
0
 public override bool MatchJump(EndianImageReader rdr, uint opcode, out ushort target)
 {
     if (opcode == 0x4C && // JMP
         rdr.TryPeekLeUInt16(1, out target))
     {
         return(true);
     }
     target = 0;
     return(false);
 }
Beispiel #2
0
 public override bool MatchJump(EndianImageReader rdr, uint opcode, out ushort target)
 {
     switch (opcode)
     {
     case 0xC4:
     case 0xCC:
     case 0xCD:
     case 0xD4:
     case 0xDC:
     case 0xE4:
     case 0xEC:
     case 0xF4:
     case 0xFC:
         return(rdr.TryPeekLeUInt16(1, out target));
     }
     target = 0;
     return(false);
 }
Beispiel #3
0
 public override bool MatchCall(EndianImageReader rdr, uint opcode, out ushort target)
 {
     switch (opcode)
     {
     case 0xC2:
     case 0xC3:
     case 0xCA:
     case 0xD2:
     case 0xDA:
     case 0xE2:
     case 0xEA:
     case 0xF2:
     case 0xFA:
         return(rdr.TryPeekLeUInt16(1, out target));
     }
     target = 0;
     return(false);
 }
Beispiel #4
0
 public override bool TryPeekPointer(EndianImageReader rdr, out ushort target)
 {
     return(rdr.TryPeekLeUInt16(0, out target));
 }