aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/cpu/Cpu.kt
diff options
context:
space:
mode:
authorJames Barnett <noreply@jamesbarnett.xyz>2018-07-03 21:21:56 +0100
committerJames Barnett <noreply@jamesbarnett.xyz>2018-07-03 21:21:56 +0100
commit9bbd85e37c3a9a16560d1364e0ea59cbeff32de3 (patch)
treeca9d11ae9be803df168adc50e7de9e2faf96171f /src/main/kotlin/cpu/Cpu.kt
parent1aab36e5b2e0a1033f94316618d320ba7b70ca1e (diff)
downloadKGB-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.kt2
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()
}