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

RTI #19

Open
ch570512 opened this issue Oct 22, 2019 · 0 comments
Open

RTI #19

ch570512 opened this issue Oct 22, 2019 · 0 comments

Comments

@ch570512
Copy link

ch570512 commented Oct 22, 2019

I guess RTI should not restore the Interrupt flag because when I unset it with CLI and then RTI from the Interrupt routine it is set again bacause it was saved when entering the IRQ.

OR the IRQ routine may simply set the I flag after the Status-Register is saved.
Same with NMI.

EDIT:
Found this in the datasheet :)
The Program Counter and Processor Status Register are stored in the stack.
The microprocessor will then set the interrupt mask flag high so that no further interrupts may occur.

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