At 02:58 PM 11/30/2012, Rugxulo wrote: >1). Laaca, are you truly using BP7 (real mode? 286 pmode?) or (more >likely) FPC? The latter is DPMI only, and presumably won't work unless >you call int 21h indirectly via int 31h, 300h.
It is certainly BP7, as FreePascal has not the same (Intel) syntax as Borland Pascal... And again, after programming for more than 20 years in Borland Pascal 7, I have never used or even known the SEGES directive and I suspect that this is simply not doing what he expected. That's why I posted a solution that preforms his intended function without any doubt... >2). The buffer will have to be in conventional memory and ES:DI will >have to correctly point to it (after switching to V86 or real mode). I >know you're probably aware of all that. You are "deep sea fishing" here... ;-) >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... Ralf ------------------------------------------------------------------------------ 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 [email protected] https://lists.sourceforge.net/lists/listinfo/freedos-devel
