aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/cpu/Cpu.kt
blob: 7ea34a446c2794b681ec745f8d4aa9b125fc8a47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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()
  }

}