From 4f4eefda178416949d38a3b5d6c2d6757dd4db75 Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Thu, 25 Sep 2003 19:30:23 +0000 Subject: [PATCH] Really clear the lower 4 bits Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1269 --- src/hardware/dma.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hardware/dma.cpp b/src/hardware/dma.cpp index d90ef803..7a35d16d 100644 --- a/src/hardware/dma.cpp +++ b/src/hardware/dma.cpp @@ -93,7 +93,7 @@ static Bit8u read_dma(Bit32u port) { break; case 0x08: /* Read Status */ ret=cont->status_reg; - cont->status_reg&=0xf; /* Clear lower 4 bits on read */ + cont->status_reg&=~0xf; /* Clear lower 4 bits on read */ break; case 0x0a: case 0x0e: