log calls in debug level
authorslack <slack@Blackbird.(none)>
Wed, 1 Oct 2008 15:51:16 +0000 (17:51 +0200)
committerslack <slack@Blackbird.(none)>
Wed, 1 Oct 2008 15:51:16 +0000 (17:51 +0200)
gbcore.h

index e48dfbf4d055003aafd5ca77004894ae561bc19f..8d7b328e0108de9d9898b6e56fc1ef6221ccf8ab 100644 (file)
--- a/gbcore.h
+++ b/gbcore.h
@@ -21,6 +21,8 @@
 #include "sized_types.h"
 #include "GBMemory.h"
 #include "GBVideo.h"
+#include "Logger.h"
+#include <iomanip>
 #include <string>
 #include <map>
 
@@ -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;