[fpc-pascal]DOS memory access via "absolute"
Pierre Muller
pierre at idefix.wisa.be
Sun Oct 1 23:40:37 CEST 2000
At 23:06 01/10/00 +0200, you wrote:
>Florian Klaempfl wrote:
>
>> absolute uses always addressing via FS, see below.
>> FPC uses some tricks to access dos memory (it is done via the fs selector).
>
>If "absolute" uses the FS selector as you say, and DOS memory is
>accessed via FS, then why am I not able to use the Screen array to
>access DOS memory?
Probably because you declare it as
Var
Screen:Array[0..199,0..319] Of Byte Absolute $A0000;
Try to redeclare it as
Var
Screen:Array[0..199,0..319] Of Byte Absolute $A000:0;
This should work better!
More information about the fpc-pascal
mailing list