git.y1.nz

SameBoy

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

commit 4254dcdb2c783a153bac9a1eef958a5c640e571e
parent b8d6bb7fd2dd1e93cde949bd5f15d709fa54b1be
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Fri, 12 May 2023 17:57:20 +0300

Fix incorrect initial value of register IE when playing GBS files. Fixes #544

Diffstat:
MCore/gb.c7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/Core/gb.c b/Core/gb.c @@ -408,8 +408,11 @@ void GB_gbs_switch_track(GB_gameboy_t *gb, uint8_t track) gb->sgb->intro_animation = GB_SGB_INTRO_ANIMATION_LENGTH; gb->sgb->disable_commands = true; } - if (gb->gbs_header.TAC & 0x40) { - gb->interrupt_enable = true; + if (gb->gbs_header.TAC & 0x4) { + gb->interrupt_enable = 4; + } + else { + gb->interrupt_enable = 1; } }

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