From 83f4516a4613f029935740703fd336d75398ab38 Mon Sep 17 00:00:00 2001 From: william Date: Sun, 26 Nov 2023 12:11:49 -0500 Subject: [PATCH] Cpu opcodes implementation --- .idea/workspace.xml | 229 ++++++++++--- CMakeLists.txt | 7 +- cpu/CMakeLists.txt | 7 +- cpu/cpu.c | 89 ++++- cpu/cpu.h | 60 ++++ cpu/mem.c | 26 -- cpu/memory.c | 21 ++ cpu/memory.h | 14 + cpu/op.c | 679 +++++++++++++++++++++++++++++++------- {include/cpu => cpu}/op.h | 6 +- cpu/ram.c | 22 ++ cpu/ram.h | 20 ++ include/cpu.h | 33 ++ include/cpu/cpu.h | 51 --- include/cpu/mem.h | 8 - include/mapper.h | 20 ++ main.c | 10 +- mappers/CMakeLists.txt | 6 + mappers/mappers.c | 19 ++ mappers/simple_mapper.c | 11 + 20 files changed, 1077 insertions(+), 261 deletions(-) create mode 100644 cpu/cpu.h delete mode 100644 cpu/mem.c create mode 100644 cpu/memory.c create mode 100644 cpu/memory.h rename {include/cpu => cpu}/op.h (90%) create mode 100644 cpu/ram.c create mode 100644 cpu/ram.h create mode 100644 include/cpu.h delete mode 100644 include/cpu/cpu.h delete mode 100644 include/cpu/mem.h create mode 100644 include/mapper.h create mode 100644 mappers/CMakeLists.txt create mode 100644 mappers/mappers.c create mode 100644 mappers/simple_mapper.c diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 507a580..18dcf2d 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -12,6 +12,7 @@ + @@ -22,26 +23,25 @@ - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + +