absolute 
Author Message
 absolute

Hello,

I have a program with the followings commands :

    var
        P600D_port         : word = 584;
        P600D_bytes       : array[0..1] of byte;
        P600D                 : word absolute P600D_bytes;

    ....

    for m:=1 downto 0 do
    begin
        port[P600D_port] := 32 + (adresse shl 2) + m;
        P600D_bytes[m] := port[P600D_port];
    end.

Could you tell me what is the value in "P600D" at the end of the
program.

Thanks for your assistance

Alexandre



Fri, 24 May 2002 03:00:00 GMT  
 absolute
Hi.

Well, i'm not realy known to this things, bu maybe you could try to
trace the program, having a watch on "P600D".
Watches are enabled by: Debug -> Watch
In the watch window insert a watch for a variable by pressing "Insert"
key.
And tracing your program is done by presing F7 / F8 for each line of
code.

Good Luck!...
Greetz, Tim.

Quote:

> Hello,

> I have a program with the followings commands :

>     var
>         P600D_port         : word = 584;
>         P600D_bytes       : array[0..1] of byte;
>         P600D                 : word absolute P600D_bytes;

>     ....

>     for m:=1 downto 0 do
>     begin
>         port[P600D_port] := 32 + (adresse shl 2) + m;
>         P600D_bytes[m] := port[P600D_port];
>     end.

> Could you tell me what is the value in "P600D" at the end of the
> program.

> Thanks for your assistance

> Alexandre



Mon, 27 May 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Absolute Basics on Delphi and ADO

2. Absolute Basics on Delphi and ADO

3. Use of absolute clause.

4. How to get Absolute value in SQL?

5. Var: Byte absolute CSeg:$...

6. which pascal for an absolute beginner ?

7. an absolute beginner : HEX question

8. absolute

9. Free Pascal and absolute memory

10. GetTime directly (by address - absolute)

11. An absolute beginners question

12. An absolute beginners question

 

 
Powered by phpBB® Forum Software