diff options
| author | James Barnett <noreply@jamesbarnett.xyz> | 2018-08-01 22:02:50 +0100 |
|---|---|---|
| committer | James Barnett <noreply@jamesbarnett.xyz> | 2018-08-01 22:02:50 +0100 |
| commit | 3a3733052672b1c23ae240bd19f71e13336c600b (patch) | |
| tree | c014139179947c4310921129fdf10c8b059a796c /src/main/kotlin/GameBoy.kt | |
| parent | e4e561bd94df819f4ce9487f28b1d18a8d178810 (diff) | |
| download | KGB-3a3733052672b1c23ae240bd19f71e13336c600b.tar.xz KGB-3a3733052672b1c23ae240bd19f71e13336c600b.zip | |
Add GPU interface and implementation which returns a test pattern
Diffstat (limited to 'src/main/kotlin/GameBoy.kt')
| -rw-r--r-- | src/main/kotlin/GameBoy.kt | 10 |
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 |