forked from Apple-2-HW/arduino-appleii
2798ae6d16
Uploading Current Source To Github
23 lines
380 B
C
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;
|
|
} |