mirror of
https://github.com/cc65/cc65.git
synced 2025-01-11 11:30:13 +00:00
Fixed a bug
git-svn-id: svn://svn.cc65.org/cc65/trunk@3524 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
0da97c6711
commit
37873a947f
@ -290,11 +290,21 @@ static void OneOpcode (unsigned RemainingBytes)
|
||||
switch (Style) {
|
||||
|
||||
case atDefault:
|
||||
case atCode:
|
||||
D->Handler (D);
|
||||
PC += D->Size;
|
||||
break;
|
||||
|
||||
case atCode:
|
||||
/* Beware: If we don't have enough bytes left to disassemble the
|
||||
* following insn, fall through to byte mode.
|
||||
*/
|
||||
if (D->Size <= RemainingBytes) {
|
||||
D->Handler (D);
|
||||
PC += D->Size;
|
||||
break;
|
||||
}
|
||||
/* FALLTHROUGH */
|
||||
|
||||
case atByteTab:
|
||||
ByteTable ();
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user