Correct relative branch offset calculations in disassembly

This commit is contained in:
Adrian Conlon
2024-06-10 11:13:02 +01:00
parent 09f44ab28c
commit fb79d456b0

View File

@@ -44,7 +44,7 @@ namespace EightBit
output.Append(' ');
var next = this.bus.Peek((ushort)(current + 1));
var relative = (ushort)(this.processor.PC.Word + 2 + (sbyte)next);
var relative = (ushort)(current + 2 + (sbyte)next);
var aaa = (cell & 0b11100000) >> 5;
var bbb = (cell & 0b00011100) >> 2;