shithub: riscv

Download patch

ref: 9bafdc2d6a3b5f5fd5a92c99ad7c02a6b53117d8
parent: 0fd4ad8016cecf7210e64e9878d2cd6861a72fbf
author: Jacob Moody <moody@posixcafe.org>
date: Sun Jul 9 15:55:35 EDT 2023

games/gb: correctly mark transmitted serial data as sent

--- a/sys/src/games/gb/serial.c
+++ b/sys/src/games/gb/serial.c
@@ -100,6 +100,8 @@
 	assert(theirs.c != Cgone);
 	if(theirs.c == Csync)
 		return;
+	if(leader)
+		mine.c = Cgone;
 
 	reg[SB] = theirs.b;
 	reg[SC] &= ~0x80;