Fix the return value of read_lvalue to be 0
This commit is contained in:
parent
e834d32b8e
commit
2da7a3f7fb
@ -236,7 +236,7 @@ static value_t read_lvalue(GB_gameboy_t *gb, lvalue_t lvalue)
|
||||
return VALUE_16(*lvalue.register_address >> 8);
|
||||
}
|
||||
|
||||
return VALUE_16(*lvalue.register_address);
|
||||
return VALUE_16(0);
|
||||
}
|
||||
|
||||
static void write_lvalue(GB_gameboy_t *gb, lvalue_t lvalue, uint16_t value)
|
||||
|
Loading…
Reference in New Issue
Block a user