Skip to content

Bug in MOVEC implementation #94

@dirkwhoffmann

Description

@dirkwhoffmann

This code is part of m68k_op_movec_32_cr

			case 0x802:			   /* CAAR */
				if(CPU_TYPE_IS_EC020_PLUS(CPU_TYPE))
				{
					REG_DA[(word2 >> 12) & 15] = REG_CAAR;
					return;
				}
				m68ki_exception_illegal();
				break;

In the last line, break needs to be replaced by return. Otherwise, a privilege exception is executed in addition to the illegal exception.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions