arduino-appleii/6502tests/test/testBrk.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 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;
}