From 4c106419f5b6b7727b7e0b5f20aec695c0c06e98 Mon Sep 17 00:00:00 2001 From: Christopher Mason Date: Fri, 7 Jan 2011 03:03:10 +0000 Subject: [PATCH] Fix MSB masking on parallel port output. --- src/parallel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parallel.c b/src/parallel.c index 2ee4a5b..1beceb0 100644 --- a/src/parallel.c +++ b/src/parallel.c @@ -45,7 +45,7 @@ void parallel_write(word16 io_address, byte val) { //Mask MSB if user has it set. if(g_parallel_out_masking) { - val = val & 0xfe; + val = val & 0x7f; } printf("parallel card called at %x\n", io_address); //send a byte to the virtual printer