home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Delphi Programming Unleashed
/
Delphi_Programming_Unleashed_SAMS_Publishing_1995.iso
/
chap17
/
direct
/
direct.pas
Wrap
Pascal/Delphi Source File
|
1995-03-20
|
820b
|
19 lines
program Direct;
{ Program copyright (c) 1995 by Charles Calvert }
{ Project Name: DIRECT }
var
Video: array[0..3999] of Byte absolute $B800:$0000; {Address Video Screen}
A: Byte; { Character and attribute to write to the screen }
i: Integer; { Counter }
begin
A := 65; { Initialize character to 'A' }
for i := 0 to 3999 do begin { Iterate through video memory }
Move(A, Video[i], 1); { Write to video memory }
if ((i + 1) mod 160 = 0) then Inc(A); { Increment character }
end; { end loop }
ReadLn; { Pause so user can see result }
end.