mirror of
https://github.com/dpeckett/arduino-appleii.git
synced 2024-06-01 00:41:34 +00:00
8 lines
210 B
C
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;
|
||
|
}
|