From 9220a120086b596e7bcd82dd32020851282dfd61 Mon Sep 17 00:00:00 2001 From: slack Date: Wed, 1 Oct 2008 17:51:16 +0200 Subject: [PATCH] log calls in debug level --- gbcore.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gbcore.h b/gbcore.h index e48dfbf..8d7b328 100644 --- a/gbcore.h +++ b/gbcore.h @@ -21,6 +21,8 @@ #include "sized_types.h" #include "GBMemory.h" #include "GBVideo.h" +#include "Logger.h" +#include #include #include @@ -109,6 +111,7 @@ class GameBoy inline void do_call(u16 addr) { + logger.debug("do_call(0x", std::hex, std::setw(4), std::setfill('0'), addr, ")"); memory.write(regs.SP-1, regs.PC >> 8); memory.write(regs.SP-2, regs.PC & 0xFF); regs.SP -= 2; -- 2.34.1