aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/GameBoy.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/GameBoy.kt')
-rw-r--r--src/main/kotlin/GameBoy.kt10
1 files changed, 10 insertions, 0 deletions
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