Fix #144 by ignored malformed commands with 0 length
This commit is contained in:
parent
b2397a2e7a
commit
8b7922b679
@ -98,6 +98,9 @@ static void command_ready(GB_gameboy_t *gb)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Ignore malformed commands (0 length)*/
|
||||||
|
if ((gb->sgb->command[0] & 7) == 0) return;
|
||||||
|
|
||||||
switch (gb->sgb->command[0] >> 3) {
|
switch (gb->sgb->command[0] >> 3) {
|
||||||
case PAL01:
|
case PAL01:
|
||||||
pal_command(gb, 0, 1);
|
pal_command(gb, 0, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user