From 3a3733052672b1c23ae240bd19f71e13336c600b Mon Sep 17 00:00:00 2001 From: James Barnett Date: Wed, 1 Aug 2018 22:02:50 +0100 Subject: Add GPU interface and implementation which returns a test pattern --- src/main/kotlin/GameBoy.kt | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/main/kotlin/GameBoy.kt (limited to 'src/main/kotlin/GameBoy.kt') diff --git a/src/main/kotlin/GameBoy.kt b/src/main/kotlin/GameBoy.kt new file mode 100644 index 0000000..7c8dfdc --- /dev/null +++ b/src/main/kotlin/GameBoy.kt @@ -0,0 +1,10 @@ +import cpu.Cpu +import gpu.Gpu +import java.io.File + +class GameBoy(val cpu: Cpu, val gpu: Gpu) { + + fun loadRom(file: File) { + this.cpu.loadRom(file.readBytes()) + } +} \ No newline at end of file -- cgit v1.2.3