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

Python callbacks: read, write, reti, int mode 2 vector #63

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

ToniWestbrook
Copy link
Contributor

Added:

  • Python callback for memory reads (same format as input callback)
  • Python callback for memory writes (same format as output callback)
  • Python callback for RETI instruction. The added override to "on_reti" function always invokes base::on_reti, but also calls the on_reti Python handler if registered. The handler is called after the base function to ensure processor state reflects the RETI operation.
  • Python callback for fetching the lower byte of interrupt mode 2 vector address. A "on_get_int_vector" function was added to one of the base classes (completely guessed which was the best class, please feel free to reorganize) with a default value of 0xFF to reflect was the previous default was. Then Python callback was added.

I tested these in the VM (which heavily uses all of this functionality) and it looks like it's stable. Thanks!

Copy link
Owner

@kosarev kosarev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks!

@kosarev kosarev merged commit e2f3f35 into kosarev:master Aug 6, 2024
4 checks passed
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.

2 participants