diff options
Diffstat (limited to 'Ryujinx/OsHle/Exceptions/UndefinedInstructionException.cs')
-rw-r--r-- | Ryujinx/OsHle/Exceptions/UndefinedInstructionException.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Ryujinx/OsHle/Exceptions/UndefinedInstructionException.cs b/Ryujinx/OsHle/Exceptions/UndefinedInstructionException.cs new file mode 100644 index 00000000..86033a82 --- /dev/null +++ b/Ryujinx/OsHle/Exceptions/UndefinedInstructionException.cs @@ -0,0 +1,13 @@ +using System; + +namespace Ryujinx.OsHle.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(long Position, int OpCode) : base(string.Format(ExMsg, Position, OpCode)) { } + } +}
\ No newline at end of file |