mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2025-09-28 09:16:18 +00:00
Make the Z80 disassembly more compatible with the unmanaged disassembler.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
@@ -55,12 +55,12 @@
|
|||||||
var im = cpu.IM;
|
var im = cpu.IM;
|
||||||
|
|
||||||
return
|
return
|
||||||
$"PC={pc.Word:X4} SP={sp.Word:X4} "
|
$"PC={pc.Word:x4} SP={sp.Word:x4} "
|
||||||
+ $"A={a:X2} F={AsFlags(f)} "
|
+ $"A={a:x2} F={AsFlags(f)} "
|
||||||
+ $"B={b:X2} C={c:X2} "
|
+ $"B={b:x2} C={c:x2} "
|
||||||
+ $"D={d:X2} E={e:X2} "
|
+ $"D={d:x2} E={e:x2} "
|
||||||
+ $"H={h:X2} L={l:X2} "
|
+ $"H={h:x2} L={l:x2} "
|
||||||
+ $"I={i:X2} R={(byte)r:X2} "
|
+ $"I={i:x2} R={(byte)r:x2} "
|
||||||
+ $"IM={im}";
|
+ $"IM={im}";
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -141,7 +141,7 @@
|
|||||||
|
|
||||||
var dumpCount = 0;
|
var dumpCount = 0;
|
||||||
|
|
||||||
var output = $"{opCode:X2}";
|
var output = $"{opCode:x2}";
|
||||||
|
|
||||||
string specification = string.Empty;
|
string specification = string.Empty;
|
||||||
if (this.prefixCB)
|
if (this.prefixCB)
|
||||||
@@ -159,7 +159,7 @@
|
|||||||
|
|
||||||
for (int i = 0; i < dumpCount; ++i)
|
for (int i = 0; i < dumpCount; ++i)
|
||||||
{
|
{
|
||||||
output += $"{this.Bus.Peek((ushort)(pc + i + 1)):X2}";
|
output += $"{this.Bus.Peek((ushort)(pc + i + 1)):x2}";
|
||||||
}
|
}
|
||||||
|
|
||||||
var outputFormatSpecification = !this.prefixDD;
|
var outputFormatSpecification = !this.prefixDD;
|
||||||
|
Reference in New Issue
Block a user