Fixed a bug
git-svn-id: svn://svn.cc65.org/cc65/trunk@3524 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -290,11 +290,21 @@ static void OneOpcode (unsigned RemainingBytes)
|
|||||||
switch (Style) {
|
switch (Style) {
|
||||||
|
|
||||||
case atDefault:
|
case atDefault:
|
||||||
case atCode:
|
|
||||||
D->Handler (D);
|
D->Handler (D);
|
||||||
PC += D->Size;
|
PC += D->Size;
|
||||||
break;
|
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:
|
case atByteTab:
|
||||||
ByteTable ();
|
ByteTable ();
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user