aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/cpu/Cpu.kt
diff options
context:
space:
mode:
authorJames Barnett <noreply@jamesbarnett.xyz>2018-07-11 21:05:20 +0100
committerJames Barnett <noreply@jamesbarnett.xyz>2018-07-11 21:05:20 +0100
commit0300bdfbc4416c6b2deb767fda167a7452c0b856 (patch)
tree7e68695c86d2634dc42cdd4218a3fd3312830067 /src/main/kotlin/cpu/Cpu.kt
parentd12c7fdd3860ae3a901e0f26627eab5f47af96d4 (diff)
downloadKGB-0300bdfbc4416c6b2deb767fda167a7452c0b856.tar.xz
KGB-0300bdfbc4416c6b2deb767fda167a7452c0b856.zip
Add rotate 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 ad006d9..fdc75b0 100644
--- a/src/main/kotlin/cpu/Cpu.kt
+++ b/src/main/kotlin/cpu/Cpu.kt
@@ -17,10 +17,12 @@ class Cpu {
stdCommandGroup.putAll(arithmetic8Bit)
stdCommandGroup.putAll(arithmetic16Bit)
stdCommandGroup.putAll(misc)
+ stdCommandGroup.putAll(rotates)
standardOpcodes = stdCommandGroup.toMap()
val extCommandGroup: MutableMap<Int, Operation> = mutableMapOf()
extCommandGroup.putAll(miscExtended)
+ extCommandGroup.putAll(rotatesExtended)
extendedOpcodes = extCommandGroup.toMap()