Jump to content

DevHlp GetIRQMask

From EDM2
Revision as of 05:48, 18 May 2025 by Martini (talk | contribs) (Created page with "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== <pre> ; dh_GetIRQMask - Retrieve a specified IRQ mask state ; ; This function reads the current IRQ mask state for the specified IRQ. ; ; ENTRY AL = IRQ ; ; E...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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