N flag based on last action

Setting the cpu flag at the end of each instruction.
Corrected off by one with branching.
Added nasty logging.
Reset AFTER loading rom into memory.