arduino-appleii/6502tests/test/testPha.c

8 lines
174 B
C
Raw Normal View History

int testPhaImplied() {
unsigned short beginSp = SP;
A = 0x23;
ram[0] = 0x48;
instructions = 1; run();
if(!((beginSp-SP) == 1 && pull8() == 0x23)) return -1;
return 0;
}