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

exception vector 3 - address error: part of the Moira implementation? #5

Closed
elmerucr opened this issue Nov 1, 2020 · 3 comments
Closed

Comments

@elmerucr
Copy link

elmerucr commented Nov 1, 2020

Hi Dirk,
I have the impression that Moira allows access to words/long words on uneven addresses. I.e. not raising an exception at that point. Can you confirm this and is there currently an option to turn it on?
Best regards, Elmer

@dirkwhoffmann
Copy link
Owner

Address error checking can be switched on in MoiraConfig.h:

/* Set to true to enable address error checking.
 *
 * The Motorola 68k signals an address error violation if a odd memory location
 * is addressed in combination with word or long word addressing.
 *
 * Enable to improve emulation compatibility, disable to gain speed.
 */
#define EMULATE_ADDRESS_ERROR false

I'm a little unsure about how up-to-date the Moira repo is. The most recent version is the one in the vAmiga repo (main branch). During the last couple of month, I didn't change much though.

If it's possible to perform a word or longword access to an odd address, e.g., with a standard move command, I guess the option mentioned above is set to false. However, there might still be some bugs in corner cases. E.g., at some point, address violations were not detected when an interrupt vector was set to an odd address.

@elmerucr
Copy link
Author

elmerucr commented Nov 1, 2020

Thanks for the help! Enabling the option that way indeed turns on address error checking, also with the Moira version in this repo. I didn't look further than Moira.h looking for the options :-) I guess the issue can be closed then.

@dirkwhoffmann
Copy link
Owner

OK, cool. Please let me know if you stumble across other issues.

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

2 participants