Jump to content

DevHlp GetIRQMask: Difference between revisions

From EDM2
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..."
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{DISPLAYTITLE:DevHlp_GetIRQMask}}
Retrieve the mask state of an IRQ level
Retrieve the mask state of an IRQ level


Line 31: Line 32:
       JC      Error
       JC      Error
</pre>
</pre>
[[Category:DevHlps]]

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