aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx/OsHle/Exceptions/UndefinedInstructionException.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2018-02-10 14:20:46 -0300
committergdkchan <gab.dark.100@gmail.com>2018-02-10 14:20:46 -0300
commit55743c0cba7d1f3daafcedff4f9f623fdcf24b83 (patch)
tree6f2257fff3925a8887de90aebeb003be68241d8b /Ryujinx/OsHle/Exceptions/UndefinedInstructionException.cs
parent9f612682e0026a82f13e28b0e3b610e129ee98a5 (diff)
Only throw undefined instruction exception at execution, not at translation stage
Diffstat (limited to 'Ryujinx/OsHle/Exceptions/UndefinedInstructionException.cs')
-rw-r--r--Ryujinx/OsHle/Exceptions/UndefinedInstructionException.cs13
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