arduino-appleii/6502tests/test/testPha.c
Damian Peckett 2798ae6d16 First Commit
Uploading Current Source To Github
2015-04-08 17:14:01 +10:00

8 lines
174 B
C

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