Original Post
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 Here And Here 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 weird huh? -Frank
lpProgramMemory = &Memory[(PB*BANK_SIZE) + PC];
switch(*lpProgramMemory){
//////////// ADC Add With Carry \\\\\\\\\\\\
case 0x61: // ADC (dp,X)
. . // ..
///////////////// Processor Flags \\\\\\\\\\\\\\\
BOOL bEmulation; // 6502 Emulation mode 8 bit;
//////////// Internal Registers \\\\\\\\\\\\\\\\\
WORD A; // the Accumulator
Won’t Work
//////////// ADC Add With Carry \\\\\\\\\\\\
case 0x61: // ADC (dp,X)
Works
//////////// ADC Add With Carry
case 0x61: // ADC (dp,X)