When taken alone, the declaration:
//#define PREPROCESSOR_TYPES #ifdef PREPROCESSOR_TYPES #define byte unsigned char #define word unsigned short #else typedef unsigned char byte; typedef unsigned short word; #endif word rdwd6502(word addr);
--returns no errors. but, when in its actual context in the program (files attached), it returns the following compiler error:
6502.c:3: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rdwd6502’ 6502.c:43: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rdwd6502’
So, can anyone explain this phantom to me, or is it something very simple that I've missed?
EDIT: SOLVED.
Attached Files
Edited by Aereshaa, 26 August 2009 - 01:48 PM.


Sign In
Create Account



Back to top









