major refactorings in ASM->c interfaces in IRQ and SWI handler