diff options
| author | James Barnett <noreply@jamesbarnett.xyz> | 2018-07-08 19:36:44 +0100 |
|---|---|---|
| committer | James Barnett <noreply@jamesbarnett.xyz> | 2018-07-08 19:36:44 +0100 |
| commit | 1193b3a6707e0a6a5626d8a3238252dd2eeaa31b (patch) | |
| tree | 20eb013c55434e2265655e9f2226cadbeeae3bdb /src/main/kotlin/cpu/Cpu.kt | |
| parent | 748471a5310f2413afc26c00b282ade64e718a3e (diff) | |
| download | KGB-1193b3a6707e0a6a5626d8a3238252dd2eeaa31b.tar.xz KGB-1193b3a6707e0a6a5626d8a3238252dd2eeaa31b.zip | |
Add 'misc' ops (SWAP, DAA, CPL, CCF, SCF etc.)
Diffstat (limited to 'src/main/kotlin/cpu/Cpu.kt')
| -rw-r--r-- | src/main/kotlin/cpu/Cpu.kt | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main/kotlin/cpu/Cpu.kt b/src/main/kotlin/cpu/Cpu.kt index 77e26a1..3180aeb 100644 --- a/src/main/kotlin/cpu/Cpu.kt +++ b/src/main/kotlin/cpu/Cpu.kt @@ -1,9 +1,6 @@ package cpu -import cpu.opcodes.arithmetic16Bit -import cpu.opcodes.arithmetic8Bit -import cpu.opcodes.loads16Bit -import cpu.opcodes.loads8Bit +import cpu.opcodes.* import ram.Ram class Cpu { @@ -18,6 +15,7 @@ class Cpu { commandGroups.putAll(loads16Bit) commandGroups.putAll(arithmetic8Bit) commandGroups.putAll(arithmetic16Bit) + commandGroups.putAll(misc) opcodes = commandGroups.toMap() } |