Merge pull request #114 from RobLoach/patch-2

Fix control reaches end of non-void function
This commit is contained in:
Lior Halphon 2018-10-12 17:10:11 +03:00 committed by GitHub
commit e9b78b6370
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -226,7 +226,6 @@ static value_t read_lvalue(GB_gameboy_t *gb, lvalue_t lvalue)
return VALUE_16(GB_read_memory(gb, lvalue.memory_address.value) |
(GB_read_memory(gb, lvalue.memory_address.value + 1) * 0x100));
case LVALUE_REG16:
return VALUE_16(*lvalue.register_address);
@ -236,6 +235,8 @@ static value_t read_lvalue(GB_gameboy_t *gb, lvalue_t lvalue)
case LVALUE_REG_H:
return VALUE_16(*lvalue.register_address >> 8);
}
return VALUE_16(0);
}
static void write_lvalue(GB_gameboy_t *gb, lvalue_t lvalue, uint16_t value)