Jump to content

DevHelp VideoPause: Difference between revisions

From EDM2
Created page with "This service is called by physical device drivers when the controller reports a DMA overrun. VideoPause starts or stops high-priority threads. This halts threads using the CPU..."
 
No edit summary
 
Line 1: Line 1:
{{DISPLAYTITLE:DevHelp_VideoPause}}
This service is called by physical device drivers when the controller reports a DMA overrun. VideoPause starts or stops high-priority threads. This halts threads using the CPU for video transfers, which allows the diskette DMA to complete termination properly.  
This service is called by physical device drivers when the controller reports a DMA overrun. VideoPause starts or stops high-priority threads. This halts threads using the CPU for video transfers, which allows the diskette DMA to complete termination properly.  



Latest revision as of 05:40, 11 May 2025

This service is called by physical device drivers when the controller reports a DMA overrun. VideoPause starts or stops high-priority threads. This halts threads using the CPU for video transfers, which allows the diskette DMA to complete termination properly.

Syntax

C

USHORT APIENTRY DevHelp_VideoPause( USHORT OnOff );

Assembler

MOV   AL,VideoPause_Flag       ; VideoPause flag.
MOV   DL,DevHlp_VideoPause
                              Off= 0
                              On = 1

CALL  [Device_Help]

Parameters

C

OnOff (USHORT)
Video_Pause_Off 0
Video_Pause_On 1

Assembler

MOV   AL,VideoPause_Flag       ; VideoPause flag.

Return Code

C

Success Indicator: Clear if successful.

Possible errors: Carry flag set if error.

Assembler

   'C' Clear if successful.

   'C' Set if error.

Remarks

VideoPause can be called at task time or interrupt time. This service is used after a retry has failed. To avoid impairing system performance, VideoPause is turned on only long enough to accomplish the transfer. If multiple physical device drivers have turned VideoPause on, it is not turned off until all of them have turned it off.

Example Code

C

#include  "dhcalls.h"

USHORT APIENTRY DevHelp_VideoPause( USHORT OnOff );

Related Functions