Added _ASM_HALT/_ASM_INT_ON/_ASM_INT_OFF macros, added int_status to keep track of the status of interrupts.