[fpc-pascal]Debuging in Freepascal

Thomas Schatzl tom_at_work at yline.com
Tue Sep 26 19:31:48 CEST 2000


Subject: Re: [fpc-pascal]Debuging in Freepascal

>Pierre Muller schrieb:
>
>
>> What version of Free Pascal are you using ??
[....]
>
>The author of this async unit uses objects for the communication so i donĀ“t
>know whether the unit is still working with other switches.
>
>Is there another way to use this selector without crashes ?

You could try to store the cs register into ds and es since with go32v2 cs =
ds = es. So little code like

movw %cs, %ax
movw %ax, %ds
movw %ax, %es

should be fine instead of the

movw %cs:our_ds, %ax
movw %ax, %ds
movw %ax, %es

etc. stuff.

This saves you the lock/unlock stuff for the v2prt0_ds_alias too.

Note that it may not work in the callback though it is probably worth a try.

>greetings
>
>Dirk Verwiebe

Regards,
    Thomas





More information about the fpc-pascal mailing list