IPB

> absolute (standard directive)
Форум
Загрузка...
 
Час быка
Час быка
Карта Интернета
Internet Map
Яндекс.Метрика

Language:
Русский
English

 absolute (standard directive)


Use the reserved word absolute to declare an absolute variable (one that resides at a specific, or absolute, memory address).

Syntax

 var Ident: type absolute Seg:Ofs;

OR

 var Ident: type absolute Variable;

Remarks

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.

  Caution
   - 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.

Example

 type
   VectorTable = array[0..255] of pointer;
 var
   IntVectors: VectorTable absolute 0:0;
   CrtMode: Byte absolute $0040:$0049;
   Str: string;
   StrLen: Byte absolute Str;

 
 К началу страницы 
 

Код для вставки: :: :: :: ГОСТ ::
Поделиться: //
 


-
Хостинг предоставлен компанией "Веб Сервис Центр" при поддержке компании "ДокЛаб"