Fix: dma should read number of bytes, not count

This commit is contained in:
Ernest Wong 2017-11-19 21:07:10 +13:00 committed by Fabian
parent 215bc2528e
commit 0c05905ced

View file

@ -359,7 +359,7 @@ DMA.prototype.do_write = function(buffer, start, len, channel, fn)
}
buffer.set(start,
this.cpu.mem8.subarray(addr, addr + read_count),
this.cpu.mem8.subarray(addr, addr + read_bytes),
() =>
{
if(want_more && autoinit)