diff options
| author | James Barnett <noreply@jamesbarnett.xyz> | 2018-07-03 21:21:56 +0100 |
|---|---|---|
| committer | James Barnett <noreply@jamesbarnett.xyz> | 2018-07-03 21:21:56 +0100 |
| commit | 9bbd85e37c3a9a16560d1364e0ea59cbeff32de3 (patch) | |
| tree | ca9d11ae9be803df168adc50e7de9e2faf96171f /src/main/kotlin/cpu/Cpu.kt | |
| parent | 1aab36e5b2e0a1033f94316618d320ba7b70ca1e (diff) | |
| download | KGB-9bbd85e37c3a9a16560d1364e0ea59cbeff32de3.tar.xz KGB-9bbd85e37c3a9a16560d1364e0ea59cbeff32de3.zip | |
Add some 8-Bit arithmetic ops
Diffstat (limited to 'src/main/kotlin/cpu/Cpu.kt')
| -rw-r--r-- | src/main/kotlin/cpu/Cpu.kt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/kotlin/cpu/Cpu.kt b/src/main/kotlin/cpu/Cpu.kt index e755a08..53f1a8d 100644 --- a/src/main/kotlin/cpu/Cpu.kt +++ b/src/main/kotlin/cpu/Cpu.kt @@ -1,5 +1,6 @@ package cpu +import cpu.opcodes.arithmetic8Bit import cpu.opcodes.loads16Bit import cpu.opcodes.loads8Bit import ram.Ram @@ -14,6 +15,7 @@ class Cpu { val commandGroups: MutableMap<Int, Operation> = mutableMapOf() commandGroups.putAll(loads8Bit) commandGroups.putAll(loads16Bit) + commandGroups.putAll(arithmetic8Bit) opcodes = commandGroups.toMap() } |