forked from Apple-2-HW/arduino-appleii
2798ae6d16
Uploading Current Source To Github
22 lines
346 B
C
22 lines
346 B
C
int testBeqImplied() {
|
|
SR|=SR_ZERO;
|
|
SR&=(~SR_DEC);
|
|
ram[0] = 0xF0;
|
|
ram[1] = 0x01;
|
|
ram[2] = 0x00;
|
|
ram[3] = 0xF8; //SED
|
|
instructions = 4;
|
|
run();
|
|
if((SR&SR_DEC) == 0) return -1;
|
|
|
|
SR&=(~SR_ZERO);
|
|
SR&=(~SR_DEC);
|
|
ram[0] = 0xF0;
|
|
ram[1] = 0x01;
|
|
ram[2] = 0x00;
|
|
ram[3] = 0xF8;
|
|
instructions = 4; run();
|
|
if(SR&SR_DEC) return -2;
|
|
|
|
return 0;
|
|
} |