From a11980fe90fe62588fdf8103d9ef418283b3fd27 Mon Sep 17 00:00:00 2001 From: alekseiplusplus Date: Sat, 5 Aug 2023 05:32:54 +1000 Subject: major refactor; doesn't compile (see ToDo) --- src/cpu/core.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'src/cpu/core.h') diff --git a/src/cpu/core.h b/src/cpu/core.h index 4c338ab..71a420b 100644 --- a/src/cpu/core.h +++ b/src/cpu/core.h @@ -6,4 +6,29 @@ typedef unsigned char 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; + #endif \ No newline at end of file -- cgit v1.2.3