Jump to content

DevHlp GetIRQMask: Difference between revisions

From EDM2
No edit summary
No edit summary
 
Line 1: Line 1:
{{DISPLAYTITLE:DevHlp_GetIRQMask}}
Retrieve the mask state of an IRQ level
Retrieve the mask state of an IRQ level



Latest revision as of 15:28, 18 May 2025

Retrieve the mask state of an IRQ level

This function reads the current IRQ mask state for the specified IRQ.

Parameters

Specified IRQ level.

Exit

  • EAX=0, mask disabled (IRQ enabled).
  • EAX=1, mask enabled (IRQ disabled)

Assembly language

     ;       dh_GetIRQMask - Retrieve a specified IRQ mask state
     ;
     ;       This function reads the current IRQ mask state for the specified IRQ.
     ;
     ;       ENTRY   AL = IRQ
     ;
     ;       EXIT-SUCCESS
     ;           EAX - 0 = mask disabled (IRQ enabled)
     ;               - 1 = mask enabled (IRQ disabled)
     ;
     ;       EXIT-FAILURE
     ;           NONE
     ;

       MOV     AL,IRQ whose mask state is to be retrieved
       MOV     DL,DevHlp_GetIRQMask
       CALL    DevHlp
       JC      Error