Fix ATTR_SET command

This commit is contained in:
Lior Halphon 2021-10-09 18:45:08 +03:00
parent 3b1094058b
commit f1761340fc
2 changed files with 2 additions and 3 deletions

View File

@ -2243,7 +2243,6 @@ bool GB_debugger_execute_command(GB_gameboy_t *gb, char *input)
} }
} }
/* Returns true if debugger waits for more commands */
char *GB_debugger_complete_substring(GB_gameboy_t *gb, char *input, uintptr_t *context) char *GB_debugger_complete_substring(GB_gameboy_t *gb, char *input, uintptr_t *context)
{ {
char *command_string = input; char *command_string = input;

View File

@ -402,9 +402,9 @@ static void command_ready(GB_gameboy_t *gb)
gb->sgb->transfer_dest = TRANSFER_ATTRIBUTES; gb->sgb->transfer_dest = TRANSFER_ATTRIBUTES;
break; break;
case ATTR_SET: case ATTR_SET:
load_attribute_file(gb, gb->sgb->command[0] & 0x3F); load_attribute_file(gb, gb->sgb->command[1] & 0x3F);
if (gb->sgb->command[0] & 0x40) { if (gb->sgb->command[1] & 0x40) {
gb->sgb->mask_mode = MASK_DISABLED; gb->sgb->mask_mode = MASK_DISABLED;
} }
break; break;