Skip to content

Commit 45e6f82

Browse files
committed
Set the right bit, and only the right bit.
1 parent 004b167 commit 45e6f82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/c64/io.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ void io_recv_serial_flow_off(void)
3030
{
3131
// for now, assume user port.
3232
xoff_enabled=true;
33-
POKE(0xDD01,0);
33+
POKE(0xDD01,PEEK(0xDD01)&0x02);
3434
}
3535

3636
/**
@@ -40,5 +40,5 @@ void io_recv_serial_flow_on(void)
4040
{
4141
// For now, assume user port.
4242
xoff_enabled=false;
43-
POKE(0xDD01,1);
43+
POKE(0xDD01,PEEK(0xDD01)|0x02);
4444
}

0 commit comments

Comments
 (0)