1. Finding a memory address's segment/offset
- Posted by Peter Millan <sonic at GLOBALFREEWAY.COM.AU> Mar 26, 2000
- 466 views
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.
2. Re: Finding a memory address's segment/offset
- Posted by bfurniss <bfurniss at IHUG.CO.NZ> Mar 27, 2000
- 444 views
--=====================_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==_