video: first signs of life

The video code now writes out a bmp file per-frame. With this patch
applied, the Nintendo logo is rendered in each frame.

There is still plenty of work to be done. Pretty much everything is
hardcoded to make the bootrom work.
This commit is contained in:
2018-07-18 19:32:03 -07:00
parent cd66ad8a89
commit 53cd4ab7e5
7 changed files with 165 additions and 63 deletions

View File

@@ -52,6 +52,11 @@ void gb_mem_write(struct gb_memory *cpu, uint16_t addr, uint8_t val)
case 0xFF40 ... 0xFF4B:
gb_video_mem_write(video, addr, val);
break;
case 0x8000 ... 0x87FF:
case 0x9800 ... 0x9BFF:
printf("Wrote [0x%x]=%x\n", addr, val);
ram[addr] = val;
break;
case 0 ... 0x100:
if (bootrom_mapped) {
break;