Fix the return value of read_lvalue to be 0

This commit is contained in:
Rob Loach 2018-10-12 10:09:30 -04:00 committed by GitHub
parent e834d32b8e
commit 2da7a3f7fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)