mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-09-08 07:40:50 +02:00
Merge pull request #11 from nattthebear/master
Fix compilation in GCC 4.6.4
This commit is contained in:
@@ -283,7 +283,7 @@ static void jr_r8(GB_gameboy_t *gb, uint8_t opcode)
|
||||
{
|
||||
/* Todo: Verify cycles are not 8 and 4 instead */
|
||||
GB_advance_cycles(gb, 4);
|
||||
gb->pc += (int8_t) GB_read_memory(gb, gb->pc++);
|
||||
gb->pc += (int8_t)GB_read_memory(gb, gb->pc) + 1;
|
||||
GB_advance_cycles(gb, 8);
|
||||
}
|
||||
|
||||
@@ -307,7 +307,7 @@ static void jr_cc_r8(GB_gameboy_t *gb, uint8_t opcode)
|
||||
{
|
||||
if (condition_code(gb, opcode)) {
|
||||
GB_advance_cycles(gb, 4);
|
||||
gb->pc += (int8_t)GB_read_memory(gb, gb->pc++);
|
||||
gb->pc += (int8_t)GB_read_memory(gb, gb->pc) + 1;
|
||||
GB_advance_cycles(gb, 8);
|
||||
}
|
||||
else {
|
||||
|
Reference in New Issue
Block a user