Re: [Freedos-devel] undocumented behaviour in INT21h/AX=6501h

2012-12-01 Thread Rugxulo
Hi, On Fri, Nov 30, 2012 at 4:58 PM, Rugxulo wrote: > > 4). What exactly are you trying to accomplish by calling this function? > > http://www.delorie.com/djgpp/doc/rbinter/id/76/31.html > http://www.delorie.com/djgpp/doc/rbinter/it/50/17.html Trane Franck's WHICH21.ZIP has a Turbo Pascal unit f

Re: [Freedos-devel] undocumented behaviour in INT21h/AX=6501h

2012-12-01 Thread Chris Evans
I thought that les is similar to lea and will put the seg, offset of variable into es:di On Saturday, December 1, 2012, Tom Ehlert wrote: > > >>3). "LES DI,mem" loads ES:DI with the 32-bit pointer value stored at > >>[mem], not the address of mem itself. > > > The "LES, DI, a" instruction tha

Re: [Freedos-devel] undocumented behaviour in INT21h/AX=6501h

2012-12-01 Thread Tom Ehlert
>>>3). "LES DI,mem" loads ES:DI with the 32-bit pointer value stored at >>>[mem], not the address of mem itself. >> The "LES, DI, a" instruction that I have give as a >> correct/alternative instruction will do exactly what is intended, >> setting ES:DI to the address of the buffer that us to b

Re: [Freedos-devel] undocumented behaviour in INT21h/AX=6501h

2012-12-01 Thread Tom Ehlert
>>3). "LES DI,mem" loads ES:DI with the 32-bit pointer value stored at >>[mem], not the address of mem itself. > The "LES, DI, a" instruction that I have give as a > correct/alternative instruction will do exactly what is intended, > setting ES:DI to the address of the buffer that us to be fill