Finding a memory address's segment/offset

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

Currently I'm converting some ASM code to run in Euphoria, but I
need to know how I can find the segment and offset of a location in
memory allocated with allocate_low() - the QBasic equivalent being
SADD() and VARPTR(). Any help (or directions to where I can get
help) would be appreciated.

The QB version line looks like this:
int86qb$(MIDI.INTERRUPT, 0, SADD(Filename$), &H500, 0,
VARSEG(Filename$), 0, 0, 0, 0, 0)

In Euphoria this line would be using dos_interrupts(). I hope you
understand what I'm trying to ask... sorry. It's late and I'm hungry :)

Thanks
Pete Millan.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu