(**************************************************************************)
(*                                                                        *)
(*   ECRAN_P.PAS                                                          *)
(*   Auteur Olivier P‚cheux                                               *)
(*   opecheux@multimania.com                                              *)
(*   http://www.multimania.com/opecheux                                   *)
(*                                                                        *)
(*   Ce programme donne quelques implantations possibles pour ‚crire      *)
(*   directement dans la m‚moire ‚cran                                    *)
(*                                                                        *)
(**************************************************************************)


{ Pour la premiŠre implantation }
const ecran1=$A000;

{ Pour la deuxiŠme implantation }
type t_ecran2=array[0..63999]of byte;
const ecran2:^t_ecran2=ptr($A000,$0000);

{ Pour la troisiŠme implantation }
var ecran3:array[0..63999]of byte absolute $A000:$0000;

var offset:word;
    couleur:byte;

begin
 offset:=1000; couleur:=12; { n'importe quoi }
 mem[ecran1:offset]:=couleur; { PremiŠre implantation }
 ecran2^[offset]:=couleur; { DeuxiŠme implantation }
 ecran3[offset]:=couleur { TroisiŠme implantation }
end.