Use assembly functions for disabling and restoring interrupt status when compiling for MIPS16e