diff --git a/cartridge_test.go b/cartridge_test.go index dd53a09..79d3f9a 100644 --- a/cartridge_test.go +++ b/cartridge_test.go @@ -7,15 +7,15 @@ import ( ) func TestInsertCartridge(t *testing.T) { - cartridge := Insert("rom.gb") + cartridge := Insert("./roms/dmg-acid2.gb") assert := assert.New(t) - assert.Equal(cartridge.Title, "SEIKEN DENSETSU") - assert.Equal(cartridge.Mapper, "MBC2+BATTERY") - assert.Equal(cartridge.Licensee, "Square") + assert.Equal(cartridge.Title, "DMG-ACID2") + assert.Equal(cartridge.Mapper, "ROM ONLY") + assert.Equal(cartridge.Licensee, "None") assert.False(cartridge.SGBSupport, "SGB support should be false") - assert.Equal(cartridge.ROMSize, 256) + assert.Equal(cartridge.ROMSize, 32) assert.Equal(cartridge.RAMSize, "0 - No RAM") - assert.Equal(cartridge.Destination, "Overseas only") + assert.Equal(cartridge.Destination, "Japan (and possibly overseas)") assert.Equal(cartridge.Version, 0) } diff --git a/main.go b/main.go index 9b83c00..4f5a35e 100644 --- a/main.go +++ b/main.go @@ -10,7 +10,7 @@ func main() { // log.Fatalln("No rom file specified") // } // romPath := os.Args[1] - romPath := "rom.gb" + romPath := "./roms/dmg-acid2.gb" ui.Run(romPath) } diff --git a/roms/01-special.gb b/roms/01-special.gb new file mode 100644 index 0000000..ad3e998 Binary files /dev/null and b/roms/01-special.gb differ diff --git a/roms/02-interrupts.gb b/roms/02-interrupts.gb new file mode 100644 index 0000000..2089594 Binary files /dev/null and b/roms/02-interrupts.gb differ diff --git a/roms/03-op sp,hl.gb b/roms/03-op sp,hl.gb new file mode 100644 index 0000000..50b3cc7 Binary files /dev/null and b/roms/03-op sp,hl.gb differ diff --git a/roms/04-op r,imm.gb b/roms/04-op r,imm.gb new file mode 100644 index 0000000..58ca7b8 Binary files /dev/null and b/roms/04-op r,imm.gb differ diff --git a/roms/05-op rp.gb b/roms/05-op rp.gb new file mode 100644 index 0000000..1c19d92 Binary files /dev/null and b/roms/05-op rp.gb differ diff --git a/roms/06-ld r,r.gb b/roms/06-ld r,r.gb new file mode 100644 index 0000000..d497bfd Binary files /dev/null and b/roms/06-ld r,r.gb differ diff --git a/roms/07-jr,jp,call,ret,rst.gb b/roms/07-jr,jp,call,ret,rst.gb new file mode 100644 index 0000000..5c8d20b Binary files /dev/null and b/roms/07-jr,jp,call,ret,rst.gb differ diff --git a/roms/08-misc instrs.gb b/roms/08-misc instrs.gb new file mode 100644 index 0000000..4da139b Binary files /dev/null and b/roms/08-misc instrs.gb differ diff --git a/roms/09-op r,r.gb b/roms/09-op r,r.gb new file mode 100644 index 0000000..e30e6ec Binary files /dev/null and b/roms/09-op r,r.gb differ diff --git a/roms/10-bit ops.gb b/roms/10-bit ops.gb new file mode 100644 index 0000000..8988458 Binary files /dev/null and b/roms/10-bit ops.gb differ diff --git a/roms/11-op a,(hl).gb b/roms/11-op a,(hl).gb new file mode 100644 index 0000000..0634b7f Binary files /dev/null and b/roms/11-op a,(hl).gb differ diff --git a/roms/cpu_instrs.gb b/roms/cpu_instrs.gb new file mode 100644 index 0000000..7b06221 Binary files /dev/null and b/roms/cpu_instrs.gb differ diff --git a/roms/dmg-acid2.gb b/roms/dmg-acid2.gb new file mode 100644 index 0000000..a25ef94 Binary files /dev/null and b/roms/dmg-acid2.gb differ diff --git a/roms/mem_timing.gb b/roms/mem_timing.gb new file mode 100644 index 0000000..78766b5 Binary files /dev/null and b/roms/mem_timing.gb differ