mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2024-06-11 00:29:31 +00:00
More LR35902 blargg test debugging output corrections.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
parent
bf0e793603
commit
00e92c1621
|
@ -4,6 +4,8 @@
|
|||
|
||||
namespace LR35902.BlarggTest
|
||||
{
|
||||
using System;
|
||||
|
||||
public class Board : EightBit.GameBoy.Bus
|
||||
{
|
||||
private readonly Configuration configuration;
|
||||
|
@ -17,7 +19,6 @@ namespace LR35902.BlarggTest
|
|||
|
||||
public override void Initialize()
|
||||
{
|
||||
//this.DisableGameRom();
|
||||
this.WrittenByte += this.Board_WrittenByte;
|
||||
if (this.configuration.DebugMode)
|
||||
{
|
||||
|
@ -34,11 +35,17 @@ namespace LR35902.BlarggTest
|
|||
switch (this.Address.Word)
|
||||
{
|
||||
case EightBit.GameBoy.IoRegisters.BASE + EightBit.GameBoy.IoRegisters.SB:
|
||||
System.Console.Out.Write(this.Data);
|
||||
System.Console.Out.Write(Convert.ToChar(this.Data));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private void CPU_ExecutingInstruction_Debug(object sender, System.EventArgs e) => System.Console.Error.WriteLine($"{EightBit.GameBoy.Disassembler.State(this.CPU)} {this.disassembler.Disassemble(this.CPU)}");
|
||||
private void CPU_ExecutingInstruction_Debug(object sender, System.EventArgs e)
|
||||
{
|
||||
if (this.IO.BootRomDisabled)
|
||||
{
|
||||
System.Console.Error.WriteLine($"{EightBit.GameBoy.Disassembler.State(this.CPU)} {this.disassembler.Disassemble(this.CPU)}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user