From 570f17ceddba16d8a362fae3dbe2ca5de5bf0442 Mon Sep 17 00:00:00 2001 From: nattthebear Date: Sun, 12 Jul 2020 17:14:47 -0400 Subject: [PATCH] Bit more W65816 disassembler cleanup --- src/BizHawk.Emulation.Cores/CPUs/W65816/Disassembler.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/BizHawk.Emulation.Cores/CPUs/W65816/Disassembler.cs b/src/BizHawk.Emulation.Cores/CPUs/W65816/Disassembler.cs index ee1c760b0c..9f770d144b 100644 --- a/src/BizHawk.Emulation.Cores/CPUs/W65816/Disassembler.cs +++ b/src/BizHawk.Emulation.Cores/CPUs/W65816/Disassembler.cs @@ -44,7 +44,7 @@ namespace BizHawk.Emulation.Cores.Components.W65816 public string Disassemble(uint addr, Func peek, ref byte P, out int length) { byte opcode = peek(addr); - string ibuf = null; + string ibuf; string pbuf; int offset = -1, sval = -1; @@ -472,9 +472,6 @@ namespace BizHawk.Emulation.Cores.Components.W65816 offset = 3; } break; - default: - length = 1; - return "???"; } StringBuilder sb = new StringBuilder();