Finding a memory address's segment/offset
- Posted by Peter Millan <sonic at GLOBALFREEWAY.COM.AU> Mar 26, 2000
- 662 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.