Navigation bar
  Start Previous page
 83 of 283 
Next page End 78 79 80 81 82 83 84 85 86 87 88  

74
EnableInt
Type
Subroutine
Invocation
EnableInt(flag) 
Parameter
Method
Type
Description
flag
ByVal
Byte
The value controlling re-enabling of interrupts.
Discussion
This routine conditionally re-enables interrupts depending on the value of the flag parameter.  If the
most significant bit of the flag parameter is a 1, interrupts will be re-enabled.  Otherwise, the state of the
nesting of DisableInt() and EnableInt() calls so they are most often used in pairs as shown in the example
below.
Note
The Atomic block construct (described in the ZBasic Language Reference Manual) is the preferred
method for implementing atomic access.
Compatibility
This function is only available for native code targets, e.g. the ZX-24n.
Example
Dim iflag as Byte
iflag = DisableInt()
' place code here that must not be interrupted
Call EnableInt(iflag)
See Also
Previous page Top Next page