home *** CD-ROM | disk | FTP | other *** search
- Procedure CreateGrayScale( FirstDAC,NumofDACs : Word );
- { This procedure will call BIOS Interrupt 10H Function 10H }
- { subfunction 1BH to create a Gray Scale. It will start with }
- { the DAC specified by FirstDAC, for the number specified by }
- { NumofDACs. This is an alternate to using SetRGBPalette to }
- { create a gray scale. }
-
- Var
- Regs : Registers; { Variable used by INTR }
-
- Begin
- If( NumofDACs > 0 ) Then { Check to see if input is valid }
- Begin
- Regs.AH := $10; { Request Function 10H }
- Regs.AL := $1B; { Request Subfunction 1BH }
- Regs.BX := FirstDAC; { Beginnig DAC for gray scale }
- Regs.CX := NumofDACs; { Number of DACs to include }
- Intr( $10, Regs ); { Create the Gray Scale }
- End;
- End;