Fix: dma singlemask_write check bit 2 not 3

This commit is contained in:
Ernest Wong 2017-11-18 17:09:48 +13:00 committed by Fabian
parent 6ada19b5b5
commit 0a499bd089

View file

@ -144,7 +144,7 @@ DMA.prototype.port_page_read = function(channel)
DMA.prototype.port_singlemask_write = function(channel_offset, data_byte)
{
var channel = (data_byte & 0x3) + channel_offset;
var value = !!(data_byte & 0x8);
var value = !!(data_byte & 0x4);
dbg_log("singlechannel mask write [" + channel + "] = " + value, LOG_DMA);
this.update_mask(channel, value);
}