diff options
author | alekseiplusplus <alekseijeaves@protonmail.com> | 2023-08-05 05:32:54 +1000 |
---|---|---|
committer | alekseiplusplus <alekseijeaves@protonmail.com> | 2023-08-05 05:32:54 +1000 |
commit | a11980fe90fe62588fdf8103d9ef418283b3fd27 (patch) | |
tree | 954d2e327ff5190c8cdcdd977d9a73438ed62ca3 /src/cpu/core.h | |
parent | b8599585fad704b2ec3bdde69dca4dd9c2a6f8fd (diff) |
major refactor; doesn't compile (see ToDo)
Diffstat (limited to 'src/cpu/core.h')
-rw-r--r-- | src/cpu/core.h | 25 |
1 files changed, 25 insertions, 0 deletions
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 |