absolute (standard directive)
Use the reserved word absolute to declare an absolute(one that resides at a specific, or absolute, memory address).
var Ident: type absolute Seg:Ofs;
var Ident: type absolute Variable;
The first form directly specifies the address (segment and offset) of the variable. Both constants must be within the range of $0000 to $FFFF (0 to 65,535).
The second form declares a new variable on top of an existing variable (at the same address).
The variable declaration's identifier list can only specify one identifier when an absolute clause is present.
- Use the first form of the absolute clause cautiously. While Windows is
running in protected mode, your application may not have access rights
to memory areas outside your program. Attempting to access these memory
areas will likely crash your program.
The second form of the absolute clause is safe to use in Windows programming. Memory you access is within your program's domain.
VectorTable = array[0..255] of pointer;
IntVectors: VectorTable absolute 0:0;
CrtMode: Byte absolute $0040:$0049;
StrLen: Byte absolute Str;