1. segments and offsets

i fear this may have been discussed here before so i apologise now
for going over old stuff

anyway...  i want to know how i can get the segment and offset of a
variable...  thx


 ...oooO        MikPos of MARTYR        Oooo...
..ooO  http://www.geocities.com/SoHo/9036  Ooo..
   ....oooO       mike burrell      OOooo....

new topic     » topic index » view message » categorize

2. segments and offsets

Mike Burrell writes:
> anyway...  i want to know how i can get the segment and offset of a
> variable...  thx

See demo\dosint.ex for an example of converting an address to
segment-offset form.

There is no way in Euphoria of getting the address of a variable.
You have to use allocate() or allocate_low() to reserve a block
of memory and get its address. You can then use poke and peek to
store/retrieve information from memory.

Regards,
  Rob Craig
  Rapid Deployment Software

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu