Merge pull request #114 from RobLoach/patch-2
Fix control reaches end of non-void function
This commit is contained in:
commit
e9b78b6370
@ -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) |
|
return VALUE_16(GB_read_memory(gb, lvalue.memory_address.value) |
|
||||||
(GB_read_memory(gb, lvalue.memory_address.value + 1) * 0x100));
|
(GB_read_memory(gb, lvalue.memory_address.value + 1) * 0x100));
|
||||||
|
|
||||||
|
|
||||||
case LVALUE_REG16:
|
case LVALUE_REG16:
|
||||||
return VALUE_16(*lvalue.register_address);
|
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:
|
case LVALUE_REG_H:
|
||||||
return VALUE_16(*lvalue.register_address >> 8);
|
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)
|
static void write_lvalue(GB_gameboy_t *gb, lvalue_t lvalue, uint16_t value)
|
||||||
|
Loading…
Reference in New Issue
Block a user