Fixed most CPU bugs, now almost passes all tests for nestest.nes