From 55743c0cba7d1f3daafcedff4f9f623fdcf24b83 Mon Sep 17 00:00:00 2001 From: gdkchan <gab.dark.100@gmail.com> Date: Sat, 10 Feb 2018 14:20:46 -0300 Subject: Only throw undefined instruction exception at execution, not at translation stage --- Ryujinx/OsHle/Exceptions/UndefinedInstructionException.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Ryujinx/OsHle/Exceptions/UndefinedInstructionException.cs (limited to 'Ryujinx/OsHle/Exceptions/UndefinedInstructionException.cs') 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 -- cgit v1.2.3-70-g09d2