dma and mbc1 passing

This commit is contained in:
2025-05-30 11:15:21 -06:00
parent 1455bc5666
commit 26b1f10e16
7 changed files with 76 additions and 23 deletions

View File

@ -7,7 +7,7 @@ static dma_context ctx;
void dma_start(u8 start) {
ctx.active = true;
ctx.byte = 0;
ctx.start_delay = 2;
ctx.start_delay = 0;
ctx.value = start;
}
@ -21,7 +21,7 @@ void dma_tick() {
return;
}
ppu_oam_write(ctx.byte, bus_read(((ctx.value << 8)) + ctx.byte));
ppu_oam_write(ctx.byte, bus_read((ctx.value << 8) | ctx.byte));
ctx.byte++;