#ifndef CPU_CORE_H #define CPU_CORE_H typedef unsigned char byte; typedef unsigned short address; enum Addressing { eImmediate, eAccumulator, eZeroPage, eZeroPageIndexedX, eZeroPageIndexedY, eAbsolute, eAbsoluteIndexedX, eAbsoluteIndexedY, eIndexedIndirect, eIndirectIndexed, eImplied, eIndirectAbsolute, eRelative }; typedef int Addressing; typedef struct AddData{ int cycles; int length; address add; byte value; } AddData; byte getMemory(address x); void setMemory(address x, byte y); #endif