diff options
Diffstat (limited to 'src/main/kotlin/cpu/Cpu.kt')
| -rw-r--r-- | src/main/kotlin/cpu/Cpu.kt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/main/kotlin/cpu/Cpu.kt b/src/main/kotlin/cpu/Cpu.kt new file mode 100644 index 0000000..7ea34a4 --- /dev/null +++ b/src/main/kotlin/cpu/Cpu.kt @@ -0,0 +1,18 @@ +package cpu + +import cpu.opcodes.loads8Bit +import ram.Ram + +class Cpu { + + val registers = Registers() + val ram = Ram() + + var opcodes: Map<Int, Operation> + init { + val commandGroups: MutableMap<Int, Operation> = mutableMapOf() + commandGroups.putAll(loads8Bit) + opcodes = commandGroups.toMap() + } + +}
\ No newline at end of file |