mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2025-11-01 02:16:13 +00:00
Correct relative branch offset calculations in disassembly
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user