git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit 27a064caff7d9da30e558fcb2b958f68fd85b78f
parent b4fc2ff7ba618392fa85cdbf55cf11bb858bfded
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Sun, 24 Nov 2024 20:58:12 +0200

Make `GB_serial_set_data_bit` a bit more thread safe

Diffstat:
MCore/gb.c2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Core/gb.c b/Core/gb.c @@ -1365,8 +1365,8 @@ void GB_serial_set_data_bit(GB_gameboy_t *gb, bool data) gb->io_registers[GB_IO_SB] |= data; gb->serial_count++; if (gb->serial_count == 8) { - gb->io_registers[GB_IO_IF] |= 8; gb->io_registers[GB_IO_SC] &= ~0x80; + gb->io_registers[GB_IO_IF] |= 8; gb->serial_count = 0; } }

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.