From 872a627545f4e6f049ee53d9b33449214d6d103a Mon Sep 17 00:00:00 2001 From: Blue Date: Sun, 21 Apr 2019 15:23:08 +0200 Subject: [PATCH] Bios Disassembler stub --- ProjectPSX/Core/BIOS_Disassembler.cs | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 ProjectPSX/Core/BIOS_Disassembler.cs diff --git a/ProjectPSX/Core/BIOS_Disassembler.cs b/ProjectPSX/Core/BIOS_Disassembler.cs new file mode 100644 index 0000000..50e430c --- /dev/null +++ b/ProjectPSX/Core/BIOS_Disassembler.cs @@ -0,0 +1,29 @@ +using System; + +namespace ProjectPSX { + internal class BIOS_Disassembler { + internal void verbose(uint PC, uint[] GPR) { + uint pc = PC & 0x1fffffff; + switch (pc) { + case 0xA0: + Console.ForegroundColor = ConsoleColor.Blue; + //Console.WriteLine("[BIOS] [VERBOSE] A0 Function " + GPR[9].ToString("x8")); + //Console.ReadLine(); + Console.ResetColor(); + break; + case 0xB0: + Console.ForegroundColor = ConsoleColor.Blue; + //Console.WriteLine("[BIOS] [VERBOSE] B0 Function " + GPR[9].ToString("x8")); + //Console.ReadLine(); + Console.ResetColor(); + break; + case 0xC0: + Console.ForegroundColor = ConsoleColor.Blue; + //Console.WriteLine("[BIOS] [VERBOSE] C0 Function " + GPR[9].ToString("x8")); + //Console.ReadLine(); + Console.ResetColor(); + break; + } + } + } +} \ No newline at end of file