git.y1.nz

SameBoy

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

commit 9b202c670e11a9d558508f866fcae241a6b6a280
parent 4180348567ffbc1f17bcf29203cefddabe7f8669
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Mon, 17 Oct 2022 14:34:55 +0300

Was technically implementation defined

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

diff --git a/Core/sm83_cpu.c b/Core/sm83_cpu.c @@ -967,7 +967,7 @@ static void sbc_a_r(GB_gameboy_t *gb, uint8_t opcode) value = get_src_value(gb, opcode); a = gb->af >> 8; carry = (gb->af & GB_CARRY_FLAG) != 0; - gb->af = ((a - value - carry) << 8) | GB_SUBTRACT_FLAG; + gb->af = (((uint8_t)(a - value - carry)) << 8) | GB_SUBTRACT_FLAG; if ((uint8_t) (a - value - carry) == 0) { gb->af |= GB_ZERO_FLAG;

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