PIC helper functions to read the ISR, IRR, and IMR