forked from Apple-2-HW/arduino-appleii
2798ae6d16
Uploading Current Source To Github
8 lines
210 B
C
8 lines
210 B
C
int testBrkImplied() {
|
|
SR &= (~SR_INT);
|
|
SP = 0xFF;
|
|
ram[0] = 0x00;
|
|
instructions = 4; run();
|
|
if(!(SR&SR_INT) || PC != (read8(0xFFFE)|((unsigned short)read8(0xFFFF)<<8)) || SP != 0xFC) return -1;
|
|
return 0;
|
|
} |