1. Finding a memory address's segment/offset

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 message » categorize

2. Re: Finding a memory address's segment/offset

--=====================_954188241==_

At 05:58 PM 3/26/00 +1000, you wrote:
>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.
>
  I haven't  used allocate_low() in Euphoria , however assuming that this
 proceeds in the same manner as allocate ... read mill.txt ... attached.

--=====================_954188241==_

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

Search



Quick Links

User menu

Not signed in.

Misc Menu