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

23 lines
380 B
C

int testSecImplied() {
SR &= (~SR_CARRY);
ram[0] = 0x38;
instructions = 1; run();
if(!(SR&SR_CARRY)) return -1;
return 0;
}
int testSedImplied() {
SR &= (~SR_DEC);
ram[0] = 0xF8;
instructions = 1; run();
if(!(SR&SR_DEC)) return -1;
return 0;
}
int testSeiImplied() {
SR &= (~SR_INT);
ram[0] = 0x78;
instructions = 1; run();
if(!(SR&SR_INT)) return -1;
return 0;
}