Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in MOVEC implementation #94

Open
dirkwhoffmann opened this issue Aug 10, 2022 · 0 comments
Open

Bug in MOVEC implementation #94

dirkwhoffmann opened this issue Aug 10, 2022 · 0 comments

Comments

@dirkwhoffmann
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant