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

Set BOOTQ before running XEX #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

markjfisher
Copy link
Contributor

On Fujinet project, picoboot is being used to boot applications not associated with an ATR file.

I've noticed that in my own xex files launched from there, unless I specifically set BOOTQ to 1 in the launched application, the reset handler plays up and jumps to Self Test instead of running the correct reset handler.

I traced this to BOOTQ not being set to 1 and the OS handling it different during soft reset. After going to Self Test, pressing RESET again would run the application again. So alternating between Self Test and the Application every time reset is pressed.

Rather than every application setting BOOTQ, it would be useful to set it in the loader itself before running INIT and RUN addresses.

This MR is for that change.

I've tested this on both actual hardware and through Altirra, reset handling no longer jumping to self test.

@markjfisher
Copy link
Contributor Author

Sorry, to be able to compile this, I needed #1 to be included, so that PR can be ignored if this combined one is accepted instead.

Or I can rework the history if you prefer, but they are both minor changes.

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

Successfully merging this pull request may close these issues.

1 participant