Skip to content

RTI #19

Open
Open

Description

@ch570512

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions