test/TestCPU.c
void testOpcodes() {
	cpu_power_up(0);
	//// We did something wrong with the BRK opcode function, need to be fixed
	test_BRK();
	test_ORA();
	test_ASL();
	test_JSR();
	test_PHP();
	test_PLP();
	test_PLA();
	test_PHA();
	test_AND();
	test_BIT();
	test_FLAGS();
	test_REGISTERS();
	test_ADC();
	test_BRANCH();
	test_NOP();
	test_SBC();
	test_INCDECMEM();
	test_LOADREGISTER();
	test_STOREREGISTER();
	test_RTS();
	test_RTI();
	test_COMPAREREGISTER();
	test_LSR();
	test_ROTATE();
	test_EOR();
	test_JMP();

	//Now for the real deal. Test the NESTEST ROM!
	test_NESTEST();
}
/**
 * Simply calls each function to test. It's going to get messy but what the hell!....
 */
Simply calls each function to test. It's going to get messy but what the hell!
Simply calls each function to test . It ' s going to get messy but what the hell!
void testOpcodes() {
	cpu_power_up(0);
	test_BRK();
	test_ORA();
	test_ASL();
	test_JSR();
	test_PHP();
	test_PLP();
	test_PLA();
	test_PHA();
	test_AND();
	test_BIT();
	test_FLAGS();
	test_REGISTERS();
	test_ADC();
	test_BRANCH();
	test_NOP();
	test_SBC();
	test_INCDECMEM();
	test_LOADREGISTER();
	test_STOREREGISTER();
	test_RTS();
	test_RTI();
	test_COMPAREREGISTER();
	test_LSR();
	test_ROTATE();
	test_EOR();
	test_JMP();
	test_NESTEST();
}
void testOpcodes ( ) { cpu_power_up ( 0 ) ; test_BRK ( ) ; test_ORA ( ) ; test_ASL ( ) ; test_JSR ( ) ; test_PHP ( ) ; test_PLP ( ) ; test_PLA ( ) ; test_PHA ( ) ; test_AND ( ) ; test_BIT ( ) ; test_FLAGS ( ) ; test_REGISTERS ( ) ; test_ADC ( ) ; test_BRANCH ( ) ; test_NOP ( ) ; test_SBC ( ) ; test_INCDECMEM ( ) ; test_LOADREGISTER ( ) ; test_STOREREGISTER ( ) ; test_RTS ( ) ; test_RTI ( ) ; test_COMPAREREGISTER ( ) ; test_LSR ( ) ; test_ROTATE ( ) ; test_EOR ( ) ; test_JMP ( ) ; test_NESTEST ( ) ; }
Simply calls each function to test.
Simply calls each function to test .
//// We did something wrong with the BRK opcode function, need to be fixed //Now for the real deal. Test the NESTEST ROM!