is RTI used to return from BRK?
Because BRK pushes PC pointing to the 2nd byte of the instruction following the BRK.
And RTI pulls the PC without changing it.
So if RTI is used to return from a BRK call, then the immediately following byte after the BRK instruction would be ignored.
I guess I'm either wrong about what address is pushed by BRK or about RTI returning grom BRK, but which one?
Because BRK pushes PC pointing to the 2nd byte of the instruction following the BRK.
And RTI pulls the PC without changing it.
So if RTI is used to return from a BRK call, then the immediately following byte after the BRK instruction would be ignored.
I guess I'm either wrong about what address is pushed by BRK or about RTI returning grom BRK, but which one?