Fix sign
This commit is contained in:
parent
8409d3bcfb
commit
f86e682d2c
@ -211,7 +211,7 @@ static void cycle_write(GB_gameboy_t *gb, uint16_t addr, uint8_t value)
|
|||||||
/* Handle disabling objects while already fetching an object */
|
/* Handle disabling objects while already fetching an object */
|
||||||
if ((old_value & 2) && !(value & 2)) {
|
if ((old_value & 2) && !(value & 2)) {
|
||||||
if (gb->during_object_fetch) {
|
if (gb->during_object_fetch) {
|
||||||
gb->cycles_for_line -= gb->display_cycles;
|
gb->cycles_for_line += gb->display_cycles;
|
||||||
gb->display_cycles = 0;
|
gb->display_cycles = 0;
|
||||||
gb->object_fetch_aborted = true;
|
gb->object_fetch_aborted = true;
|
||||||
}
|
}
|
||||||
@ -226,7 +226,7 @@ static void cycle_write(GB_gameboy_t *gb, uint16_t addr, uint8_t value)
|
|||||||
/* Handle disabling objects while already fetching an object */
|
/* Handle disabling objects while already fetching an object */
|
||||||
if ((old_value & 2) && !(value & 2)) {
|
if ((old_value & 2) && !(value & 2)) {
|
||||||
if (gb->during_object_fetch) {
|
if (gb->during_object_fetch) {
|
||||||
gb->cycles_for_line -= gb->display_cycles;
|
gb->cycles_for_line += gb->display_cycles;
|
||||||
gb->display_cycles = 0;
|
gb->display_cycles = 0;
|
||||||
gb->object_fetch_aborted = true;
|
gb->object_fetch_aborted = true;
|
||||||
}
|
}
|
||||||
@ -244,7 +244,7 @@ static void cycle_write(GB_gameboy_t *gb, uint16_t addr, uint8_t value)
|
|||||||
/* Handle disabling objects while already fetching an object */
|
/* Handle disabling objects while already fetching an object */
|
||||||
if ((old_value & 2) && !(value & 2)) {
|
if ((old_value & 2) && !(value & 2)) {
|
||||||
if (gb->during_object_fetch) {
|
if (gb->during_object_fetch) {
|
||||||
gb->cycles_for_line -= gb->display_cycles;
|
gb->cycles_for_line += gb->display_cycles;
|
||||||
gb->display_cycles = 0;
|
gb->display_cycles = 0;
|
||||||
gb->object_fetch_aborted = true;
|
gb->object_fetch_aborted = true;
|
||||||
}
|
}
|
||||||
@ -253,7 +253,7 @@ static void cycle_write(GB_gameboy_t *gb, uint16_t addr, uint8_t value)
|
|||||||
/* Handle disabling objects while already fetching an object */
|
/* Handle disabling objects while already fetching an object */
|
||||||
if ((old_value & 2) && !(value & 2)) {
|
if ((old_value & 2) && !(value & 2)) {
|
||||||
if (gb->during_object_fetch) {
|
if (gb->during_object_fetch) {
|
||||||
gb->cycles_for_line -= gb->display_cycles;
|
gb->cycles_for_line += gb->display_cycles;
|
||||||
gb->display_cycles = 0;
|
gb->display_cycles = 0;
|
||||||
gb->object_fetch_aborted = true;
|
gb->object_fetch_aborted = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user