IDE: DevCpp 4.9.9.0;
Compiler: mingw 3.3.1
I ran across this little bastard while I was working one of my projects
lpProgramMemory = &Memory[(PB*BANK_SIZE) + PC];
switch(*lpProgramMemory){
//////////// ADC Add With Carry \\\\\\\\\\\\
case 0x61: // ADC (dp,X)
. . // ..
Here
///////////////// Processor Flags \\\\\\\\\\\\\\\
BOOL bEmulation; // 6502 Emulation mode 8 bit;
And Here
//////////// Internal Registers \\\\\\\\\\\\\\\\\
WORD A; // the Accumulator
The compiler told me that A, And bEumulation were both undeclared
And that case 0x61 was unreachable, all of which were not true
The culprit was the \\\ marks in the comments in the code
Won’t Work
//////////// ADC Add With Carry \\\\\\\\\\\\
case 0x61: // ADC (dp,X)
Works
//////////// ADC Add With Carry
case 0x61: // ADC (dp,X)
weird huh?
-Frank