segments and offsets

new topic     » goto parent     » topic index » view thread      » older message » newer message

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 thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu