; (5) Uses the method described by Labrosse as "Method 2". ; ;*********************************************************************/ EXPORT ARMDisableInt ARMDisableInt STMFD sp!, {r0} MRS r0, cpsr ORR r0, r0, #0xC0 MSR cpsr_c, r0 ; disable IRQ Int s LDMIA sp!, {r0} MOV pc, lr
EXPORT ARMEnableInt ARMEnableInt STMDB sp!, {r0} MRS r0, CPSR BIC r0, r0, #0x80 MSR CPSR_c, r0 LDMIA sp!, {r0} MOV pc, lr |