Fix: dma channel count, misplaced '+1'

This commit is contained in:
Ernest Wong 2017-11-18 16:57:48 +13:00 committed by Fabian
parent 2b2a6d6d3d
commit 6ada19b5b5

View file

@ -267,7 +267,7 @@ DMA.prototype.port81_write = function(data_byte)
// read data, write to memory
DMA.prototype.do_read = function(buffer, start, len, channel, fn)
{
var read_count = this.count_get_8bit(channel + 1),
var read_count = this.count_get_8bit(channel) + 1,
addr = this.address_get_8bit(channel);
dbg_log("DMA write channel " + channel, LOG_DMA);