diff options
Diffstat (limited to 'src/Ryujinx.HLE/Exceptions/UndefinedInstructionException.cs')
-rw-r--r-- | src/Ryujinx.HLE/Exceptions/UndefinedInstructionException.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Ryujinx.HLE/Exceptions/UndefinedInstructionException.cs b/src/Ryujinx.HLE/Exceptions/UndefinedInstructionException.cs new file mode 100644 index 00000000..dfbd6c27 --- /dev/null +++ b/src/Ryujinx.HLE/Exceptions/UndefinedInstructionException.cs @@ -0,0 +1,13 @@ +using System; + +namespace Ryujinx.HLE.Exceptions +{ + public class UndefinedInstructionException : Exception + { + private const string ExMsg = "The instruction at 0x{0:x16} (opcode 0x{1:x8}) is undefined!"; + + public UndefinedInstructionException() : base() { } + + public UndefinedInstructionException(ulong address, int opCode) : base(string.Format(ExMsg, address, opCode)) { } + } +}
\ No newline at end of file |