1 2 SECTION code_clib 3 PUBLIC nmi_install_isr 4 PUBLIC _nmi_install_isr 5 6 EXTERN nmi_vectors 7 EXTERN CLIB_NMI_VECTOR_COUNT 8 EXTERN asm_interrupt_add_handler 9 10nmi_install_isr: 11_nmi_install_isr: 12 pop bc 13 pop de 14 push de 15 push bc 16 ld hl, nmi_vectors 17 ld b, CLIB_NMI_VECTOR_COUNT 18 call asm_interrupt_add_handler 19 ld hl,0 20IF __CPU_INTEL__ 21 ld a,l 22 rla 23 ld l,a 24ELSE 25 rl l 26ENDIF 27 ret 28