Implemented a logger to log details of the current state of the
CPU at every instruction