dma and mbc1 passing
This commit is contained in:
@ -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++;
|
||||
|
||||
|
Reference in New Issue
Block a user