Adding a few tools to debug CPU emulation