arduino-appleii/6502tests/test/testPlp.c
Damian Peckett 2798ae6d16 First Commit
Uploading Current Source To Github
2015-04-08 17:14:01 +10:00

8 lines
210 B
C

int testPlpImplied() {
SR = 0x20;
push8(0xBA);
ram[0] = 0x28;
instructions = 1; run();
if(!(SR&SR_NEG && !(SR&SR_OVER) && SR&SR_DEC && !(SR&SR_INT) && SR&SR_ZERO && !(SR&SR_CARRY))) return -1;
return 0;
}