Use registers, ram shortcuts in cpu test module
Change file type from dos to unix
Refactor common test code into runOneInstruction
Fix typo
Refactor common code into testAddSub & testLogicOp