6502Android/app/src/main/kotlin/android/emu6502/Emulator.kt

18 lines
327 B
Kotlin
Raw Normal View History

package android.emu6502
2015-06-15 05:51:31 +00:00
import android.emu6502.instructions.Symbols
2015-06-30 06:15:43 +00:00
final class Emulator(val display: Display) {
val memory = Memory(display)
val cpu = CPU(memory)
2015-06-15 05:51:31 +00:00
val assembler = Assembler(memory, Symbols())
2015-06-30 06:15:43 +00:00
init {
display.setOnDisplayCallback(cpu)
}
fun reset() {
display.reset()
cpu.reset()
}
}