home *** CD-ROM | disk | FTP | other *** search
- Program Image;
-
- Uses
- Dos,
- Crt;
-
- Type
- PalType = Array[1..256*3] Of Byte;
-
- Var
- Count : Integer;
- LogoP : Pointer;
- LogoPalP : Pointer;
- Pal : PalType;
- Ch : Char;
-
- Procedure logo; external;
- {$L logo.obj}
-
- Procedure logopal; external;
- {$L logopal.obj}
-
-
- Procedure VMode (HexMode : Byte);
-
- begin {VMode}
- asm
- Mov Ah,00
- Mov Al,HexMode {Sets Video Mode}
- Int 10h
- end;
- end; {VMode}
-
- Procedure SetPal; {SetPal}
- begin
- LogoPalP := @logopal; {Set Palette Up}
- Move (LogoPalP^,Pal,768);
- Port[$3C8] := 0;
- For Count := 1 To 256*3 Do Port[$3C9] := Pal[Count];
- end; {SetPal}
-
- Procedure ShowLogo; {ShowLogo}
- begin
- LogoP := @logo;
- Move (LogoP^, Mem[$A000:0000],64000); {Displays Image}
- end; {ShowLogo}
-
- Begin
- VMode($13); {Inits Video Mode to 320x200x256c}
- SetPal;
- ShowLogo;
- Ch := Readkey; {Pauses Waits for a KeyPress}
- VMode($03); {Restores Video Mode to Text Mode}
- End. {80x25x16}
-
-