>>>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 filled with >> the function call... > definitively not. > LES, DI, a > will load ES:DI with the *content* of a, not the address of a > some compilers (MSC, TurboC) accept > mov ax, seg a > mov es, ax > lea di, a AFAIR the alternative might be (I don't speak Pascal very good) var APTR = ^a; (* initialize far pointer to a *) les di, APTR; (* now es:di points to a *) is what ralf wants > Tom > ------------------------------------------------------------------------------ > Keep yourself connected to Go Parallel: > INSIGHTS What's next for parallel hardware, programming and related areas? > Interviews and blogs by thought leaders keep you ahead of the curve. > http://goparallel.sourceforge.net > _______________________________________________ > Freedos-devel mailing list > Freedos-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/freedos-devel Mit freundlichen Grüßen/Kind regards Tom Ehlert +49-241-79886 ------------------------------------------------------------------------------ Keep yourself connected to Go Parallel: INSIGHTS What's next for parallel hardware, programming and related areas? Interviews and blogs by thought leaders keep you ahead of the curve. http://goparallel.sourceforge.net _______________________________________________ Freedos-devel mailing list Freedos-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-devel