I am converting a program from Bascom Basic to PBP. They have method of defining a VAR with a OVERLAY postscript.

Here is their definition of Overlay
Code:
OVERLAY

The OVERLAY option will not use any variable space. It will create a sort of phantom variable:

 

Dim x as Long at $60 'long uses 60,61,62 and 63 hex of SRAM

 

Dim b1 as Byte at $60 OVERLAY

Dim b2 as Byte at $61 OVERLAY

 

B1 and B2 are no real variables! They refer to a place in memory. In this case to &H60 and &H61. By assigning the phantom variable B1, you will write to memory location &H60 that is used by variable X.

So to define it better, OVERLAY does create a normal usable variable, but it will be stored at the specified memory location which could be already be occupied by another OVERLAY variable, or by a normal variable.
How would I go about translating this.

Thanks

Dave